chore: bootstrap platform GitOps state

This commit is contained in:
dahyeon committed 2026-06-01 00:32:02 +09:00
commit a833be1d9e
40 files changed
+733

No files matched your search

@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cert-manager-resources
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
project: platform
source:
repoURL: https://git.dahyeon.us/dahyeon/platform-state.git
targetRevision: main
path: platform/cert-manager/resources
destination:
server: https://kubernetes.default.svc
namespace: cert-manager
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
+21
View File
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cluster-main
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-10"
spec:
project: platform
source:
repoURL: https://git.dahyeon.us/dahyeon/platform-state.git
targetRevision: main
path: clusters/main
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: infisical-resources
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-3"
spec:
project: platform
source:
repoURL: https://git.dahyeon.us/dahyeon/platform-state.git
targetRevision: main
path: platform/infisical-operator/resources
destination:
server: https://kubernetes.default.svc
namespace: infisical
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: platform-ingresses
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "4"
spec:
project: platform
source:
repoURL: https://git.dahyeon.us/dahyeon/platform-state.git
targetRevision: main
path: platform/argocd/resources
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
+22
View File
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: tekton-config
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "4"
spec:
project: platform
source:
repoURL: https://git.dahyeon.us/dahyeon/platform-state.git
targetRevision: main
path: platform/tekton/config
destination:
server: https://kubernetes.default.svc
namespace: tekton-pipelines
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
@@ -0,0 +1,55 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: platform-core-addons
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-5"
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- list:
elements:
- name: infisical-operator
namespace: infisical
chartRepo: https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/
chart: secrets-operator
version: 0.10.32
valuesPath: platform/infisical-operator/values/main.yaml
- name: cert-manager
namespace: cert-manager
chartRepo: https://charts.jetstack.io
chart: cert-manager
version: v1.20.2
valuesPath: platform/cert-manager/values/main.yaml
- name: haproxy-ingress
namespace: haproxy-controller
chartRepo: https://haproxytech.github.io/helm-charts
chart: kubernetes-ingress
version: 1.52.0
valuesPath: platform/haproxy-ingress/values/main.yaml
template:
metadata:
name: "{{.name}}"
spec:
project: platform
sources:
- repoURL: "{{.chartRepo}}"
chart: "{{.chart}}"
targetRevision: "{{.version}}"
helm:
valueFiles:
- "$values/{{.valuesPath}}"
- repoURL: https://git.dahyeon.us/dahyeon/platform-state.git
targetRevision: main
ref: values
destination:
server: https://kubernetes.default.svc
namespace: "{{.namespace}}"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
@@ -0,0 +1,34 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: platform-operators
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "3"
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- list:
elements:
- name: tekton-operator
namespace: tekton-operator
path: platform/tekton/operator
template:
metadata:
name: "{{.name}}"
spec:
project: platform
source:
repoURL: https://git.dahyeon.us/dahyeon/platform-state.git
targetRevision: main
path: "{{.path}}"
destination:
server: https://kubernetes.default.svc
namespace: "{{.namespace}}"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
@@ -0,0 +1,43 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: platform-secret-backed-addons
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- list:
elements:
- name: monitoring
namespace: monitoring
chartRepo: https://prometheus-community.github.io/helm-charts
chart: kube-prometheus-stack
version: 85.2.0
valuesPath: platform/monitoring/values/main.yaml
template:
metadata:
name: "{{.name}}"
spec:
project: platform
sources:
- repoURL: "{{.chartRepo}}"
chart: "{{.chart}}"
targetRevision: "{{.version}}"
helm:
valueFiles:
- "$values/{{.valuesPath}}"
- repoURL: https://git.dahyeon.us/dahyeon/platform-state.git
targetRevision: main
ref: values
destination:
server: https://kubernetes.default.svc
namespace: "{{.namespace}}"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
+31
View File
@@ -0,0 +1,31 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: services-prod
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "20"
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: https://git.dahyeon.us/dahyeon/service-state.git
revision: main
directories:
- path: apps/*/overlays/prod
template:
metadata:
name: "{{index .path.segments 1}}-prod"
spec:
project: services-prod
source:
repoURL: https://git.dahyeon.us/dahyeon/service-state.git
targetRevision: main
path: "{{.path.path}}"
destination:
server: https://kubernetes.default.svc
namespace: "{{index .path.segments 1}}-prod"
syncPolicy:
syncOptions:
- CreateNamespace=true
@@ -0,0 +1,34 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: services-staging
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "10"
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- git:
repoURL: https://git.dahyeon.us/dahyeon/service-state.git
revision: main
directories:
- path: apps/*/overlays/staging
template:
metadata:
name: "{{index .path.segments 1}}-staging"
spec:
project: services-staging
source:
repoURL: https://git.dahyeon.us/dahyeon/service-state.git
targetRevision: main
path: "{{.path.path}}"
destination:
server: https://kubernetes.default.svc
namespace: "{{index .path.segments 1}}-staging"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
+21
View File
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: platform
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-20"
spec:
description: Platform infrastructure for the main cluster
sourceRepos:
- https://git.dahyeon.us/dahyeon/platform-state.git
- "*"
destinations:
- server: https://kubernetes.default.svc
namespace: "*"
clusterResourceWhitelist:
- group: "*"
kind: "*"
namespaceResourceWhitelist:
- group: "*"
kind: "*"
+17
View File
@@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: services-prod
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-20"
spec:
description: Production service workloads from service-state
sourceRepos:
- https://git.dahyeon.us/dahyeon/service-state.git
destinations:
- server: https://kubernetes.default.svc
namespace: "*-prod"
namespaceResourceWhitelist:
- group: "*"
kind: "*"
+17
View File
@@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: services-staging
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-20"
spec:
description: Staging service workloads from service-state
sourceRepos:
- https://git.dahyeon.us/dahyeon/service-state.git
destinations:
- server: https://kubernetes.default.svc
namespace: "*-staging"
namespaceResourceWhitelist:
- group: "*"
kind: "*"