From 9201d307ceeca5530362ed2594eb2c697c18f868 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Thu, 6 Nov 2025 06:36:19 -0600 Subject: [PATCH] add infrastructure and config to do k8s --- .../configs/cluster-issuer.yaml | 27 +++++++++++++++++++ .../configs/kustomization.yaml | 4 +++ clusters/ontime-dev-doks/infrastructure.yaml | 16 +++++++++++ 3 files changed, 47 insertions(+) create mode 100644 clusters/ontime-dev-doks/configs/cluster-issuer.yaml create mode 100644 clusters/ontime-dev-doks/configs/kustomization.yaml create mode 100644 clusters/ontime-dev-doks/infrastructure.yaml diff --git a/clusters/ontime-dev-doks/configs/cluster-issuer.yaml b/clusters/ontime-dev-doks/configs/cluster-issuer.yaml new file mode 100644 index 0000000..59c34ca --- /dev/null +++ b/clusters/ontime-dev-doks/configs/cluster-issuer.yaml @@ -0,0 +1,27 @@ +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: lets-encrypt-staging +spec: + acme: + server: https://acme-staging-v02.api.letsencrypt.org/directory + privateKeySecretRef: + name: lets-encrypt-staging-account-key + solvers: + - http01: + ingress: + ingressClassName: nginx +--- +apiVersion: cert-manager.io/v1 +kind: ClusterIssuer +metadata: + name: lets-encrypt-prod +spec: + acme: + server: https://acme-v02.api.letsencrypt.org/directory + privateKeySecretRef: + name: lets-encrypt-prod-account-key + solvers: + - http01: + ingress: + ingressClassName: nginx \ No newline at end of file diff --git a/clusters/ontime-dev-doks/configs/kustomization.yaml b/clusters/ontime-dev-doks/configs/kustomization.yaml new file mode 100644 index 0000000..df90e80 --- /dev/null +++ b/clusters/ontime-dev-doks/configs/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - cluster-issuer.yaml \ No newline at end of file diff --git a/clusters/ontime-dev-doks/infrastructure.yaml b/clusters/ontime-dev-doks/infrastructure.yaml new file mode 100644 index 0000000..25c56fa --- /dev/null +++ b/clusters/ontime-dev-doks/infrastructure.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: infrastructure + namespace: flux-system +spec: + interval: 1h + retryInterval: 1m + timeout: 5m + sourceRef: + kind: GitRepository + name: flux-system + path: ./infrastructure + prune: true + wait: true \ No newline at end of file