Consider the following manifest:
apiVersion: v1
kind: Pod
metadata:
name: firstpod
spec:
containers:
- name: container2
image: varunuppal/nonrootsudo
tty: false
stdin: false
I have read here that tty indicates "
Whether this container should allocate a TTY for itself
so If understand it well, setting it to false, it should not be possible to run into the container with kubectl exec -ti firstpod bash. However, I am still able to do it !!!
I have read this answer bu my problem is the "other way" : I set tty to false but still can execute commands in the container
What did I misunderstand?