代码拉取完成,页面将自动刷新
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 ).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。