首页 > 其他分享 >argo-cd

argo-cd

时间:2022-11-08 23:59:50浏览次数:68  
标签:kubectl ingress name argocd server io argo cd

argocd

Argo CD - Declarative GitOps CD for Kubernetes (argo-cd.readthedocs.io)

What Is Argo CD

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes.

Why Argo CD?

Application definitions, configurations, and environments should be declarative and version controlled. Application deployment and lifecycle management should be automated, auditable, and easy to understand.

Getting Started

Non-HA:

Kubernetes version: v1.21.14

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v2.4.16/manifests/install.yaml

暴露访问方式一:ingress

# ingress-argocd.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: argocd-server-ingress
  namespace: argocd
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    kubernetes.io/ingress.class: nginx
    kubernetes.io/tls-acme: "true"
    nginx.ingress.kubernetes.io/ssl-passthrough: "true"
    # If you encounter a redirect loop or are getting a 307 response code
    # then you need to force the nginx ingress to connect to the backend using HTTPS.
    #
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
  rules:
  - host: argocd.sdaas.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: argocd-server
            port:
              name: https
  tls:
  - hosts:
    - argocd.sdaas.com
    secretName: argocd-secret # do not change, this is provided by Argo CD

暴露访问方式二:NodePort

kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}'

kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "ClusterIP"}}'

暴露访问方式三: port-forward

The API server can then be accessed using https://localhost:8080

kubectl port-forward svc/argocd-server -n argocd 8080:443

访问argocd ui

https://argocd.sdaas.com:30227

查看admin密码

 kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

guestbook

需要调试:

apiVersion: networking.k8s.io/v1
kind: Ingress

metadata:
  name: guestbook-server-ingress
  namespace: guestbook
spec:
  rules:
    - host: guestbook.sdaas.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: kustomize-guestbook-ui
                port:
                  name: http



标签:kubectl,ingress,name,argocd,server,io,argo,cd
From: https://www.cnblogs.com/wl30564/p/16871709.html

相关文章

  • argo-workflow
    InstallArgoWorkflowsReleasev3.4.3·argoproj/argo-workflows(github.com)CLI#Downloadthebinarycurl-sLOhttps://github.com/argoproj/argo-workflows/re......
  • 拓端数据tecdat|(转)豆瓣高分影视数据洞察:热门影视十年演变
    随着暑期档热映,最新电影成为广大影迷的热门话题,同时也是大IP能有出彩表现的最佳竞技场。本文对近十年来豆瓣热门影视作品数据进行盘点,一起来看看影视数据......
  • 拓端数据tecdat|数据解码互联网行业职位
    互联网无疑是当今最热门的行业。这个行业高薪资的背后也是大量的加班和激烈的竞争。择业不能只看薪水,适合自己才是最重要的。互联网公司都需要哪些人才?哪......
  • docker 快速部署 elasticseach kafa mysql redis pgsql etcd
    version:"3"services:pgsql:container_name:pgsqlimage:postgres:latestprivileged:trueenvironment:POSTGRES_PASSWORD:password......
  • etcd的db文件过大
    背景:我们公司线上环境打算采用apisix来做k8s的路由,apisix集群因为用到etcd,整个配置搭建了一个月了,没有引流量,打算观察一段时间,今天发现了个问题,我们的zabbix监控报警一台et......
  • ABC 276 ABCDE(dfs)
    A-Rightmost#include<bits/stdc++.h>usingnamespacestd;typedeflonglongLL;typedefpair<LL,LL>PII;constLLMAXN=1e18;constLLINF=1e9;constLLN=5000......
  • 基于EDAS OPENAPI构建低成本云原生CICD
    在企业级场景中,EDAS会被集成到客户侧的研发测试的IT流程中形成更加完整的企业IT云化整体解决方案,如对接到客户的CMP多云管理平台,被串联到客户的CICD流水线中,和客户的统一监......
  • 点云_矩阵旋转后平移和平移后旋转_open3d读写PCD
    矩阵运算变换矩阵是先旋转再平移P=R*p+t1先平移再旋转的话P=R(p+t2)=R*p+R*t2其中平移矩阵之间的关系是t1=R*t2示例代码#-*-coding:ut......
  • LiveCD模式使用
    注:一定不可以用定制的母盘镜像,有格式化硬盘的风险,应该使用纯净版镜像操作,切记!!!一、进入livecd系统用uos系统(最好高于sp1版本)制作启动盘(U盘或者光盘),插在机器上,开机在BIOS或......
  • 融云 CDN 播放器 2.0 版本正式上线
    近期,融云自研CDN播放插件2.0版本正式上线。在原有版本支持融云内置CDN直播流播放的基础上,开放了相关API,满足开发者的多种业务需求。关注【融云全球互联网通信云】了......