summaryrefslogtreecommitdiffstats
path: root/ansible/roles/kubectl/templates
diff options
context:
space:
mode:
authorMichal Zegan <m.zegan@samsung.com>2019-04-23 16:34:58 +0200
committerPetr OspalĂ˝ <p.ospaly@partner.samsung.com>2019-05-17 08:09:57 +0000
commit119f760bc517ca037fbbc90bc741902c75c4696c (patch)
treee91d80624ebee447338721aaaef2820ec19bbf2f /ansible/roles/kubectl/templates
parentfe49ee9006e9396c79f90365b9e814ee70c9fcee (diff)
Add setup for kubectl and helm
the kubeconfig is copied from the cluster config directory to ~/.kube/config. Also, the playbook runs kubectl and helm roles to install tools. Change-Id: I29ee98f6502bbb7923b1ae6812dd642ca206dbce Issue-ID: OOM-1778 Signed-off-by: Petr OspalĂ˝ <p.ospaly@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'ansible/roles/kubectl/templates')
-rw-r--r--ansible/roles/kubectl/templates/kube_config.j219
1 files changed, 0 insertions, 19 deletions
diff --git a/ansible/roles/kubectl/templates/kube_config.j2 b/ansible/roles/kubectl/templates/kube_config.j2
deleted file mode 100644
index 586c59d4..00000000
--- a/ansible/roles/kubectl/templates/kube_config.j2
+++ /dev/null
@@ -1,19 +0,0 @@
-apiVersion: v1
-kind: Config
-clusters:
-- cluster:
- api-version: v1
- insecure-skip-tls-verify: true
- server: "{{ kube_server }}"
- name: "{{ app_name }}"
-contexts:
-- context:
- cluster: "{{ app_name }}"
- user: "{{ app_name }}"
- name: "{{ app_name }}"
-current-context: "{{ app_name }}"
-users:
-- name: "{{ app_name }}"
- user:
- token: "{{ (['Basic', [key_public, key_private] | join(':') | b64encode] | join(' ')) | b64encode }}"
-