homepage/manifests/common/clusterrole.yaml
ange bbc6a6d624
Some checks failed
/ deploy (push) Failing after 0s
fix: REF_NAME -> INSTANCE_NAME
2024-05-16 01:54:02 +02:00

33 lines
586 B
YAML

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: homepage
automountServiceAccountToken: true
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: homepage
rules:
- apiGroups:
- networking.k8s.io
resources:
- ingresses
verbs:
- get
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: "homepage-$INSTANCE_NAME"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: homepage
subjects:
- kind: ServiceAccount
name: homepage
namespace: "$K8S_NS"