Deploy to Kubernetes
Note: this exercise can be solved in various ways. The solution described here is just one possible way.
- Install Jenkins on one system (follow up the standard Jenkins installation procedure)
- Deploy Kubernetes on a remote host (minikube can be an easy way to achieve it)
-
Create a simple web app or page
- Create Kubernetes resources - Deployment, Service and Ingress (for HTTPS access)
- Create an Ansible inventory and insert the address of the Kubernetes cluster
- Write Ansible playbook to deploy the Kubernetes resources and also generate
-
Create a pipeline
- Run the pipeline :)
- Try to access the web app remotely