traefik-helm-chart
traefik-helm-chart copied to clipboard
additionalVolumes might not be working
Welcome!
- [X] Yes, I've searched similar issues on GitHub and didn't find any.
- [X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.
What version of the Traefik's Helm Chart are you using?
traefik-10.9.100
What version of Traefik are you using?
2.5.6
What did you do?
I'm trying to mount a volume so I can access it from another service.
The file I am trying to modify is: /var/lib/rancher/k3s/server/manifests/traefik-config.yaml
And it looks somthing like this:
...
additionalArguments:
- --log.level=INFO
- --log.filePath=/var/log/traefik.log
- --log.format=json
- --accesslog
- --accesslog.format=json
- --accesslog.filepath=/var/log/access.log
- --accesslog.bufferingsize=100
additionalVolumes:
- name: rm-folder-02
hostPath:
path: /tmp/traefik
type: Directory
additionalVolumeMounts:
- name: rm-folder-02
mountPath: /var/log
When I type this kubectl -n kube-system get pod -o yaml traefik-7c44c97bdf-hj58t
I get something like this:
apiVersion: v1
kind: Pod
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "9100"
prometheus.io/scrape: "true"
creationTimestamp: "2022-02-21T04:59:17Z"
generateName: traefik-7c44c97bdf-
labels:
app.kubernetes.io/instance: traefik
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: traefik
helm.sh/chart: traefik-10.9.100
pod-template-hash: 7c44c97bdf
name: traefik-7c44c97bdf-hj58t
namespace: kube-system
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: traefik-7c44c97bdf
uid: 797cba01-eb25-4013-80e0-f6df0879eb25
resourceVersion: "20601737"
uid: 34786f2f-1c73-46c0-bd8e-e044c439e550
spec:
containers:
- args:
- --global.checknewversion
- --global.sendanonymoususage
- --entryPoints.metrics.address=:9100/tcp
- --entryPoints.traefik.address=:9000/tcp
- --entryPoints.web.address=:8000/tcp
- --entryPoints.websecure.address=:8443/tcp
- --api.dashboard=true
- --ping=true
- --metrics.prometheus=true
- --metrics.prometheus.entrypoint=metrics
- --providers.kubernetescrd
- --providers.kubernetesingress
- --providers.kubernetesingress.ingressendpoint.publishedservice=kube-system/traefik
- --entrypoints.websecure.http.tls=true
- --log.level=INFO
- --log.filePath=/var/log/traefik.log
- --log.format=json
- --accesslog
- --accesslog.format=json
- --accesslog.filepath=/var/log/access.log
- --accesslog.bufferingsize=100
image: rancher/mirrored-library-traefik:2.5.6
...
volumeMounts:
- mountPath: /data
name: data
- mountPath: /tmp
name: tmp
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-bhjbt
readOnly: true
...
volumes:
- emptyDir: {}
name: data
- emptyDir: {}
name: tmp
- name: kube-api-access-bhjbt
projected:
defaultMode: 420
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
items:
- key: ca.crt
...
What did you see instead?
I don't see my rm-folder-02 on the list of volumes. Therefore I can't mount it eaither... After doing what I did. I should have my volume showing on volumes
What is your environment & configuration?
Linux ms01 5.10.63-v8+ aarch64 GNU/Linux
Additional Information
No response