diff --git a/clusters/cl01tl/manifests/stack/Application-cilium.yaml b/clusters/cl01tl/manifests/stack/Application-cilium.yaml new file mode 100644 index 000000000..cd7ea0f2a --- /dev/null +++ b/clusters/cl01tl/manifests/stack/Application-cilium.yaml @@ -0,0 +1,45 @@ +--- +# Source: stack/templates/application.yaml +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: cilium + namespace: argocd + labels: + app.kubernetes.io/name: cilium + app.kubernetes.io/instance: argocd + app.kubernetes.io/part-of: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure + targetRevision: manifests + path: clusters/cl01tl/manifests/cilium + destination: + name: in-cluster + namespace: kube-system + revisionHistoryLimit: 3 + ignoreDifferences: + - group: monitoring.coreos.com + kind: ServiceMonitor + jqPathExpressions: + - .spec.endpoints[]?.relabelings[]?.action + syncPolicy: + automated: + enabled: false + prune: false + selfHeal: false + retry: + limit: 3 + backoff: + duration: 1m + factor: 2 + maxDuration: 15m + syncOptions: + - CreateNamespace=false + - ApplyOutOfSyncOnly=true + - ServerSideApply=true + - PruneLast=true + - RespectIgnoreDifferences=true diff --git a/clusters/cl01tl/manifests/stack/Application-coredns.yaml b/clusters/cl01tl/manifests/stack/Application-coredns.yaml new file mode 100644 index 000000000..8c2cfd0d4 --- /dev/null +++ b/clusters/cl01tl/manifests/stack/Application-coredns.yaml @@ -0,0 +1,39 @@ +--- +# Source: stack/templates/application.yaml +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: coredns + namespace: argocd + labels: + app.kubernetes.io/name: coredns + app.kubernetes.io/instance: argocd + app.kubernetes.io/part-of: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure + targetRevision: manifests + path: clusters/cl01tl/manifests/coredns + destination: + name: in-cluster + namespace: kube-system + revisionHistoryLimit: 3 + syncPolicy: + automated: + enabled: false + prune: false + selfHeal: false + retry: + limit: 3 + backoff: + duration: 1m + factor: 2 + maxDuration: 15m + syncOptions: + - CreateNamespace=false + - ApplyOutOfSyncOnly=true + - ServerSideApply=true + - PruneLast=true diff --git a/clusters/cl01tl/manifests/stack/Application-metrics-server.yaml b/clusters/cl01tl/manifests/stack/Application-metrics-server.yaml new file mode 100644 index 000000000..ee941f4fe --- /dev/null +++ b/clusters/cl01tl/manifests/stack/Application-metrics-server.yaml @@ -0,0 +1,39 @@ +--- +# Source: stack/templates/application.yaml +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: metrics-server + namespace: argocd + labels: + app.kubernetes.io/name: metrics-server + app.kubernetes.io/instance: argocd + app.kubernetes.io/part-of: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure + targetRevision: manifests + path: clusters/cl01tl/manifests/metrics-server + destination: + name: in-cluster + namespace: kube-system + revisionHistoryLimit: 3 + syncPolicy: + automated: + enabled: false + prune: false + selfHeal: false + retry: + limit: 3 + backoff: + duration: 1m + factor: 2 + maxDuration: 15m + syncOptions: + - CreateNamespace=false + - ApplyOutOfSyncOnly=true + - ServerSideApply=true + - PruneLast=true diff --git a/clusters/cl01tl/manifests/stack/Application-prometheus-operator-crds.yaml b/clusters/cl01tl/manifests/stack/Application-prometheus-operator-crds.yaml new file mode 100644 index 000000000..f046c0963 --- /dev/null +++ b/clusters/cl01tl/manifests/stack/Application-prometheus-operator-crds.yaml @@ -0,0 +1,39 @@ +--- +# Source: stack/templates/application.yaml +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: prometheus-operator-crds + namespace: argocd + labels: + app.kubernetes.io/name: prometheus-operator-crds + app.kubernetes.io/instance: argocd + app.kubernetes.io/part-of: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure + targetRevision: manifests + path: clusters/cl01tl/manifests/prometheus-operator-crds + destination: + name: in-cluster + namespace: kube-system + revisionHistoryLimit: 3 + syncPolicy: + automated: + enabled: false + prune: false + selfHeal: false + retry: + limit: 3 + backoff: + duration: 1m + factor: 2 + maxDuration: 15m + syncOptions: + - CreateNamespace=false + - ApplyOutOfSyncOnly=true + - ServerSideApply=true + - PruneLast=true diff --git a/clusters/cl01tl/manifests/stack/Application-stack-cl01tl.yaml b/clusters/cl01tl/manifests/stack/Application-stack-cl01tl.yaml new file mode 100644 index 000000000..6b5153fe7 --- /dev/null +++ b/clusters/cl01tl/manifests/stack/Application-stack-cl01tl.yaml @@ -0,0 +1,40 @@ +--- +# Source: stack/templates/application.yaml +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: stack-cl01tl + namespace: argocd + labels: + app.kubernetes.io/name: stack-cl01tl + app.kubernetes.io/instance: argocd + app.kubernetes.io/part-of: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure + targetRevision: manifests + path: clusters/cl01tl/manifests/stack + destination: + name: in-cluster + namespace: argocd + revisionHistoryLimit: 3 + syncPolicy: + automated: + enabled: false + prune: false + selfHeal: false + retry: + limit: 3 + backoff: + duration: 1m + factor: 2 + maxDuration: 15m + syncOptions: + - CreateNamespace=false + - ApplyOutOfSyncOnly=true + - ServerSideApply=true + - PruneLast=true + - RespectIgnoreDifferences=true diff --git a/clusters/cl01tl/manifests/stack/ApplicationSet-application-set-cl01tl.yaml b/clusters/cl01tl/manifests/stack/ApplicationSet-application-set-cl01tl.yaml new file mode 100644 index 000000000..7a568265f --- /dev/null +++ b/clusters/cl01tl/manifests/stack/ApplicationSet-application-set-cl01tl.yaml @@ -0,0 +1,88 @@ +--- +# Source: stack/templates/application-set.yaml +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: application-set-cl01tl + namespace: argocd + labels: + app.kubernetes.io/name: application-set-cl01tl + app.kubernetes.io/instance: argocd + app.kubernetes.io/part-of: argocd +spec: + syncPolicy: + applicationsSync: create-update + preserveResourcesOnDeletion: false + generators: + - git: + repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure + revision: manifests + directories: + - path: clusters/cl01tl/manifests/* + - path: clusters/cl01tl/manifests/stack + exclude: true + - path: clusters/cl01tl/manifests/cilium + exclude: true + - path: clusters/cl01tl/manifests/coredns + exclude: true + - path: clusters/cl01tl/manifests/metrics-server + exclude: true + - path: clusters/cl01tl/manifests/prometheus-operator-crds + exclude: true + template: + metadata: + name: '{{path.basename}}' + spec: + project: default + source: + repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure + targetRevision: manifests + path: '{{path}}' + destination: + name: in-cluster + namespace: '{{path.basename}}' + revisionHistoryLimit: 3 + ignoreDifferences: + - group: "" + kind: Service + jqPathExpressions: + - .spec.externalName + - group: "apps" + kind: "Deployment" + jsonPointers: + - /spec/template/metadata/annotations/checksum~1secret + - /spec/template/metadata/annotations/checksum~1secret-core + - /spec/template/metadata/annotations/checksum~1secret-jobservice + - /spec/template/metadata/annotations/checksum~1tls + - group: "apps" + kind: "StatefulSet" + jsonPointers: + - /spec/template/metadata/annotations/checksum~1secret + - /spec/template/metadata/annotations/checksum~1tls + - group: "apps" + kind: StatefulSet + jqPathExpressions: + - .spec.volumeClaimTemplates[]?.apiVersion + - .spec.volumeClaimTemplates[]?.kind + - .spec.volumeClaimTemplates[]?.metadata.creationTimestamp + - group: "" + kind: GpuDevicePlugin + jqPathExpressions: + - .metadata.annotations[] + syncPolicy: + automated: + enabled: false + prune: false + selfHeal: false + retry: + limit: 3 + backoff: + duration: 1m + factor: 2 + maxDuration: 15m + syncOptions: + - CreateNamespace=true + - ApplyOutOfSyncOnly=true + - ServerSideApply=true + - PruneLast=true + - RespectIgnoreDifferences=true diff --git a/clusters/cl01tl/manifests/stack/stack.yaml b/clusters/cl01tl/manifests/stack/stack.yaml deleted file mode 100644 index c904c88cd..000000000 --- a/clusters/cl01tl/manifests/stack/stack.yaml +++ /dev/null @@ -1,284 +0,0 @@ ---- -# Source: stack/templates/application.yaml -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: stack-cl01tl - namespace: argocd - labels: - app.kubernetes.io/name: stack-cl01tl - app.kubernetes.io/instance: argocd - app.kubernetes.io/part-of: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: default - source: - repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure - targetRevision: manifests - path: clusters/cl01tl/manifests/stack - destination: - name: in-cluster - namespace: argocd - revisionHistoryLimit: 3 - syncPolicy: - automated: - prune: true - selfHeal: false - retry: - limit: 3 - backoff: - duration: 1m - factor: 2 - maxDuration: 15m - syncOptions: - - CreateNamespace=false - - ApplyOutOfSyncOnly=true - - ServerSideApply=true - - PruneLast=true - - RespectIgnoreDifferences=true ---- -# Source: stack/templates/application.yaml -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: cilium - namespace: argocd - labels: - app.kubernetes.io/name: cilium - app.kubernetes.io/instance: argocd - app.kubernetes.io/part-of: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: default - source: - repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure - targetRevision: manifests - path: clusters/cl01tl/manifests/cilium - destination: - name: in-cluster - namespace: kube-system - revisionHistoryLimit: 3 - ignoreDifferences: - - group: monitoring.coreos.com - kind: ServiceMonitor - jqPathExpressions: - - .spec.endpoints[]?.relabelings[]?.action - syncPolicy: - automated: - prune: true - selfHeal: false - retry: - limit: 3 - backoff: - duration: 1m - factor: 2 - maxDuration: 15m - syncOptions: - - CreateNamespace=false - - ApplyOutOfSyncOnly=true - - ServerSideApply=true - - PruneLast=true - - RespectIgnoreDifferences=true ---- -# Source: stack/templates/application.yaml -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: coredns - namespace: argocd - labels: - app.kubernetes.io/name: coredns - app.kubernetes.io/instance: argocd - app.kubernetes.io/part-of: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: default - source: - repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure - targetRevision: manifests - path: clusters/cl01tl/manifests/coredns - destination: - name: in-cluster - namespace: kube-system - revisionHistoryLimit: 3 - syncPolicy: - automated: - prune: true - selfHeal: true - retry: - limit: 3 - backoff: - duration: 1m - factor: 2 - maxDuration: 15m - syncOptions: - - CreateNamespace=false - - ApplyOutOfSyncOnly=true - - ServerSideApply=true - - PruneLast=true ---- -# Source: stack/templates/application.yaml -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: metrics-server - namespace: argocd - labels: - app.kubernetes.io/name: metrics-server - app.kubernetes.io/instance: argocd - app.kubernetes.io/part-of: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: default - source: - repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure - targetRevision: manifests - path: clusters/cl01tl/manifests/metrics-server - destination: - name: in-cluster - namespace: kube-system - revisionHistoryLimit: 3 - syncPolicy: - automated: - prune: true - selfHeal: true - retry: - limit: 3 - backoff: - duration: 1m - factor: 2 - maxDuration: 15m - syncOptions: - - CreateNamespace=false - - ApplyOutOfSyncOnly=true - - ServerSideApply=true - - PruneLast=true ---- -# Source: stack/templates/application.yaml -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: prometheus-operator-crds - namespace: argocd - labels: - app.kubernetes.io/name: prometheus-operator-crds - app.kubernetes.io/instance: argocd - app.kubernetes.io/part-of: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - project: default - source: - repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure - targetRevision: manifests - path: clusters/cl01tl/manifests/prometheus-operator-crds - destination: - name: in-cluster - namespace: kube-system - revisionHistoryLimit: 3 - syncPolicy: - automated: - prune: true - selfHeal: false - retry: - limit: 3 - backoff: - duration: 1m - factor: 2 - maxDuration: 15m - syncOptions: - - CreateNamespace=false - - ApplyOutOfSyncOnly=true - - ServerSideApply=true - - PruneLast=true ---- -# Source: stack/templates/application-set.yaml -apiVersion: argoproj.io/v1alpha1 -kind: ApplicationSet -metadata: - name: application-set-cl01tl - namespace: argocd - labels: - app.kubernetes.io/name: application-set-cl01tl - app.kubernetes.io/instance: argocd - app.kubernetes.io/part-of: argocd -spec: - syncPolicy: - applicationsSync: create-update - preserveResourcesOnDeletion: false - generators: - - git: - repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure - revision: manifests - directories: - - path: clusters/cl01tl/manifests/* - - path: clusters/cl01tl/manifests/stack - exclude: true - - path: clusters/cl01tl/manifests/cilium - exclude: true - - path: clusters/cl01tl/manifests/coredns - exclude: true - - path: clusters/cl01tl/manifests/metrics-server - exclude: true - - path: clusters/cl01tl/manifests/prometheus-operator-crds - exclude: true - template: - metadata: - name: '{{path.basename}}' - spec: - project: default - source: - repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure - targetRevision: manifests - path: '{{path}}' - destination: - name: in-cluster - namespace: '{{path.basename}}' - revisionHistoryLimit: 3 - ignoreDifferences: - - group: "" - kind: Service - jqPathExpressions: - - .spec.externalName - - group: "apps" - kind: "Deployment" - jsonPointers: - - /spec/template/metadata/annotations/checksum~1secret - - /spec/template/metadata/annotations/checksum~1secret-core - - /spec/template/metadata/annotations/checksum~1secret-jobservice - - /spec/template/metadata/annotations/checksum~1tls - - group: "apps" - kind: "StatefulSet" - jsonPointers: - - /spec/template/metadata/annotations/checksum~1secret - - /spec/template/metadata/annotations/checksum~1tls - - group: "apps" - kind: StatefulSet - jqPathExpressions: - - .spec.volumeClaimTemplates[]?.apiVersion - - .spec.volumeClaimTemplates[]?.kind - - .spec.volumeClaimTemplates[]?.metadata.creationTimestamp - - group: "" - kind: GpuDevicePlugin - jqPathExpressions: - - .metadata.annotations[] - syncPolicy: - automated: - prune: true - selfHeal: false - retry: - limit: 3 - backoff: - duration: 1m - factor: 2 - maxDuration: 15m - syncOptions: - - CreateNamespace=true - - ApplyOutOfSyncOnly=true - - ServerSideApply=true - - PruneLast=true - - RespectIgnoreDifferences=true