4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 apiVersion: extensions/v1beta1
17 kind: PodSecurityPolicy
22 readOnlyRootFilesystem: false
30 - 'persistentVolumeClaim'
52 apiVersion: rbac.authorization.k8s.io/v1
57 - apiGroups: ['extensions']
58 resources: ['podsecuritypolicies']
60 resourceNames: ['caas-infra']
62 apiVersion: rbac.authorization.k8s.io/v1
63 kind: ClusterRoleBinding
69 apiGroup: rbac.authorization.k8s.io
71 # Authorize system:nodes group to be able to create mirror pods
73 apiGroup: rbac.authorization.k8s.io
75 - kind: ServiceAccount
77 namespace: kube-system