泽阳ArgoCD持续部署实践
在 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# 验证安装结果,安装成功后,会创建olm和operators两个命名空间[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# 验证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