GitOps is today the way you automate deployment pipelines within Kubernetes itself, and ArgoCD is currently one of the leading implementations. Install it to create a CI/CD solution, using tekton and kaniko for actual image building. https://medium.com/dzerolabs/using-tekton-and-argocd-to-set-up-a-kubernetes-native-build-release-pipeline-cf4f4d9972b0
- We use Pulumi's DigitalOcean Go SDk to deploy the kuberntes cluster and get the ID
ctx.Export("clusterID", cluster.ID())
- Install doctl
- Update kubeconfig/context with
doctl kubernetes cluster kubeconfig save [ID exported in step 1 (see stdout)]
- We use Pulumi's DigitalOcean Go SDk to deploy ArgoCD and Tekton manifests and related resources. Traefik is also installed with annotations that create a DO loadbalancer and a letsencrypt cert provisioned. The plan here was to expose the Argo and Tekton UIs via domains with Traefik but did not finish. See port forward commands below.
brew install argocd
for ArgoCD CLIbrew install tekton-cli
for Tekton clitkn
kubectl port-forward svc/argocd-server -n argocd 8080:443
expose argocd UI on localhost:8080kubectl --namespace tekton-pipelines port-forward svc/tekton-dashboard 9097:9097
expose Tekton Dashboard on localhost:9097- Follow getting started guides in ArgoCD and Tekton to deploy example app, tasks, and pipeline.