Update workloads/headlamp/kustomization.yaml
This commit is contained in:
@@ -1,33 +1,16 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
||||||
# Fuerza a todos los recursos al namespace headlamp
|
|
||||||
namespace: headlamp
|
namespace: headlamp
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- https://raw.githubusercontent.com/kubernetes-sigs/headlamp/main/kubernetes-headlamp.yaml
|
- https://raw.githubusercontent.com/kubernetes-sigs/headlamp/main/kubernetes-headlamp.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
|
||||||
# Inyectamos el kubeconfig como un volumen montado desde el secreto
|
|
||||||
patches:
|
patches:
|
||||||
- target:
|
- path: patch-kubeconfig.yaml
|
||||||
|
target:
|
||||||
|
group: apps
|
||||||
|
version: v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: headlamp
|
name: headlamp
|
||||||
patch: |-
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/volumes/-
|
|
||||||
value:
|
|
||||||
name: kubeconfig-vol
|
|
||||||
secret:
|
|
||||||
secretName: headlamp-kubeconfig
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/volumeMounts/-
|
|
||||||
value:
|
|
||||||
name: kubeconfig-vol
|
|
||||||
mountPath: /home/headlamp/.config/Headlamp/kubeconfigs/config
|
|
||||||
subPath: config
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: KUBECONFIG
|
|
||||||
value: /home/headlamp/.config/Headlamp/kubeconfigs/config
|
|
||||||
Reference in New Issue
Block a user