diff --git a/scripts/labs/argocd/README.md b/scripts/labs/argocd/README.md index 6e87ed7fb6..f38fdf208c 100644 --- a/scripts/labs/argocd/README.md +++ b/scripts/labs/argocd/README.md @@ -1,11 +1,20 @@ # ArgoCD lab This lab sets up the following components: -- A kind cluster -- nginx-ingress -- ArgoCD -- ArgoCD application to deploy kyverno -- ArgoCD application to deploy kyverno-policies +- A [kind](https://kind.sigs.k8s.io) cluster +- [ingress-nginx](https://github.com/kubernetes/ingress-nginx) +- [ArgoCD](https://argo-cd.readthedocs.io) +- ArgoCD application to deploy [kyverno](https://kyverno.io) +- ArgoCD application to deploy [kyverno-policies](https://artifacthub.io/packages/helm/kyverno/kyverno-policies) +- ArgoCD application to deploy [policy-reporter](https://kyverno.github.io/policy-reporter) + +## Install + +Run the command below to install the lab: + +```console +./kind-argo.sh +``` ## Accessing ArgoCD @@ -14,3 +23,7 @@ ArgoCD should be available at http://localhost/argocd. Login credentials: - User name: `admin` - Password: `kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d` + +## Accessing policy-reporter + +policy-reporter should be available at http://localhost/policy-reporter. diff --git a/scripts/labs/argocd/kind-argo.sh b/scripts/labs/argocd/kind-argo.sh index cb20e66036..2d45695098 100755 --- a/scripts/labs/argocd/kind-argo.sh +++ b/scripts/labs/argocd/kind-argo.sh @@ -7,6 +7,10 @@ set -e readonly KIND_IMAGE=kindest/node:v1.24.4 readonly NAME=argo +# DELETE CLUSTER + +kind delete cluster --name $NAME || true + # CREATE CLUSTER kind create cluster --name $NAME --image $KIND_IMAGE --config - <