kubernetes - Execute bash command in pod with kubectl? - Stack Overflow The double dash symbol "--" is used to separate the command you want to run inside the container from the kubectl arguments So the correct way is: kubectl exec -it --namespace=tools mongo-pod -- bash -c "mongo" You forgot a space between "--" and "bash" To execute multiple commands you may want: to create a script and mount it as a volume in your pod and execute it to launch a side container
What is the meaning of CPU and core in Kubernetes? To clarify what's described here in the Kubernetes context, 1 CPU is the same as a core (Also more information here) 1000m (milicores) = 1 core = 1 vCPU = 1 AWS vCPU = 1 GCP Core 100m (milicores) = 0 1 core = 0 1 vCPU = 0 1 AWS vCPU = 0 1 GCP Core For example, an Intel Core i7-6700 has four cores, but it has Hyperthreading which doubles what the system sees in terms of cores So in essence