You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
445 B

9 years ago
  1. apiVersion: v1
  2. kind: Config
  3. current-context: kubectl-to-{{ cluster_name }}
  4. preferences: {}
  5. clusters:
  6. - cluster:
  7. certificate-authority-data: {{ kube_ca_cert|b64encode }}
  8. server: https://{{ groups['kube-master'][0] }}:{{ kube_master_port }}
  9. name: {{ cluster_name }}
  10. contexts:
  11. - context:
  12. cluster: {{ cluster_name }}
  13. user: kubectl
  14. name: kubectl-to-{{ cluster_name }}
  15. users:
  16. - name: kubectl
  17. user:
  18. token: {{ kubectl_token }}