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 allowPrivilegeEscalation: true
23 readOnlyRootFilesystem: false
31 - 'persistentVolumeClaim'
44 apiVersion: rbac.authorization.k8s.io/v1
47 name: caas:default-psp
49 - apiGroups: ['extensions']
50 resources: ['podsecuritypolicies']
52 resourceNames: ['caas-default']
54 apiVersion: rbac.authorization.k8s.io/v1
55 kind: ClusterRoleBinding
57 name: caas:default-psp
60 name: caas:default-psp
61 apiGroup: rbac.authorization.k8s.io
63 # Authorize system:nodes group to be able to create mirror pods
65 apiGroup: rbac.authorization.k8s.io
68 apiGroup: rbac.authorization.k8s.io
69 name: system:serviceaccounts