16 - CKA exam Q16 with Solution.... Create a pod & using mentioned Security Context

preview_player
Показать описание
Q16) Create a pod called pod-jxc, using details mentioned below:
SecurityContect
runasUser: 1000
fsGroup: 2000

Image=redis:alpine

It's easy: #kubenetes #CKA #DevOps #security
SOLUTION 16)
alias g=kubectl


Now if try running a command with some other user (other than uid 1000)
g exec -it pod-jxc -- whoami

It will not let you do that.
Рекомендации по теме