GarbageYard

kubeconfig multi cluster

Sep 24th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.64 KB | None | 0 0
  1. apiVersion: v1
  2. clusters:
  3. - cluster:
  4.     certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM3akNDQWRhZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFvTVJJd0VBWURWUVFLRXdsMGFHVXQKY21GdVkyZ3hFakFRQmdOVkJBTVRDV05oZEhSc1pTMWpZVEFlRncweE9UQTVNalF3TmpVd01URmFGdzB5T1RBNQpNakV3TmpVd01URmFNQ2d4RWpBUUJnTlZCQW9UQ1hSb1pTMXlZVzVqYURFU01CQUdBMVVFQXhNSlkyRjBkR3hsCkxXTmhNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQXczc3djZDArL0EyYmZ0MFIKL0lyVDVIdlZEUUQxNjZ4UUxYmpxYlVSckFTSDB4VkhLZGFucW9STnNNN083cjJSbDNkUWc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0t
  5.     server: https://<rancher_server_ip>:8443/k8s/clusters/c-gdvhj
  6.   name: dev
  7. - cluster:
  8.     certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN3akNDQWFxZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFTTVJBd0RnWURWUVFERXdkcmRXSmwKTFdOaE1CNFhEVEU1TURreU5EQTJOVFV4TlZvWERUSTVNRGt5TVRBMk5UVXhOVm93RWpFUU1BNEdBMVVFQXhNSAphM1ZpWlMxallUQ0NBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQUpjNE9xbmtRK1k1ClRtdnRCN2ZVeGNGVSsybGVTcVMrOXQ1T2xkbDZpN2hPai9UaHhZVUdwUnFBUUlzQWpqU3RFOGN0YzFjNWt0bTgKNVJNbjBwWHB1K0lURG5VW0tLS0K
  9.     server: https://172.31.41.217:6443
  10.   name: dev-ip-172-31-41-217
  11. - cluster:
  12.     certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM3akNDQWRhZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFvTVJJd0VBWURWUVFLRXdsMGFHVXQKY21GdVkyZ3hFakFRQmdOVkJBTVRDV05oZEhSc1pTMWpZVEFlRncweE9UQTVNalF3TmpVd01URmFGdzB5T1RBNQpNakV3TmpVd01URmFNQ2d4RWpBUUJnTlZCQW9UQ1hSb1pTMXlZVzVqYURFU0UxYmpxYlVSckFTSDB4VkhLZGFucW9STnNNN083cjJSbDNkUWc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0t
  13.     server: https://<rancher_server_ip>:8443/k8s/clusters/c-8ppk2
  14.   name: qa
  15. - cluster:
  16.     certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN3akNDQWFxZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFTTVJBd0RnWURWUVFERXdkcmRXSmwKTFdOaE1CNFhEVEU1TURreU5EQTJOVFl4TlZvWERUSTVNRGt5TVRBMk5UWXhOVm93RWpFUU1BNEdBMVVFQXhNSAphM1ZpWlMxallUQ0NBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQU1vUFdDOEo0UFl1CnBPaDVUQ2kyTi95UFA4bnFGM2FQa1pTU3hQKzVrc0Z6S1RIOHpPbFBiMmxOVE9GL0NBZ3dQNHFDSFk3UERIdkUKTHF2djhCR0lzL2k3YWdjd0tLS0K
  17.     server: https://172.31.43.201:6443
  18.   name: qa-ip-172-31-43-201
  19. contexts:
  20. - context:
  21.     cluster: dev
  22.     user: user-vzqdz
  23.   name: dev
  24. - context:
  25.     cluster: dev-ip-172-31-41-217
  26.     user: user-vzqdz
  27.   name: dev-ip-172-31-41-217
  28. - context:
  29.     cluster: qa
  30.     user: user-vzqdz
  31.   name: qa
  32. - context:
  33.     cluster: qa-ip-172-31-43-201
  34.     user: user-vzqdz
  35.   name: qa-ip-172-31-43-201
  36. current-context: dev
  37. kind: Config
  38. preferences: {}
  39. users:
  40. - name: user-vzqdz
  41.   user:
  42.     token: kubeconfig-user-vzqdz.c-gdvhj:dn8fc8tjz42j4wjmztznqvtznnfnz7jdbvbk7mkqxtdqxv54d2pdgs
Add Comment
Please, Sign In to add comment