devops-exercises/exercises/devops/solutions/deploy_to_kubernetes
2021-08-13 09:23:50 +03:00
..
html Add 57 new questions and exercises 2021-08-13 09:23:50 +03:00
deploy.yml Add 57 new questions and exercises 2021-08-13 09:23:50 +03:00
helloworld.yml Add 57 new questions and exercises 2021-08-13 09:23:50 +03:00
inventory Add 57 new questions and exercises 2021-08-13 09:23:50 +03:00
Jenkinsfile Add 57 new questions and exercises 2021-08-13 09:23:50 +03:00
README.md Add 57 new questions and exercises 2021-08-13 09:23:50 +03:00

Deploy to Kubernetes

Note: this exercise can be solved in various ways. The solution described here is just one possible way.

  1. Install Jenkins on one system (follow up the standard Jenkins installation procedure)

  2. Deploy Kubernetes on a remote host (minikube can be an easy way to achieve it)

  3. Create a simple web app or page

  4. Create Kubernetes resoruces - Deployment, Service and Ingress (for HTTPS access)

  5. Create an Ansible inventory and insert the address of the Kubernetes cluster

  6. Write Ansible playbook to deploy the Kubernetes resources and also generate

  7. Create a pipeline

  8. Run the pipeline :)

  9. Try to access the web app remotely