Add haproxy-ingress-rbac.yaml
Some checks failed
Build Go Binary / build (push) Has been cancelled

This commit is contained in:
holzi1005 2025-06-29 15:17:26 +02:00
parent 3bcf42e94a
commit f22d7423e8

30
haproxy-ingress-rbac.yaml Normal file
View file

@ -0,0 +1,30 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: haproxy-sa
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: haproxy-ingress-reader
rules:
- apiGroups: [""]
resources: ["endpoints", "services", "namespaces"]
verbs: ["get", "list", "watch"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: haproxy-ingress-reader-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: haproxy-ingress-reader
subjects:
- kind: ServiceAccount
name: haproxy-sa
namespace: kube-system