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

最新文章

  1. Eplan简单教程
  2. SQL 行列倒置
  3. Android 如何制造低内存环境
  4. mysql PDO的使用
  5. android_demo01
  6. 【转】一道SQL SERVER DateTime的试题
  7. javascript arguments
  8. ps怎么给文字描边
  9. 用C# sqlserver实现增删改查
  10. 复杂事件处理引擎—Esper工作原理
  11. How to Iterate Over a Map in Java?(如何遍历Map)
  12. 修改Chrome启动参数解决跨域问题
  13. moodleform -转载于blfshiye
  14. “ORA-06550: 第 1 行, 第 7 列”解决方法
  15. 总结函数open与fopen的区别
  16. C# 例子1
  17. js将对象数组按照自定义规则排序
  18. day 43 mysql 学习 以及pymysql 学习
  19. 关于lockkeyword
  20. mapreduce of hadoop

热门文章

  1. libco 源码剖析(1): 协程上下文切换之 32 位
  2. c语言以及高级语言中的float到底是什么以及IEEE754
  3. win11 文件夹内关闭显示更多
  4. 数据结构和算法day1(Java)
  5. 从安装开发环境到第一个“hello world”
  6. ding抓回放
  7. Golang make和new的区别及实现原理详解
  8. Linux操作命令(五)1.find命令 2.xargs命令
  9. php 安装 自带扩展
  10. RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!