Skip to content
Snippets Groups Projects
Verified Commit 31732cdb authored by Varac's avatar Varac
Browse files

Fix tiller installation for ansible 2.6 (#103)

parent 7ac36b7c
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ ansible/rke.log
# Virtualenvs for the project
/env
/venv
/.direnv
# Ignore files created during CI using test/ci-bootstrap.py
/test/group_vars/
......
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: tiller-clusterrolebinding
subjects:
- kind: ServiceAccount
name: tiller
namespace: kube-system
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: ""
......@@ -58,12 +58,34 @@
name: openshift
executable: /usr/bin/pip3
- name: Install Tiller
- name: Configure Tiller serviceaccount
tags:
- tiller
k8s:
state: present
definition: "{{ lookup('file', 'k8s-config/tiller-permissions.yml') }}"
api_version: v1
kind: ServiceAccount
name: tiller
namespace: kube-system
- name: Configure Tiller ClusterRoleBinding
tags:
- tiller
k8s:
state: present
definition:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: tiller-clusterrolebinding
subjects:
- kind: ServiceAccount
name: tiller
namespace: kube-system
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: ""
- name: Check if tiller is already instaled
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment