Files
home-cluster/provision/ansible/playbooks/templates/kube-vip-rbac.yaml.j2
T
Kyle Chou 54a0031ec9 fix: modified task ansible:adhoc:ping (#87)
* fix: modified the ansible docs
1. remove kubernetes dir in playbooks task
2. remove unattended
3. remove kube-vip dir in templates
4. change adhoc:ping
5. add task ansible:deps

* fix: modified task ansible:adhoc:ping

* fix: can't find the templates dir
2021-09-29 04:53:55 -04:00

34 lines
798 B
Django/Jinja

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube-vip
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
name: system:kube-vip-role
rules:
- apiGroups: [""]
resources: ["services", "services/status", "nodes"]
verbs: ["list", "get", "watch", "update"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["list", "get", "watch", "update", "create"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: system:kube-vip-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:kube-vip-role
subjects:
- kind: ServiceAccount
name: kube-vip
namespace: kube-system