Example how to use tekton pipelines and keel to do the ci-cd on kubernetes (GKE)
Below are the steps how to do it by using the terraform. You can create your GKE cluster manually!
- terraform
On Mac the fastest way to do it is by using: https://warrensbox.github.io/terraform-switcher/
Create a service account (e.g my-terraform-gcp) with:
- Editor
- Storage Admin
role and create a key which you will put in cluster/creds folder (e.g cluster/creds/my-gcp-1111.json)
- Run
terraform initfromclusterdirectory - Run
terraform planto check you resources - Run
terraform applyto apply the changes
gcloud container clusters get-credentials -cluster --region europe-west4 --project
Look at README file in ci-cd/tekton directory.
Look at README file in ci-cd/keel directory.
- Delete keel namespace:
kubectl delete ns keel - Delete the cluster:
terraform destroyfromclusterdirectory - Delete the IAM and service accounts from GCP
- Delete the storage bucket
artifatct...