We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f593873 commit 3b62dd0Copy full SHA for 3b62dd0
roles/k8s/tasks/create_context.yml
@@ -0,0 +1,11 @@
1
+# Create k8s context
2
+
3
+ - name: Set context cluster
4
+ command: kubectl config set-cluster exo --server=http://{{ k8s_master.default_ip }}:8080 --insecure-skip-tls-verify=true
5
+ tags: context
6
7
+ - name: Create context
8
+ command: kubectl config set-context exo --cluster=exo
9
10
+ - name: Use context
11
+ command: kubectl config use-context exo
roles/k8s/tasks/main.yml
@@ -3,3 +3,4 @@
- include: create_secgroup_rules.yml
- include: create_vm.yml
- include: create_inv.yml
+ - include: create_context.yml
0 commit comments