diff --git a/flux/production/kustomizations/cert-manager.yaml b/flux/production/kustomizations/cert-manager.yaml new file mode 100644 index 0000000..68e332f --- /dev/null +++ b/flux/production/kustomizations/cert-manager.yaml @@ -0,0 +1,44 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: cert-manager + namespace: flux-system +spec: + interval: 1m0s + path: ./infrastructure/cert-manager + prune: false + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1 + kind: HelmRepository + name: cert-manager + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2 + kind: HelmRelease + name: cert-manager + namespace: common-services + dependsOn: + - name: external-secrets-resources + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + timeout: 5m + +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: cert-manager-resources + namespace: flux-system +spec: + interval: 1m0s + path: ./infrastructure/cert-manager/resources + prune: false + dependsOn: + - name: cert-manager + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + timeout: 5m diff --git a/flux/production/kustomizations/flux-resources.yaml b/flux/production/kustomizations/flux-resources.yaml new file mode 100644 index 0000000..6def738 --- /dev/null +++ b/flux/production/kustomizations/flux-resources.yaml @@ -0,0 +1,17 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: flux-resources + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/flux-resources + prune: false + dependsOn: + - name: external-secrets-resources + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + namespace: flux-system diff --git a/flux/production/kustomizations/gitlab-agent.yaml b/flux/production/kustomizations/gitlab-agent.yaml new file mode 100644 index 0000000..5f46189 --- /dev/null +++ b/flux/production/kustomizations/gitlab-agent.yaml @@ -0,0 +1,22 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: gitlab-agent + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/gitlab-agent + prune: false + dependsOn: + - name: flux-resources + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1 + kind: HelmRepository + name: gitlab-agent + namespace: common-services + timeout: 5m diff --git a/flux/production/kustomizations/gitlab-runner.yaml b/flux/production/kustomizations/gitlab-runner.yaml new file mode 100644 index 0000000..01b94ab --- /dev/null +++ b/flux/production/kustomizations/gitlab-runner.yaml @@ -0,0 +1,22 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: gitlab-runner + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/gitlab-runner + prune: false + dependsOn: + - name: flux-resources + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1 + kind: HelmRepository + name: gitlab-runner + namespace: common-services + timeout: 5m diff --git a/flux/production/kustomizations/hashicorp-vault.yaml b/flux/production/kustomizations/hashicorp-vault.yaml new file mode 100644 index 0000000..5511514 --- /dev/null +++ b/flux/production/kustomizations/hashicorp-vault.yaml @@ -0,0 +1,73 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: hashicorp-vault + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/hashicorp-vault + prune: false + sourceRef: + kind: GitRepository + name: cluster-k8s + dependsOn: + - name: namespaces + namespace: flux-system + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1 + kind: HelmRepository + name: hashicorp + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2 + kind: HelmRelease + name: vault + namespace: common-services + timeout: 5m + +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: external-secrets + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/hashicorp-vault/external-secrets + prune: false + dependsOn: + - name: hashicorp-vault + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + namespace: flux-system + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1 + kind: HelmRepository + name: external-secrets + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2 + kind: HelmRelease + name: external-secrets-operator + namespace: common-services + timeout: 10m + +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: external-secrets-resources + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/hashicorp-vault/external-secrets/resources + prune: false + dependsOn: + - name: external-secrets + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + namespace: flux-system + timeout: 10m diff --git a/flux/production/kustomizations/ldc-custom.yaml b/flux/production/kustomizations/ldc-custom.yaml new file mode 100644 index 0000000..0b00b11 --- /dev/null +++ b/flux/production/kustomizations/ldc-custom.yaml @@ -0,0 +1,17 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: ldc-custom + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/ldc-custom + prune: false + sourceRef: + kind: GitRepository + name: cluster-k8s + dependsOn: + - name: prometheus-stack + namespace: flux-system + timeout: 5m diff --git a/flux/production/kustomizations/mariadb.yaml b/flux/production/kustomizations/mariadb.yaml new file mode 100644 index 0000000..21b44cf --- /dev/null +++ b/flux/production/kustomizations/mariadb.yaml @@ -0,0 +1,26 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: mariadb + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/mariadb + prune: false + sourceRef: + kind: GitRepository + name: cluster-k8s + dependsOn: + - name: external-secrets-resources + namespace: flux-system + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1 + kind: HelmRepository + name: bitnami + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2 + kind: HelmRelease + name: mariadb + namespace: common-services + timeout: 5m diff --git a/flux/production/kustomizations/namespaces.yaml b/flux/production/kustomizations/namespaces.yaml new file mode 100644 index 0000000..a2ad9dc --- /dev/null +++ b/flux/production/kustomizations/namespaces.yaml @@ -0,0 +1,32 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: namespaces + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/namespaces + prune: false + dependsOn: + - name: flux-system + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + healthChecks: + - apiVersion: v1 + kind: Namespace + name: common-services + - apiVersion: v1 + kind: Namespace + name: production + - apiVersion: v1 + kind: Namespace + name: review + - apiVersion: v1 + kind: Namespace + name: staging + - apiVersion: v1 + kind: Namespace + name: velero diff --git a/flux/production/kustomizations/prometheus-stack.yaml b/flux/production/kustomizations/prometheus-stack.yaml new file mode 100644 index 0000000..0ab5e5d --- /dev/null +++ b/flux/production/kustomizations/prometheus-stack.yaml @@ -0,0 +1,26 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: prometheus-stack + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/prometheus-stack + prune: false + sourceRef: + kind: GitRepository + name: cluster-k8s + dependsOn: + - name: external-secrets-resources + namespace: flux-system + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1 + kind: HelmRepository + name: prometheus-community + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2 + kind: HelmRelease + name: prometheus-stack + namespace: common-services + timeout: 10m diff --git a/flux/production/kustomizations/traefik.yaml b/flux/production/kustomizations/traefik.yaml new file mode 100644 index 0000000..fc5aa8a --- /dev/null +++ b/flux/production/kustomizations/traefik.yaml @@ -0,0 +1,26 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: traefik + namespace: flux-system +spec: + interval: 1m0s + path: ./infrastructure/traefik + prune: false + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1 + kind: HelmRepository + name: traefik + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2 + kind: HelmRelease + name: traefik + namespace: common-services + dependsOn: + - name: cert-manager-resources + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + timeout: 5m diff --git a/flux/staging/kustomizations/cert-manager.yaml b/flux/staging/kustomizations/cert-manager.yaml new file mode 100644 index 0000000..c250aca --- /dev/null +++ b/flux/staging/kustomizations/cert-manager.yaml @@ -0,0 +1,49 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: cert-manager + namespace: flux-system +spec: + interval: 1m0s + path: ./infrastructure/cert-manager + prune: false + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1beta2 + kind: HelmRepository + name: cert-manager + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2beta2 + kind: HelmRelease + name: cert-manager + namespace: common-services + dependsOn: + - name: namespaces + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + timeout: 5m + +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: cert-manager-resources + namespace: flux-system +spec: + interval: 1m0s + path: ./infrastructure/cert-manager/resources + prune: false + healthChecks: + - apiVersion: helm.toolkit.fluxcd.io/v2beta2 + kind: HelmRelease + name: common-services + namespace: cert-manager + dependsOn: + - name: cert-manager + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + timeout: 5m diff --git a/flux/staging/kustomizations/flux-resources.yaml b/flux/staging/kustomizations/flux-resources.yaml new file mode 100644 index 0000000..885a0ca --- /dev/null +++ b/flux/staging/kustomizations/flux-resources.yaml @@ -0,0 +1,14 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: flux-resources + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/flux-resources + prune: false + sourceRef: + kind: GitRepository + name: cluster-k8s + namespace: flux-system diff --git a/flux/staging/kustomizations/gitlab-agent.yaml b/flux/staging/kustomizations/gitlab-agent.yaml new file mode 100644 index 0000000..c21dcc1 --- /dev/null +++ b/flux/staging/kustomizations/gitlab-agent.yaml @@ -0,0 +1,22 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: gitlab-agent + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/gitlab-agent + prune: false + dependsOn: + - name: flux-resources + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1beta2 + kind: HelmRepository + name: gitlab-agent + namespace: common-services + timeout: 5m diff --git a/flux/staging/kustomizations/gitlab-runner.yaml b/flux/staging/kustomizations/gitlab-runner.yaml new file mode 100644 index 0000000..48396da --- /dev/null +++ b/flux/staging/kustomizations/gitlab-runner.yaml @@ -0,0 +1,22 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: gitlab-runner + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/gitlab-runner + prune: false + dependsOn: + - name: flux-resources + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1beta2 + kind: HelmRepository + name: gitlab-runner + namespace: common-services + timeout: 5m diff --git a/flux/staging/kustomizations/hashicorp-vault.yaml b/flux/staging/kustomizations/hashicorp-vault.yaml new file mode 100644 index 0000000..36e3341 --- /dev/null +++ b/flux/staging/kustomizations/hashicorp-vault.yaml @@ -0,0 +1,69 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: hashicorp-vault + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/hashicorp-vault + prune: false + sourceRef: + kind: GitRepository + name: cluster-k8s + dependsOn: + - name: namespaces + namespace: flux-system + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1beta2 + kind: HelmRepository + name: hashicorp + namespace: common-services + timeout: 5m + +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: external-secrets + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/hashicorp-vault/external-secrets + prune: false + dependsOn: + - name: hashicorp-vault + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + namespace: flux-system + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1beta2 + kind: HelmRepository + name: external-secrets + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2beta2 + kind: HelmRelease + name: external-secrets-operator + namespace: common-services + timeout: 10m + +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: external-secrets-resources + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/hashicorp-vault/external-secrets/resources + prune: false + dependsOn: + - name: external-secrets + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + namespace: flux-system + timeout: 10m diff --git a/flux/staging/kustomizations/ldc-custom.yaml b/flux/staging/kustomizations/ldc-custom.yaml new file mode 100644 index 0000000..99d2405 --- /dev/null +++ b/flux/staging/kustomizations/ldc-custom.yaml @@ -0,0 +1,17 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: ldc-custom + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/ldc-custom + prune: false + sourceRef: + kind: GitRepository + name: cluster-k8s + dependsOn: + - name: prometheus-stack + namespace: flux-system + timeout: 5m diff --git a/flux/staging/kustomizations/mariadb.yaml b/flux/staging/kustomizations/mariadb.yaml new file mode 100644 index 0000000..a73602b --- /dev/null +++ b/flux/staging/kustomizations/mariadb.yaml @@ -0,0 +1,23 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: mariadb + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/mariadb + prune: false + sourceRef: + kind: GitRepository + name: cluster-k8s + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1beta2 + kind: HelmRepository + name: bitnami + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2beta2 + kind: HelmRelease + name: mariadb + namespace: common-services + timeout: 5m diff --git a/flux/staging/kustomizations/namespaces.yaml b/flux/staging/kustomizations/namespaces.yaml new file mode 100644 index 0000000..a2ad9dc --- /dev/null +++ b/flux/staging/kustomizations/namespaces.yaml @@ -0,0 +1,32 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: namespaces + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/namespaces + prune: false + dependsOn: + - name: flux-system + namespace: flux-system + sourceRef: + kind: GitRepository + name: cluster-k8s + healthChecks: + - apiVersion: v1 + kind: Namespace + name: common-services + - apiVersion: v1 + kind: Namespace + name: production + - apiVersion: v1 + kind: Namespace + name: review + - apiVersion: v1 + kind: Namespace + name: staging + - apiVersion: v1 + kind: Namespace + name: velero diff --git a/flux/staging/kustomizations/prometheus-stack.yaml b/flux/staging/kustomizations/prometheus-stack.yaml new file mode 100644 index 0000000..68da367 --- /dev/null +++ b/flux/staging/kustomizations/prometheus-stack.yaml @@ -0,0 +1,23 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: prometheus-stack + namespace: flux-system +spec: + interval: 30s + path: ./infrastructure/prometheus-stack + prune: false + sourceRef: + kind: GitRepository + name: cluster-k8s + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1beta2 + kind: HelmRepository + name: prometheus-community + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2beta2 + kind: HelmRelease + name: prometheus-stack + namespace: common-services + timeout: 10m diff --git a/flux/staging/kustomizations/traefik.yaml b/flux/staging/kustomizations/traefik.yaml new file mode 100644 index 0000000..956655e --- /dev/null +++ b/flux/staging/kustomizations/traefik.yaml @@ -0,0 +1,26 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: traefik + namespace: flux-system +spec: + interval: 1m0s + path: ./infrastructure/traefik + prune: false + healthChecks: + - apiVersion: source.toolkit.fluxcd.io/v1beta2 + kind: HelmRepository + name: traefik + namespace: common-services + - apiVersion: helm.toolkit.fluxcd.io/v2beta2 + kind: HelmRelease + name: traefik + namespace: common-services + dependsOn: + - name: cert-manager-resources + namespace: common-services + sourceRef: + kind: GitRepository + name: cluster-k8s + timeout: 5m