Worldcup is an application to be tested in Kubernetes environment.
The champion is set in champ
environment variable.
You should build and deploy it into your own registry.
docker build . -t rodriguezarata/worldcup:0.1
docker push rodriguezarata/worldcup:0.1
docker run -d --env champ=francia --name worldcup -p 80:80 rodriguezarata/worldcup:0.1
kubectl run worldcup --image rodriguezarata/worldcup:0.1 --env="champ=francia"
kubectl apply -f manifest.yaml
You will replace the current champ value, after that, you will need to restart the pods.
kubectl edit configmaps worldcup-configmap
kubectl rollout restart deployment worldcup-deployment
kubectl rollout undo deployment worldcup-deployment
kubectl describe pods worldcup-deployment-85b445ccb5-8lfj9
kubectl logs deployments/worldcup-deployment -f
You will generate a pod to connect to the service in the cluster
kubectl run -i --tty --rm debug --image=alpine --restart=Never -- sh
apk update
apk upgrade
apk add curl
watch curl 'worldcup-service.default.svc/host'