Update haproxy-ingress-rbac.yaml
Some checks failed
Build Go Binary / build (push) Has been cancelled
Some checks failed
Build Go Binary / build (push) Has been cancelled
This commit is contained in:
parent
fd31ce7eed
commit
2e3bcfac2d
1 changed files with 6 additions and 9 deletions
|
@ -1,30 +1,27 @@
|
|||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: haproxy-sa
|
||||
name: gateway
|
||||
namespace: kube-system
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: haproxy-ingress-reader
|
||||
name: gateway
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["endpoints", "services", "namespaces"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["networking.k8s.io"]
|
||||
resources: ["ingresses"]
|
||||
resources: ["endpoints", "services", "namespaces", "nodes"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: haproxy-ingress-reader-binding
|
||||
name: gateway
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: haproxy-ingress-reader
|
||||
name: gateway
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: haproxy-sa
|
||||
name: gateway
|
||||
namespace: kube-system
|
||||
|
|
Loading…
Add table
Reference in a new issue