Repository navigation
Expand file tree
/
Copy pathapplication.yaml
More file actions
46 lines (37 loc) · 2.17 KB
/
Copy pathapplication.yaml
File metadata and controls
46 lines (37 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: lolkek338
namespace: argocd
annotations:
# argocd-image-updater.argoproj.io/image-list: nginx-deployment=gcr.io/dynamic-circle-431306-h3/custom-nginx-deployment-image #Write repository name
# argocd-image-updater.argoproj.io/nginx-deployment.pull-secret: pullsecret:argocd/gcr-json-key # You can remove this annotation if you have already configured the gcr secret and are using the same secret to retrieve all GCR images in your deployments.
# argocd-image-updater.argoproj.io/nginx-deployment.update-strategy: digest #There are several ways to update the image
# argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/git-creds # We don't need the secret as mentioned in argocd doc because we already set it up via argocd console if you're using the same git repo.
# argocd-image-updater.argoproj.io/git-branch: main
# argocd-image-updater.argoproj.io/nginx-deployment.force-update: "true"
argocd-image-updater.argoproj.io/image-list: nginx-deployment3333=gcr.io/dynamic-circle-431306-h3/custom-nginx-helm-deployment-image
argocd-image-updater.argoproj.io/nginx-deployment3333.pull-secret: secret:argocd/gcr-json-key
argocd-image-updater.argoproj.io/nginx-deployment3333.update-strategy: semver
argocd-image-updater.argoproj.io/write-back-method: git
argocd-image-updater.argoproj.io/write-back-target-branch: main
argocd-image-updater.argoproj.io/nginx-deployment3333.force-update: "true"
finalizers:
- resources-finalizer.argocd.argoproj.io
labels:
name: nginx-deployment3333
spec:
project: default
source:
repoURL: git@github.com:kovalka2017/first_chart.git
targetRevision: HEAD
path: . # path of the kubernetes application code means where you stored deployment.yaml, service.yaml etc
destination:
server: https://kubernetes.default.svc # if you want to deploy application in the same cluster where argocd server is running if thats diffrent then use cluster IP address.
namespace: test
syncPolicy:
# syncOptions:
# - CreateNamespace=true
automated:
selfHeal: true
prune: true