首页 > 其他分享 >argocd快速安装

argocd快速安装

时间:2022-09-29 11:35:56浏览次数:51  
标签:ingress 8080 快速 -- com argocd server 安装

argocd快速安装

基本概要

  • 下载安装文件
  • 简单修改配置
  • 安装服务
  • ingress暴露服务
  • 获取登陆密码
  • 安装Cli工具

1.0 下载安装文件

# 下载文件
wget https://raw.githubusercontent.com/argoproj/argo-cd/v2.4.12/manifests/install.yaml

# 下载最新版
wget  https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

2.0 修改配置

我们不需要定义多个 IngressRoute 来暴露 HTTP 和 gRPC 服务,然后应在禁用 TLS 的情况下运行 API 服务,编辑 argocd-server Deployment 以将 --insecure 标志添加到 argocd-server 命令中

注意: 修改10185行后添加

spec: 
  template: 
    spec: 
      containers: 
      - name: argocd-server 
        command: 
        - argocd-server
        - --insecure  # 需要禁用 tls,否则会 `redirected you too many times` 

3.0 安装服务

# 进去你下载好的文件的目录
kubectl apply -n argocd -f install.yaml

4.0 ingress暴漏服务

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: argocd-server-http-ingress
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: argocd-server
            port:
              name: http
    host: argocd.example.com
  tls:
  - hosts:
    - argocd.example.com
    secretName: argocd-secret # do not change, this is provided by Argo CD

4.1 通过本地端口转发来访问

注意: 这里上面的ingress暴漏服务二选一

kubectl port-forward svc/argocd-server -n argocd 8080:443
Forwarding from 127.0.0.1:8080 -> 8080
Forwarding from [::1]:8080 -> 8080

5.0 获取登陆密码

# 获取密码
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d && echo 

# 默认账号名为
user: admin
passwd: 上面命令的结果

6.0 下载CLI客户端

# 下载二进制文件
curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/download/v2.4.12/argocd-linux-amd6

# 登录服务[argocd login ArgoCD_Address:Port]
argocd login argocd.example.com

# 修改admin密码
argocd account update-password --account admin --current-password xxxx --new-password xxxx

标签:ingress,8080,快速,--,com,argocd,server,安装
From: https://www.cnblogs.com/huyiCloud/p/16740866.html

相关文章

  • VS2022/VS2019安装WinForm打包程序,Microsoft Visual Studio Installer Projects 2022
    问题:使用VS2022创建WinForm程序,完了需要打包成安装程序,这时候我去下载MicrosoftVisualStudioInstallerProjects2022插件,速度超级慢,恶心人。总算是下载下来了,我存到我......
  • Centos8通过dnf安装certbot,设置nginx自启动
    如果centos8默认软件包里没有certbot,就需要更新软件包:dnfinstallepel-releasednfupgrade一般更新包后就可以安装了dnfinstallcertbotnginx安装后设置自启动:......
  • Dubbo快速入门教程
    简单介绍官方文档:https://dubbo.apache.org/zh/docs/目前Dubbo最新的是Dubbo3。本文使用的是2.7.13。Dubbo3格式的Provider地址不能被Dubbo2的Consumer识别到,反之......
  • CentOS7下安装MySQL5.7
    1、下载MySQL,地址:https://dev.mysql.com/downloads/mysql/5.7.html2、Linux服务器根目录下新建两个文件夹:1)、tool文件夹,存放软件安装包2)、xz文件夹,存放安装后的......
  • 快速提示:如何加速 Django 应用程序
    快速提示:如何加速Django应用程序提高Django应用程序性能的简短指南Photoby费萨尔on不飞溅避免使用Django模型序列化器Djangorest框架允许开发人员快速......
  • 准备工作(二)—— 安装图形化软件
    可能就会有人在问:安装MySQL为什么还要图形化软件?实际上MySQL有两种方式来执行请求,一是通过手打命令的方式,二是通过图形化界面来进行操作,后者本质上也是通过输入命令来执行......
  • Windows 下 OpenSSH 安装使用
    OpenSSH是安全Shell(SSH)工具的开放源代码版本,Linux及其他非Windows系统的管理员使用此类工具跨平台管理远程系统。OpenSSH在2018年秋季已添加至Windows,并包含......
  • powershell 检查电脑指定软件安装情况
    `#1获取当前日期$collect_date=Get-Date-Format"yyyy-MM-ddHH_mm"2获取计算机主机名$ComputerName=hostname3定义需要查询的软件名称$AppDisplayName="Anyshar......
  • python 如何快速升级pip
    1.首先通过快捷键“win+R”打开运行窗口。输入cmd。点击“确定”,以管理员身份打开命令行界面2.在命令行界面输入“piplist”按下Enter3.直接拉到最下面有两行英文大......
  • IMC服务安装过程提示:尝试创建数据库失败请确认是否存在文件夹'C:\Program Files\imc
    问题如图:登录到iMC服务器桌面,在服务器管理器中点击配置-服务,找到MSSQLSERVER,右键属性,在登录选项卡中选择登录身份为“本地系统账号”,如下图所示: 重新启动服务器,重......