diff --git a/workloads/headlamp/patch-kubeconfig.yaml b/workloads/headlamp/patch-kubeconfig.yaml new file mode 100644 index 0000000..1d60310 --- /dev/null +++ b/workloads/headlamp/patch-kubeconfig.yaml @@ -0,0 +1,21 @@ +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 \ No newline at end of file