Kubernetes: Dummy Pod

So we can test kubectl┬álet’s create a dummy pod.

Apply with:

kubectl apply -f pod.yaml

and test with:

kubectl get pods


I get:


The logs won’t show anything ‘cos it hasn’t started yet.

Let’s describe the pod.

k describe pod w-dummy-pod

Memory pressure.

Let’s give minikube more memory.

minikube config set memory 2048


and we can exec in with:

k exec -it w-dummy-pod bash


Let’s check we can cp a file in:

echo "test" > test.txt

Prove it doesn’t exist in the Pod by:

k exec -it w-dummy-pod bash

and ls


k cp test.txt w-dummy-pod:/testing.txt

and then exec in and ls.







Leave a Reply

Your email address will not be published. Required fields are marked *