Multi-Cluster Architecture With Rancher

apiVersion: v1
kind: Config
preferences: {}

clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ...
server: https://172.19.113.9:443
name: gettingstarted
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ...
server: https://172.19.218.42:443
name: demo

contexts:
- context:
cluster: gettingstarted
user: username
name: username@gettingstarted
- context:
cluster: demo
user: username
name: username@demo
current-context: username@gettingstarted

users:
- name: username
user:
auth-provider:
config:
client-id: k8s
id-token: eyJhbGciOiJSUzI1NiIsInR5cC...
idp-certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS...
idp-issuer-url: https://containerauth.int.mirantis.com/auth/realms/iam
refresh-token: eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSld...
name: oidc
kubectl config --kubeconfig=mykubeconfigfile set-context appcontext --cluster=gettingstarted --namespace=app1 --user=username

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store