wuestkamp / cka-example-environments

112 stars 94 forks source link

Issue8 - Use configmap suggestion #9

Closed techotron closed 2 years ago

techotron commented 3 years ago

This PR includes a configmap for the nginx container in the first exercise. This is to address the suggestion in #8

Essentially, this doesn't change the exercise and the troubleshooting which leads up to it but does provide the ability to the participant to solve the erroring container.

The solution to question 5 in the first exercise would now be:

  1. Edit the configmap so the nginx container listens on port other than 80 (eg kubectl edit)
  2. Output pod def (eg, k describe pod web-server -o yaml > pod.yaml)
  3. Delete web-server pod (k delete pod web-server)
  4. Create new web-server pod (k apply -f pod.yaml`)
techotron commented 2 years ago

Closing this as per notice in readme