Add sync wave

This commit is contained in:
Ruben Hensen
2025-03-26 12:36:03 +01:00
parent 519a1580c5
commit 59441d8286
9 changed files with 36 additions and 32 deletions
+21 -21
View File
@@ -1,21 +1,21 @@
# apiVersion: argoproj.io/v1alpha1
# kind: Application
# metadata:
# name: ghost-blog
# namespace: argocd
# finalizers:
# - resources-finalizer.argocd.argoproj.io
# spec:
# project: default
# source:
# repoURL: https://github.com/rubenhensen/k8scd.git
# targetRevision: HEAD
# path: ghost-blog
# destination:
# server: https://kubernetes.default.svc
# namespace: ghost-blog
# syncPolicy:
# syncOptions:
# - CreateNamespace=true
# automated:
# selfHeal: true
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ghost-blog
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/rubenhensen/k8scd.git
targetRevision: HEAD
path: ghost-blog
destination:
server: https://kubernetes.default.svc
namespace: ghost-blog
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
+2
View File
@@ -3,6 +3,8 @@ kind: ExternalSecret
metadata:
name: ghost-config-prod
namespace: ghost-blog
annotations:
argocd.argoproj.io/sync-wave: "4"
spec:
refreshInterval: "15m"
secretStoreRef:
+2
View File
@@ -10,6 +10,8 @@ metadata:
app.kubernetes.io/version: '5.92'
app.kubernetes.io/component: ghost
app.kubernetes.io/part-of: ghost-blog
annotations:
argocd.argoproj.io/sync-wave: "6"
spec:
replicas: 1
selector:
+1
View File
@@ -13,6 +13,7 @@ metadata:
annotations:
cert-manager.io/cluster-issuer: prod-cluster-issuer
nginx.ingress.kubernetes.io/proxy-body-size: 1G
argocd.argoproj.io/sync-wave: "7"
spec:
ingressClassName: nginx
tls:
+2
View File
@@ -3,6 +3,8 @@ kind: ExternalSecret
metadata:
name: ghost-mysql-env
namespace: ghost-blog
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
refreshInterval: "15m"
secretStoreRef:
+2
View File
@@ -10,6 +10,8 @@ metadata:
app.kubernetes.io/version: '5.92'
app.kubernetes.io/component: database
app.kubernetes.io/part-of: ghost-blog
annotations:
argocd.argoproj.io/sync-wave: "5"
spec:
serviceName: ghost-mysql-service
replicas: 1
-11
View File
@@ -1,11 +0,0 @@
# apiVersion: v1
# kind: Namespace
# metadata:
# name: ghost-blog
# labels:
# app: ghost-blog
# app.kubernetes.io/name: ghost-blog
# app.kubernetes.io/instance: ghost-blog
# app.kubernetes.io/version: '5.92'
# app.kubernetes.io/component: namespace
# app.kubernetes.io/part-of: ghost-blog
+3
View File
@@ -10,6 +10,8 @@ metadata:
app.kubernetes.io/version: '5.92'
app.kubernetes.io/component: storage
app.kubernetes.io/part-of: ghost-blog
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
storageClassName: "longhorn"
volumeMode: Filesystem
@@ -31,6 +33,7 @@ metadata:
app.kubernetes.io/version: '5.92'
app.kubernetes.io/component: database-storage
app.kubernetes.io/part-of: ghost-blog
argocd.argoproj.io/sync-wave: "2"
spec:
storageClassName: "longhorn"
volumeMode: Filesystem
+3
View File
@@ -10,6 +10,8 @@ metadata:
app.kubernetes.io/version: '5.92'
app.kubernetes.io/component: service-frontend
app.kubernetes.io/part-of: ghost-blog
annotations:
argocd.argoproj.io/sync-wave: "3"
spec:
ports:
- port: 2368
@@ -33,6 +35,7 @@ metadata:
app.kubernetes.io/version: '5.92'
app.kubernetes.io/component: service-database
app.kubernetes.io/part-of: ghost-blog
argocd.argoproj.io/sync-wave: "3"
spec:
ports:
- port: 3306