Mark everything and copy it to the clipboard. Paste it into your kubeconfig file .kube/config below the line "users:". If you have some background in programming, the structure of the kubeconfig file should be pretty obvious, and you will be able to extend it to include e.g. multiple identities and contexts which access different namespaces. This is quite useful for quickly switching between them without having to type so much.
After this step, your .kube/config should look something like this:
<syntaxhighlight lang="yaml">
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJ ....
server: https://134.34.224.84:6443
name: ccu
contexts:
- context:
cluster: ccu
namespace: testing
user: your.username
name: me@ccu
kind: Config
preferences: {}
users:
- name: your.username
user:
auth-provider:
config:
client-id: loginapp
client-secret: 459679hg...
id-token: eyJhbGc...
idp-issuer-url: https://ccu.uni-konstanz.de:32000/dex
refresh-token: ChllcHl...
name: oidc
</syntaxhighlight>
== Enter the CCU context ==