infrastructure/k8s.tjo.cloud/modules/cluster/kubeconfig.tftpl
Tine c0254f1bb4
Some checks failed
/ lint (push) Failing after 12m52s
feat: monitoring fixes
2024-07-27 16:08:21 +02:00

26 lines
583 B
Text

apiVersion: v1
kind: Config
clusters:
- name: ${cluster.name}
cluster:
server: ${cluster.endpoint}
certificate-authority-data: ${cluster.ca}
contexts:
- name: oidc@${cluster.name}
context:
cluster: ${cluster.name}
namespace: default
user: oidc
current-context: oidc@${cluster.name}
users:
- name: oidc
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
command: kubectl
args:
- oidc-login
- get-token
- --oidc-issuer-url=${oidc.issuer}
- --oidc-client-id=${oidc.id}
- --oidc-extra-scope=profile