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

This commit is contained in:
holzi1005 2025-06-29 17:30:27 +02:00
parent fd31ce7eed
commit 2e3bcfac2d

View file

@ -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