首页 > 其他分享 >ArgoCD Application声明式配置

ArgoCD Application声明式配置

时间:2022-12-21 22:00:30浏览次数:46  
标签:false 声明 ArgoCD Application argoproj https namespace true guestbook

创建一个应用

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: guestbook
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/argoproj/argocd-example-apps.git
targetRevision: HEAD
path: guestbook
destination:
server: https://kubernetes.default.svc
namespace: guestbook
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- Validate=false
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m

ArgoCD Application声明式配置_git

标签:false,声明,ArgoCD,Application,argoproj,https,namespace,true,guestbook
From: https://blog.51cto.com/yht1990/5960160

相关文章