an exploration in arggocd (not to be confused with argo workflows org argo events)
Install docker/kube as wish I use Docker Desktop with Kubernetes enabled
Install cli tools
brew install helm
brew install argocd
create a namespace and install it
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
metadata:
name: argo
EOF
kubectl apply -n argocd \
-f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl get services -n argocd --watch
kubectl port-forward service/argocd-server -n argocd 8080:443
authenticate the argocd
cli
argocd login 127.0.0.1:8080
the default username will be admin
. run the following to get the password
kubectl -n argocd get secret argocd-initial-admin-secret \
-o jsonpath="{.data.password}" \
| base64 -d \
| pbcopy
open http://localhost:8080 in your browser and create app
Alternatively create an argo app via the argocd
cli
argocd app create argoville \
--repo https://github.com/softprops/argoville.git \
--path helm \
--values values-dev.yaml \
--dest-server https://kubernetes.default.svc \
--dest-namespace dev \
--sync-policy automated \
--self-heal \
--auto-prune
kubectl get all --namespace dev
port forward demo app
kubectl port-forward service/argodemo -n dev 8082:80
clean up
argocd app delete argoville -y
kubectl delete ns argo
-fin