fixing error

This commit is contained in:
2025-05-22 14:19:29 +02:00
parent 9e93490324
commit d6179ac526

View File

@@ -79,4 +79,28 @@ spec:
- port: 443 - port: 443
targetPort: 8443 targetPort: 8443
selector: selector:
k8s-app: kubernetes-dashboard k8s-app: kubernetes-dashboard
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: dashboard-csrf-access
namespace: kube-system
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "update", "create"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: dashboard-csrf-access
namespace: kube-system
subjects:
- kind: ServiceAccount
name: kubernetes-dashboard
namespace: kubernetes-dashboard
roleRef:
kind: Role
name: dashboard-csrf-access
apiGroup: rbac.authorization.k8s.io