mirror of https://github.com/easzlab/kubeasz.git
v1.16: networkpolicies under networking.k8s.io/v1
parent
4cf696b22f
commit
ca501796c4
|
@ -116,7 +116,6 @@ rules:
|
|||
- deployments/status
|
||||
- ingresses
|
||||
- ingresses/status
|
||||
- networkpolicies
|
||||
- replicasets
|
||||
- replicasets/scale
|
||||
- replicasets/status
|
||||
|
|
|
@ -10,7 +10,7 @@ metadata:
|
|||
release: {{ .Release.Name }}
|
||||
{{- if .Values.rbac.pspEnabled }}
|
||||
rules:
|
||||
- apiGroups: ['extensions']
|
||||
- apiGroups: ['policy']
|
||||
resources: ['podsecuritypolicies']
|
||||
verbs: ['use']
|
||||
resourceNames: [{{ template "grafana.fullname" . }}]
|
||||
|
|
|
@ -399,7 +399,6 @@ rules:
|
|||
resources:
|
||||
- pods
|
||||
- namespaces
|
||||
- networkpolicies
|
||||
- nodes
|
||||
- serviceaccounts
|
||||
verbs:
|
||||
|
|
|
@ -408,7 +408,6 @@ rules:
|
|||
resources:
|
||||
- pods
|
||||
- namespaces
|
||||
- networkpolicies
|
||||
- nodes
|
||||
- serviceaccounts
|
||||
verbs:
|
||||
|
|
|
@ -109,7 +109,6 @@ rules:
|
|||
- deployments/status
|
||||
- ingresses
|
||||
- ingresses/status
|
||||
- networkpolicies
|
||||
- replicasets
|
||||
- replicasets/scale
|
||||
- replicasets/status
|
||||
|
|
|
@ -51,7 +51,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||
metadata:
|
||||
name: flannel
|
||||
rules:
|
||||
- apiGroups: ['extensions']
|
||||
- apiGroups: ['policy']
|
||||
resources: ['podsecuritypolicies']
|
||||
verbs: ['use']
|
||||
resourceNames: ['psp.flannel.unprivileged']
|
||||
|
|
|
@ -154,14 +154,6 @@ rules:
|
|||
- list
|
||||
- get
|
||||
- watch
|
||||
- apiGroups:
|
||||
- extensions
|
||||
resources:
|
||||
- networkpolicies
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
|
|
Loading…
Reference in New Issue