Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
deploy-orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
projet-industriel
deploy-orchestrator
Commits
a83cc6ca
Commit
a83cc6ca
authored
2 years ago
by
OKE Ulrich Enangnon
Browse files
Options
Downloads
Patches
Plain Diff
UPDATE - user hostPath vol for traefik log
parent
e2398121
No related branches found
No related tags found
No related merge requests found
Pipeline
#16827
passed
2 years ago
Stage: build
Stage: deploy
Stage: update
Stage: destroy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
playbooks/templates/values.yml.j2
+21
-23
21 additions, 23 deletions
playbooks/templates/values.yml.j2
with
21 additions
and
23 deletions
playbooks/templates/values.yml.j2
+
21
−
23
View file @
a83cc6ca
...
...
@@ -41,15 +41,15 @@ deployment:
enabled: true
kind: DaemonSet
dnsPolicy: ClusterFirstWithHostNet
#
additionalContainers:
#
- name:
accesslogs
#
image:
busybox
# command: [ "/bin/sh", "-c", "chown -R 65534:65534 /var/log/traefik" ]
#
volumeMounts:
#
- name: traefik-logs-vo
l
#
mount
Path:
/var/log/traefik
#
securityContext:
#
runAsUser: 0
additionalContainers:
- name:
filebeat-sidecar
image:
docker.elastic.co/beats/filebeat:7.5.0
volumeMounts:
- name: filebeat-configmap
mountPath: /usr/share/filebeat/filebeat.ym
l
sub
Path:
filebeat.yml
securityContext:
runAsUser: 0
# initContainers:
# - name: accesslogs
...
...
@@ -63,24 +63,19 @@ deployment:
# runAsNonRoot: true
# runAsUser: 65532
# additionalVolumes:
# - name: traefik-logs-vol
# Additional volumes to use with initContainers and additionalContainers
additionalVolumes:
- name: filebeat-configmap
mountPath: "/usr/share/filebeat/filebeat.yml"
subPath: filebeat.yml
type: configMap
# volumes:
# - name: traefik-logs-vol
# mountPath: /var/log/traefik
# Add traefik-logs-vol volume to the traefik pod
volumes:
- name: traefik-logs-vol
mountPath: /var/log/traefik
type: persistentVolumeClaim
# persistentVolumeClaim:
# claimName: traefik-logs-vol
# additionalVolumeMounts:
# # For instance when using a logshipper for access logs
# - name: traefik-logs-vol
# mountPath: /var/log/traefik
# Instructs Traefik to listen on various ports.
...
...
@@ -154,7 +149,10 @@ logs:
# format: json
filePath: "/var/log/traefik/access.log"
persistence:
enabled: true
path: /var/log/traefik/
size: 128Mi
# As Traefik web/websecure ports are exposed by "hostPort" a service isn't
# needed.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment