This project is intended to be use as playground to learn some kubernetes concepts over minikube. Under the folder k8s-resources, there are some yamls which each one defines a kubernetes resource.
this project is under construction
You can find the official info here
You can find the official info here
To test some resources it will be using a tiny python script with two hello world sentences.
To build the image using the Dockerfile use the following command from the root of the project:
docker build -t python-helloworld docker/To upload the image to the minikube container registry use the following line:
docker save python-helloworld | (eval $(minikube docker-env) && docker load)To create resources in k8s, you can use the following command:
kubectl apply -f [filename]So to begin with the basic environment and run the first test execute those commands:
kubectl apply -f configmap.yaml
kubectl apply -f pod.yamlOnce executed, you will see Hello from configmap in the logs of the pod. You can extract the with this command:
kubectl logs $(kubectl get pods -o=name | head -n 1 | cut -d / -f 2)