helm_chart/HyperPodHelmChart/charts/cluster-role-and-bindings/templates/cluster-level-config.yaml (24 lines of code) (raw):

kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ .Values.roleName }} rules: - apiGroups: [""] resources: ["pods"] verbs: ["list"] - apiGroups: [""] resources: ["nodes"] verbs: ["list"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ .Values.roleName }}-binding subjects: - kind: Group name: {{ .Values.roleName }}-cluster-level apiGroup: rbac.authorization.k8s.io roleRef: kind: ClusterRole name: {{ .Values.roleName }} # this must match the name of the Role or ClusterRole you wish to bind to apiGroup: rbac.authorization.k8s.io