- Take me to the Video Tutorial
In this section, we will take a look at Linux Capabilities
.
-
Linux capabilities provide a finer grained breakdown of the privileges traditionally associated with the superuser.
-
The
date -s '19 APR 20120 22:00:00'
command is not permittedkubectl run --rm -it ubuntu-sleeper --image=ubuntu -- bash
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-sleeper
spec:
containers:
- name: ubuntu-sleeper
image: ubuntu
command: ["sleep", "1000"]
securityContext:
capabilities:
add: ["SYS_TIME"]
kubectl apply -f ubuntu-sleeper.yml
kubectl exec -it ubuntu-sleeper -- bash