Using Ansible to install dependencies and deploy jenkins on gke.
-
Dependencies :
- Pip: to use python library
- Kubectle: to connect to cluster api
- JDK-11: to use vm as a slave for Jenkins
- Docker: to docrize app and push it to Docker hub
- Kubernates library : to use k8s module in ansible
-
Deployment:
using k8s module
- create new namespace to deploy Jenkins pod on it
- create statfulset for Jenkins
- create service loadbalancer to use Jenkins
using command module
- get loadbalancer ip
- get Jenkins admin's password