- strategy (kubeconfig-provider)
- file : update kubeconfig as file
- configmap : update kubeconfig as configmap
- apply the feature as a startup parameter.
kubeconfig=
kubeconfig=/app/.kube/config
kubeconfig=strategy=configmap,configmap=kore-board-kubeconfig,namespace=kore,filename=config
using volumne (persistent or)
spec:
containers:
- name: backend
image: ghcr.io/kore3lab/kore-board.backend:latest
args:
- --kubeconfig=/app/.kube/config
volumeMounts:
- mountPath: /app/.kube
name: kubeconfig-volume
volumes:
- name: kubeconfig-volume
using configmap
- create a configmap
$ kubectl create configmap kore-board-kubeconfig -n kore --from-file=config=${HOME}/.kube/config
spec:
containers:
- name: backend
image: ghcr.io/kore3lab/kore-board.backend:latest
args:
- --kubeconfig=strategy=configmap,configmap=kore-board-kubeconfig,namespace=kore,filename=config