Created
April 18, 2020 23:23
-
-
Save jbek7/c4a9ecfc05320efdb7ac4a4df67ddd4a to your computer and use it in GitHub Desktop.
kube-config-template-okd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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