澤陽(yáng)ArgoCD持續(xù)部署實(shí)踐
在 K8S 中部署 ArgoCD
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
使用 operator 的方式部署 ArgoCD
安裝 OLM 組件
[root@localhost ~]# curl -L https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.21.2/install.sh -o install.sh[root@localhost ~]# chmod +x install.sh[root@localhost ~]# ./install.sh v0.21.2# 驗(yàn)證安裝結(jié)果,安裝成功后,會(huì)創(chuàng)建olm和operators兩個(gè)命名空間[root@localhost ~]# kubectl get nsNAME ? ? ? ? ? ? ?STATUS ? AGEdefault ? ? ? ? ? Active ? 49d
jenkins ? ? ? ? ? Active ? 49d
kube-node-lease ? Active ? 49d
kube-public ? ? ? Active ? 49d
kube-system ? ? ? Active ? 49d
kubekey-system ? ?Active ? 49d
olm ? ? ? ? ? ? ? Active ? 6h16m
operators ? ? ? ? Active ? 6h16m# 驗(yàn)證OLM命名空間中Pods[root@localhost ~]#kubectl get pods -n olmNAME ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?READY ? STATUS ? ?RESTARTS ? AGEolm-operator-5b58594fc8-bzpq2 ? ? ? 1/1 ? ? Running ? 0 ? ? ? ? ?2m10s
catalog-operator-6d578c5764-l5f5t ? 1/1 ? ? Running ? 0 ? ? ? ? ?2m10s
packageserver-7495fbf449-w4w6h ? ? ?1/1 ? ? Running ? 0 ? ? ? ? ?80s
packageserver-7495fbf449-9jmpj ? ? ?1/1 ? ? Running ? 0 ? ? ? ? ?80s
operatorhubio-catalog-pnsc7 ? ? ? ? 1/1 ? ? Running ? 0 ? ? ? ? ?81s