apiVersion: apps/v1 kind: Deployment metadata: name: headlamp spec: template: spec: containers: - name: headlamp env: - name: KUBECONFIG value: /home/headlamp/.config/Headlamp/kubeconfigs/config volumeMounts: - name: kubeconfig-vol mountPath: /home/headlamp/.config/Headlamp/kubeconfigs/config subPath: config readOnly: true volumes: - name: kubeconfig-vol secret: secretName: headlamp-kubeconfig