svend / argocd-cue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Argo CD with CUE

Setup

Install kind.

go get -u sigs.k8s.io/kind@v0.6.0

https://kind.sigs.k8s.io/docs/user/quick-start/

Install kubectl

https://kubernetes.io/docs/tasks/tools/install-kubectl/

Install argocd cli

https://github.com/argoproj/argo-cd/blob/master/docs/getting_started.md

Demo

Create a Kubernetes cluster.

kind create cluster --name argocd-cue

Build the Docker container image.

docker build -t argocd-cue:v1 .

Load the container image on the kind cluster.

kind load docker-image argocd-cue:v1 --name argocd-cue

Deploy ArgoCD.

kubectl create ns argocd
kubectl apply -f install.yaml -n argocd

Login to Argo CD

kubectl port-forward -n argocd svc/argocd-server 8080:443
kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2
<ADMIN PASSWORD>
argocd login --insecure localhost:8080
Username: admin
Password: <ADMIN PASSWORD>

Create an application

argocd app create test \
    --repo https://github.com/zoetrope/argocd-cue.git \
    --path sample \
    --dest-server https://kubernetes.default.svc \
    --dest-namespace default \
    --config-management-plugin cue

Sync

argocd app sync test

About

License:MIT License


Languages

Language:Dockerfile 100.0%