1 Star 1 Fork 0

evescn/argocd-example-apps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
demo-cluster.yaml 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
evescn 提交于 2023-08-16 10:38 . add
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: multi-cluster-application-set
namespace: argocd
spec:
generators:
- clusters: {} #all clusters
# selector:
# matchLabels:
# test: "true"
# values:
# name: "test"
template:
metadata:
name: '{{name}}-app' ## name == clusterName (cluster1, cluster2)
spec:
project: default
source:
path: guestbook
repoURL: https://gitee.com/gmkk/argocd-example-apps.git
targetRevision: main
destination:
server: '{{server}}' # cluster URL
namespace: '{{name}}-demoapp'
# Sync policy
syncPolicy:
syncOptions:
- CreateNamespace=true
# automated: # automated sync by default retries failed attempts 5 times with following delays between attempts ( 5s, 10s, 20s, 40s, 80s ); retry controlled using `retry` field.
# prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ).
# selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ).
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gmkk/argocd-example-apps.git
git@gitee.com:gmkk/argocd-example-apps.git
gmkk
argocd-example-apps
argocd-example-apps
main

搜索帮助

Cb406eda 1850385 E526c682 1850385