diff --git a/clusters/base/infra-apps/cert-manager-issuers/kustomization.yaml b/clusters/base/infra-apps/cert-manager-issuers/kustomization.yaml new file mode 100644 index 0000000..766be60 --- /dev/null +++ b/clusters/base/infra-apps/cert-manager-issuers/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - letsencrypt-prod.yaml diff --git a/clusters/base/infra-apps/cert-manager-issuers/letsencrypt-prod.yaml b/clusters/base/infra-apps/cert-manager-issuers/letsencrypt-prod.yaml new file mode 100644 index 0000000..40e1a4d --- /dev/null +++ b/clusters/base/infra-apps/cert-manager-issuers/letsencrypt-prod.yaml @@ -0,0 +1,16 @@ +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: letsencrypt-prod +spec: + acme: + # server: https://acme-v02.api.letsencrypt.org/directory + server: https://acme-staging-v02.api.letsencrypt.org/directory + email: admin@aggtaa.com + privateKeySecretRef: + name: letsencrypt-prod-account-key + solvers: + - http01: + ingress: + ingressClassName: traefik + \ No newline at end of file diff --git a/clusters/home/apps.yaml b/clusters/home/apps.yaml index e97ffb2..a8a5dbf 100644 --- a/clusters/home/apps.yaml +++ b/clusters/home/apps.yaml @@ -4,10 +4,13 @@ metadata: name: apps namespace: flux-system spec: - interval: 10m + interval: 1m sourceRef: kind: GitRepository name: flux-system path: ./clusters/home/apps prune: true - wait: true \ No newline at end of file + wait: true + dependsOn: + - name: namespaces + - name: infra-apps \ No newline at end of file diff --git a/clusters/home/infra-apps.yaml b/clusters/home/infra-apps.yaml new file mode 100644 index 0000000..3102308 --- /dev/null +++ b/clusters/home/infra-apps.yaml @@ -0,0 +1,16 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: infra-apps + namespace: flux-system +spec: + interval: 1m + sourceRef: + kind: GitRepository + name: flux-system + path: ./clusters/home/infra-apps + prune: true + wait: true + dependsOn: + - name: namespaces + - name: infra \ No newline at end of file diff --git a/clusters/home/infra-apps/kustomization.yaml b/clusters/home/infra-apps/kustomization.yaml new file mode 100644 index 0000000..8cc5c12 --- /dev/null +++ b/clusters/home/infra-apps/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../base/infra-apps/cert-manager-issuers diff --git a/clusters/home/infrastructure.yaml b/clusters/home/infra.yaml similarity index 67% rename from clusters/home/infrastructure.yaml rename to clusters/home/infra.yaml index 03b1def..aec3cfc 100644 --- a/clusters/home/infrastructure.yaml +++ b/clusters/home/infra.yaml @@ -1,12 +1,15 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: - name: infrastructure + name: infra namespace: flux-system spec: interval: 1m sourceRef: kind: GitRepository name: flux-system - path: ./clusters/home/infrastructure + path: ./clusters/home/infra prune: true + wait: true + dependsOn: + - name: namespaces diff --git a/clusters/home/infra/kustomization.yaml b/clusters/home/infra/kustomization.yaml new file mode 100644 index 0000000..b83b23e --- /dev/null +++ b/clusters/home/infra/kustomization.yaml @@ -0,0 +1,3 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: [] diff --git a/clusters/home/kustomization.yaml b/clusters/home/kustomization.yaml index 4146d01..7feb2d8 100644 --- a/clusters/home/kustomization.yaml +++ b/clusters/home/kustomization.yaml @@ -3,7 +3,7 @@ kind: Kustomization resources: - flux-system - namespaces.yaml - # - infra.yaml + - infra.yaml # - infra-nodes.yaml - # - infra-apps.yaml + - infra-apps.yaml - apps.yaml