欢迎光临散文网 会员登陆 & 注册

泽阳ArgoCD持续部署实践

2023-08-16 22:34 作者:bili_34604920956  | 我要投稿

在 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


泽阳ArgoCD持续部署实践的评论 (共 条)

分享到微博请遵守国家法律