dashboard

kubeconfig Configuration

Introduction

How to apply

kubeconfig=
kubeconfig=/app/.kube/config
kubeconfig=strategy=configmap,configmap=kore-board-kubeconfig,namespace=kore,filename=config

file-strategy

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

configmap-strategy

using 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