TeDomum kubernetes cluster
This repository is to be deployed using flux on top of a Hepto cluster.
Managing the cluster
First install kubectl
and kubelogin
(which should deploy kube-oidc_login
in your PATH).
Then use the following commands to setup the cluster in your kubeconfig
:
export CLUSTER=kity
export API=https://kity.tedomum.net
export ISSUER=https://auth.tedomum.net/sso/oidc/919017c1-a89c-4dfa-bd18-e5cd947b5287
export CLIENTID=L3YGWmPOcxErFLI924pJ2eRO
export SECRET=zYp0rnwiGHMwix3lLeYruQEN19PZIu9VQwV1epHWghxeQCe1
kubectl config set-cluster $CLUSTER --server=$API
kubectl config set-credentials $CLUSTER --exec-api-version=client.authentication.k8s.io/v1beta1 --exec-command=kubectl --exec-arg=oidc-login --exec-arg=get-token --exec-arg=--oidc-issuer-url=$ISSUER --exec-arg=--oidc-client-id=$CLIENTID --exec-arg=--oidc-client-secret=$SECRET
kubectl config set-context $CLUSTER --cluster=$CLUSTER --user=$CLUSTER
This configures a kity
context, that you can enable anytime you wish to interact with Kity:
kubectl config use-context kity