安装argocd v2.14.17

安装argocd v2.14.17

前言

ArgoCD是一个基于Kubernetes的GitOps持续交付工具,应用的部署和更新都可以在Git仓库上同步实现,并自带一个可视化界面。本次以2.14.17版本为例,k8s版本是1.28.15

Argocd安装

YAML部署

# yaml版本文件:https://github.com/argoproj/argo-cd/blob/v2.14.17/manifests/install.yaml
# 根据此k8s版本与argocd版本,选择对应的yaml文件:https://argo-cd.readthedocs.io/en/stable/operator-manual/installation/
kubectl create namespace argocd

kubectl apply -n argocd -f argocd-install.yaml

# 获取初始密码,管理员为admin
kubectl get secrets argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 -d
# aE896VCD0NUaPk19

如需访问可修改install.yaml为NodePort,或者直接port-forward代理

image-20250912155140921

HELM方式部署

vaules.yaml

## Globally shared configuration
global:
  domain: argocd.guoliangjun.com
  hostAliases:
    - ip: 192.168.111.156
      hostnames:
        - reg-hub.guoliangjun.com
configs:
  params:
    server.insecure: true

controller:
  replicas: 2
  resources:
    limits:
      cpu: 1000m
      memory: 1.5Gi
    requests:
      cpu: 500m
      memory: 700Mi
## Dex
# Dex 认证暂时关闭
dex:
  enabled: false

redis-ha:
  enabled: true

## Server
server:
  autoscaling:
    enabled: true
    minReplicas: 2
    targetCPUUtilizationPercentage: 70
    targetMemoryUtilizationPercentage: 70
  resources:
    limits:
      cpu: 200m
      memory: 400Mi
    requests:
      cpu: 100m
      memory: 250Mi
  ingress:
    enabled: true
    ingressClassName: nginx
    annotations:
      nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
      nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
## Repo Server
repoServer:
  autoscaling:
    enabled: true
    minReplicas: 2
    targetCPUUtilizationPercentage: 70
    targetMemoryUtilizationPercentage: 70
  resources:
    limits:
      cpu: 500m
      memory: 1000Mi
    requests:
      cpu: 80m
      memory: 200Mi
## ApplicationSet controller
applicationSet:
  replicas: 1
  resources:
    limits:
      cpu: 300m
      memory: 500Mi
    requests:
      cpu: 100m
      memory: 200Mi

## Notifications controller
# 通知控制器暂时关闭
notifications:
  enabled: false

helm repo add argo https://argoproj.github.io/argo-helm
helm repo list
helm search repo argo

helm search repo argo/argo-cd --versions  |grep 2.14
# argo/argo-cd    7.9.1           v2.14.11        A Helm chart for Argo CD, a declarative, GitOps...

# 创建命名空间
#kubectl create namespace devops

# 在线安装(与离线安装任选一个即可)
# helm install argocd argo/argo-cd --version 7.9.1  -n devops
# 离线安装
helm install argocd ./argo-cd-7.9.1.tgz -n devops -f values.yaml

# 获取admin 初始化密码
kubectl get secrets argocd-initial-admin-secret -n devops -o jsonpath="{.data.password}" | base64 -d
# TyaRW6q6OWnr1Xx7

部署完查看状态

image-20250912155624586

访问Argocd

image-20250912155647970

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇