I am trying to start a pod in privileged mode using the following manifest but it doesn't work for me.
apiVersion: v1
kind: Pod
metadata:
name: ftp
spec:
privileged: true
hostNetwork: true
containers:
- name: ftp
image: 84d3f7ba5876/ftp-run
privileged: true needs to be in securityContext in the spec section of the pod template.
apiVersion: v1
kind: Pod
metadata:
name: ftp
spec:
hostNetwork: true
containers:
- name: ftp
image: 84d3f7ba5876/ftp-run
securityContext:
privileged: true
You can refer to this doc for detailed information for privileged mode
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With