homepage/manifests/common/clusterrole.yaml

33 lines
586 B
YAML
Raw Permalink Normal View History

2024-05-03 15:16:30 +00:00
---
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:
2024-05-15 23:54:02 +00:00
name: "homepage-$INSTANCE_NAME"
2024-05-03 15:16:30 +00:00
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: homepage
subjects:
- kind: ServiceAccount
name: homepage
2024-05-15 17:48:31 +00:00
namespace: "$K8S_NS"