Skip to content

Instantly share code, notes, and snippets.

@jbek7
Created April 18, 2020 23:23
Show Gist options
  • Save jbek7/c4a9ecfc05320efdb7ac4a4df67ddd4a to your computer and use it in GitHub Desktop.
Save jbek7/c4a9ecfc05320efdb7ac4a4df67ddd4a to your computer and use it in GitHub Desktop.
kube-config-template-okd
apiVersion: v1
clusters:
- cluster:
server: {{okd_hostname}}
name: my-cluster
contexts:
- context:
cluster: my-cluster
namespace: my-namespace
user: my-user
name: my-context
current-context: my-context
kind: Config
preferences: {}
users:
- name: my-user
user:
token: {{k8s_auth_api_key}} # you get this token from the result of basic auth via k8s ansible module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment