1 Star 0 Fork 15

ryvius_key/carina

forked from Carina/carina 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
csi-controller-psp.yaml 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
付少松 提交于 2021-03-03 11:56 . yaml
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: carina-csi-provisioner-psp
labels:
class: carina
spec:
allowPrivilegeEscalation: true
allowedCapabilities:
- 'SYS_ADMIN'
fsGroup:
rule: RunAsAny
privileged: true
runAsUser:
rule: RunAsAny
seLinux:
rule: RunAsAny
supplementalGroups:
rule: RunAsAny
volumes:
- 'configMap'
- 'emptyDir'
- 'projected'
- 'secret'
- 'downwardAPI'
- 'hostPath'
allowedHostPaths:
- pathPrefix: '/dev'
readOnly: false
- pathPrefix: '/sys'
readOnly: false
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: carina-csi-provisioner-psp
# replace with non-default namespace name
namespace: kube-system
labels:
class: carina
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: ['carina-csi-provisioner-psp']
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: carina-csi-provisioner-psp
# replace with non-default namespace name
namespace: kube-system
labels:
class: carina
subjects:
- kind: ServiceAccount
name: carina-csi-controller
# replace with non-default namespace name
namespace: kube-system
roleRef:
kind: Role
name: carina-csi-provisioner-psp
apiGroup: rbac.authorization.k8s.io
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ryvius_key/carina.git
[email protected]:ryvius_key/carina.git
ryvius_key
carina
carina
main

搜索帮助