This repository contains some example Kubernetes/ArgoCD manifests. It is useful for testing the functionalities, configurations and syncOptions of ArgoCD.
-
We will be using a kind cluster for our tests. Please follow the installation instructions before continuing.
-
Create a new kind cluster called
kind-gitops-test
for our tests:kind create cluster --name kind-gitops-test --kubeconfig ~/.kube/kind-gitops-test
Creating cluster "kind-gitops-test" ... โ Ensuring node image (kindest/node:v1.26.3) ๐ผ โ Preparing nodes ๐ฆ โ Writing configuration ๐ โ Starting control-plane ๐น๏ธ โ Installing CNI ๐ โ Installing StorageClass ๐พ Set kubectl context to "kind-kind-gitops-test" You can now use your cluster with: kubectl cluster-info --context kind-kind-gitops-test --kubeconfig ~/.kube/kind-gitops-test Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community ๐
-
Export the
KUBECONFIG
variable in your shell.export KUBECONFIG=~/.kube/kind-gitops-test
-
Install ArgoCD on the kind cluster in a new
argocd
namespace:You can find the latest instructions on the ArgoCD Getting Started documentation page.
kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
-
Get the intial admin secret for your test argocd instance:
kubectl get secret -n argocd argocd-initial-admin-secret --template='{{ index .data.password | base64decode }}{{ "\n" }}'
-
Port-forward the argocd-server service to get access to the web-ui/api
kubectl port-forward svc/argocd-server -n argocd 8080:443
-
Navigate to
https://localhost:8080/
, ingore the certificate warning and login with useradmin
and the initial admin password. -
[optional] Navigate to
User info
and Click theUPDATE PASSWORD
button, change the password and reauthenticate -
Follow the instructions in the README file of each example.