helm安装argocd
下载chart
helm repo add argo https://argoproj.github.io/argo-helm
helm pull argo/argo-cd编写values.yaml
redis-ha:
enabled: true
controller:
enableStatefulSet: true
server:
replicas: 2
env:
- name: ARGOCD_API_SERVER_REPLICAS
value: '2'
ingress:
enabled: false
https: false
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
ingressClassName: nginx
hosts:
- argocd-server.example.com
tls:
- hosts:
- argocd-server.example.com
secretName: example-com-tls
certificate:
enabled: false
repoServer:
replicas: 2
config:
# Argo CD's externally facing base URL (optional). Required when configuring SSO
url: https://argocd-server.example.com
# Argo CD instance label key
application.instanceLabelKey: argocd.argoproj.io/instance
# keycloak sso
oidc.config: |
name: Keycloak
issuer: https://sso.example.com/auth/realms/oc
clientID: argocd
clientSecret: $oidc.keycloak.clientSecret
requestedScopes: ["openid", "profile", "email", "groups"]执行安装
安装argocd cli
配置keycloak sso
keycloak 添加client ,配置ArgoCD用户组
编辑argocd-cm
配置ArgoCD权限策略
添加集群
使用argocd cli 登录 argocd
添加rancher 集群
创建cicd用户并创建 apikey,指定集群范围
编写k8s-test-argocd-secret,apikey 显示值填写到下面yaml 内容中
使用argocd cli 查看clusters 列表
添加 gitlab webhook
添加webhook secret
编辑 argocd-secret
helm chart 项目添加webhook
参考
Last updated