argocd
2024-10-08 02:18:17
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
最新文章
- Eplan简单教程
- SQL 行列倒置
- Android 如何制造低内存环境
- mysql PDO的使用
- android_demo01
- 【转】一道SQL SERVER DateTime的试题
- javascript arguments
- ps怎么给文字描边
- 用C# sqlserver实现增删改查
- 复杂事件处理引擎—Esper工作原理
- How to Iterate Over a Map in Java?(如何遍历Map)
- 修改Chrome启动参数解决跨域问题
- moodleform -转载于blfshiye
- “ORA-06550: 第 1 行, 第 7 列”解决方法
- 总结函数open与fopen的区别
- C# 例子1
- js将对象数组按照自定义规则排序
- day 43 mysql 学习 以及pymysql 学习
- 关于lockkeyword
- mapreduce of hadoop
热门文章
- libco 源码剖析(1): 协程上下文切换之 32 位
- c语言以及高级语言中的float到底是什么以及IEEE754
- win11 文件夹内关闭显示更多
- 数据结构和算法day1(Java)
- 从安装开发环境到第一个“hello world”
- ding抓回放
- Golang make和new的区别及实现原理详解
- Linux操作命令(五)1.find命令 2.xargs命令
- php 安装 自带扩展
- RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!