tuo / gitops_demo

spike with k3d + argocd + devspace ?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

K3D

Just start with Docker Desktop:

k3d cluster create --config democluster.yaml


kubectl cluster-info
k3d_demo ➤ kubectl cluster-info
Kubernetes control plane is running at https://0.0.0.0:6443
CoreDNS is running at https://0.0.0.0:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Metrics-server is running at https://0.0.0.0:6443/api/v1/namespaces/kube-system/services/https:metrics-server:https/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

k get nodes

kubectl config get-contexts

k3d cluster delete democluster

k3d cluster list

k3d cluster start democluster

Argo

argocd application yaml: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/application.yaml https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/

k apply -f argocd_application.yaml

Argo Update

k port-forward svc/create-react-demo -n create-react-demo   8081:80
http://localhost:8081/
show version 1.1

then update deployment.yaml with new image tag v1.2

http://localhost:8081/
show version 1.2

step1

step2

step3

About

spike with k3d + argocd + devspace ?


Languages

Language:JavaScript 37.0%Language:HTML 33.1%Language:CSS 17.9%Language:Dockerfile 12.1%