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