当前位置:网站首页>Pod security policy (PSP)
Pod security policy (PSP)
2022-06-29 13:16:00 【Know the old code】
@toc
Enable Pod The security policy

# edit kube-apiserver.yaml
vim /etc/kubernetes/manifests/kube-apiserver.yaml
# Enable pod The security policy , stay kube-apiserver.yaml Add the following parameters
- --enable-admission-plugins=NodeRestriction,PodSecurityPolicy
# restart kubelet service
systemctl restart kubelet
It is forbidden to create privilege mode pod

# Create a service account in the default namespace aliang
kubectl create sa aliang
# take SA Bind to system built-in Role
kubectl create rolebinding aliang --clusterrole=edit --sa=default:aliang
# Create using PSP Authority to Role
kubectl create role psp:unprivileged --verb=use --resource=podsecuritypolicy --resource-name=psp-example
# take SA Bound to the Role
kubectl create rolebinding aliang:psp:unprivileged --role=psp:unprivileged --sa=default:aliang
边栏推荐
猜你喜欢

从零搭建Pytorch模型教程(五)编写训练过程--一些基本的配置

Server monitoring netdata panel configuring mail service

MATLAB求极限

CVPR2022 | 通过目标感知Transformer进行知识蒸馏

Interview shock 61: tell me about MySQL transaction isolation level?

Aes-128-cbc-pkcs7padding encrypted PHP instance

OPC of Beifu twincat3_ UA communication test case

Cvpr2022 𞓜 loss problem in weakly supervised multi label classification

CVPR2022 | 重新审视池化:你的感受野不是最理想的

倍福PLC通过CANOpen通信控制伺服
随机推荐
QQ group was stolen, a large-scale social death scene caught off guard
QT signal and slot
Evaluation of powerful and excellent document management software: image management, book management and document management
C # realize the hierarchical traversal of binary tree
Proteus Software beginner notes
Beifu PLC controls servo through CANopen communication
C # output the middle order traversal through the clue binary tree
C#实现二叉排序树定义、插入、构造
MySQL常用语句和命令汇总
Clickhouse database uses JDBC to store milliseconds and nanoseconds
CVPR2022 | PanopticDepth:深度感知全景分割的统一框架
SCHIEDERWERK電源維修SMPS12/50 PFC3800解析
Cvpr2022 | reexamine pooling: your receptive field is not the best
Nacos startup error
C#线索二叉树的定义
qt json
ArcGIS中对面状河流进行等距分段【渐变赋色、污染物扩散】
Pygame 精准检测图像碰撞
CVPR2022 | 重新审视池化:你的感受野不是最理想的
倍福TwinCAT配置、调试第三方伺服详细讲解--以汇川IS620N为例子