haproxy-kubernetes/haproxy-ingress-rbac.yaml
holzi1005 f22d7423e8
Some checks failed
Build Go Binary / build (push) Has been cancelled
Add haproxy-ingress-rbac.yaml
2025-06-29 15:17:26 +02:00

30 lines
696 B
YAML

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