This is for Test Number 2 to deploy SimpleService and Influxdb
-
Jenkins
Install Plugin kubernetes, kubernetes CLI, Google Kubernetes Engine, Kubernetes Credential Plugin and make sure git plugin installed
next step create credential in jenkins like credential for login to github repo, docker repo and google kubernetes
-
Docker
After Install Docker Engine in Linux, Please Usermod first for running jenkins to docker
usermod -aG docker jenkins
Restart Docker after usermod
-
kubectl
Apply First for Ingress and Influxdb to your kubernetes because this yaml not include in CI/CD.
4. google kubernetes engineCreate Kubernetes Cluster dan import Service Account key in AIM menu
- Setting Node Cloud for Connect to Google Kubernetes Engine
Manage Jenkins -> Manage Nodes and Clouds -> Manage Clouds
2. Choose Kubernetes in 'kubernetes' you can assign kubernetes cluster IP from your GKE(Google Kubernetes Engine) Cluster and get Credential key sam place under IP kubernetes Cluster 3. For the next Step we must add jenkins_url ``` http://hostname:port ``` and choose websocket for connect to agent
5. in the menu kubernetes have pod template this menu use for create pod agent kubernetes to support Deployment to GKE and give label for intialitaion agent if we want to use this agent 5. for test the agent we can make freestyle project and choose Restrict where this project and input the label of agent we made for example 6. Choose ``` kube-slave ``` choose build step execute shell for test command in the agent if success we can go to next step for create CI/CD pipeline jenkins 8. Create new Item and select the pipeline Project after that scroll and until pipeline category and choose pipeline script from SCM for running jenkinsfile for SCM select git and paste repository where we use for CI/CD and select credential of github we add in the first after install plugin after that save and build 7. after that try to build the job jenkins we made for CI/CD for SimpleService