高哲技术博客 高哲技术博客
首页
编程
爬虫
运维
硬件
收藏
归档
关于

嘉美伯爵

前途光明,无需畏惧
首页
编程
爬虫
运维
硬件
收藏
归档
关于
  • 方案

  • 数据库

  • 虚拟化

  • 自动化部署

    • CI

    • CD

      • 什么是持续交付
      • 如何使用argocd进行持续交付(CD)
        • 部署
        • 查看密码
        • 操作
        • k8s配置
        • 客户端
        • 界面
    • k8s

    • 构建

  • 中间件

  • 可观测

  • 操作系统

  • 运维
  • 自动化部署
  • CD
fovegage
2023-06-13
目录

如何使用argocd进行持续交付(CD)

# 部署

# https://www.modb.pro/db/216294
# 创建命名空间
kubectl create namespace argocd 
# 部署 argo cd
wget https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl apply -n argocd -f install.yaml
1
2
3
4
5
6

# 查看密码

kubectl get secret -n argocd argocd-initial-admin-secret -o yaml
echo xxxxxxxxxxQ3Jaag== | base64 -d
1
2

# 操作

# 注意下面的操作是必须的
argocd repo add git@github.com:PanGuData/ProxyHub.git --ssh-private-key-path ~/.ssh/id_rsa  

argocd login ip:port  
argocd repo add git@github.com:PanGuData/ProxyHub.git --ssh-private-key-path ~/.ssh/id_rsa  
argocd app create railway-proxy --repo git@github.com:PanGuData/ProxyHub.git --path deploy/railway --revision HEAD --dest-server https://kubernetes.default.svc --dest-namespace proxy --project crawler --upsert --grpc-web  
argocd app sync railway-proxy --timeout 60 --grpc-web  
argocd app wait railway-proxy --timeout 60 --grpc-web  
  
argocd app create http-gateway --repo git@github.com:PanGuData/ProxyHub.git --path deploy/gateway --revision HEAD --dest-server https://kubernetes.default.svc --dest-namespace proxy --project crawler --upsert --grpc-web  
argocd app sync http-gateway --timeout 60 --grpc-web  
argocd app wait http-gateway --timeout 60 --grpc-web  
  
argocd app create dial-proxy --repo git@github.com:PanGuData/ProxyHub.git --path deploy/dail --revision HEAD --dest-server https://kubernetes.default.svc --dest-namespace proxy --project crawler --upsert --grpc-web  
argocd app sync dial-proxy --timeout 60 --grpc-web  
argocd app wait dial-proxy --timeout 60 --grpc-web
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# k8s配置

# 下面的这一步也是必须的  k8s 仓库权限是针对namespace的 不是全局的 应注意
kubectl create secret docker-registry codeup-registry --docker-server=registry.cn-shanghai.aliyuncs.com --docker-username=sdgaozhe@qq.com --docker-password=xxxx --docker-email=sdgaozhe@qq.com -n proxy  
kubectl config get-contexts  
kubectl create ns proxy  
  
# 目录下部署:https://blog.csdn.net/xixihahalelehehe/article/details/107925618  
kustomize build proxy |\  
kubectl apply -f - -n proxy  
  
kustomize build pigway |\  
kubectl apply -f - -n proxy
1
2
3
4
5
6
7
8
9
10
11

# 客户端

brew install argocd
brew cleanup argocd
# 本地登录
echo y | argocd login ip:30989 --password 'xxxxx' --username admin
1
2
3
4

# 界面

#argocd
上次更新: 2023-07-31 10:01:32
什么是持续交付
KubeSphere安装教程(ubuntu)

← 什么是持续交付 KubeSphere安装教程(ubuntu)→

最近更新
01
token embed和postion embed
06-10
02
k8s pod日志排查问题
10-24
03
golang内部私服建设方案
10-21
更多文章>
Theme by Vdoing | Copyright © 2018-2025 嘉美伯爵 | 鲁ICP备20001560号-4
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式