Kubernetes pokemon
Description
Use the pokemon container that you created in a previous project and deploy to k8s.
You should:
- create a yml file that defines the pokemon deployment (use the image that you created in the docker assignment). You could push that image to dockerhub if necessary.
- I stripped out all the env variables from my Dockerfile and defined those in my k8s yaml file.
- Start with a single replica
- In the same yml file, I defined a Deployment AND a service (using NodePort) for my pokemon instance.
- Create a yml file that defines the mysql deployment.
- I set my env variables within this yml file
- Also created a service in this file. (I used a clusterIP)
Hint: If you give your mysql Service the name of mysql
, it will then be available as mysql.default.svc.cluster.local
within the cluster. (That’s what I put as my DB_HOST env variable in the pokemon yml file.)
To Pass off
Show me that you can get this cluster up and running.