mirror of https://git.rancher.io/charts
34 lines
750 B
YAML
34 lines
750 B
YAML
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: Role
|
||
|
metadata:
|
||
|
name: {{ .Chart.Name }}-dashboard
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
app: {{ .Chart.Name }}
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- services/proxy
|
||
|
resourceNames:
|
||
|
- "http:{{ .Chart.Name }}:{{ .Values.service.port }}"
|
||
|
- "https:{{ .Chart.Name }}:{{ .Values.service.port }}"
|
||
|
verbs:
|
||
|
- '*'
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: RoleBinding
|
||
|
metadata:
|
||
|
name: {{ .Chart.Name }}-dashboard
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
app: {{ .Chart.Name }}
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: Role
|
||
|
name: {{ .Chart.Name }}-dashboard
|
||
|
subjects:
|
||
|
- kind: Group
|
||
|
name: system:authenticated
|
||
|
apiGroup: rbac.authorization.k8s.io
|