commit 57d381e6818549ca64af08a6d53fa22ac545f9fd parent e64ec3a213957b5059d53bb5705089c8c45a7c2c Author: MTRNord <mtrnord1@gmail.com> Date: Wed, 20 Mar 2024 11:24:16 +0100 Deploy capacitor Diffstat:
| A | infrastructure/controllers/capacitor.yaml | | | 53 | +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| M | infrastructure/controllers/kustomization.yaml | | | 1 | + |
2 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/infrastructure/controllers/capacitor.yaml b/infrastructure/controllers/capacitor.yaml @@ -0,0 +1,53 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: OCIRepository +metadata: + name: capacitor + namespace: flux-system +spec: + interval: 12h + url: oci://ghcr.io/gimlet-io/capacitor-manifests + ref: + semver: ">=0.3.0" +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: capacitor + namespace: flux-system +spec: + targetNamespace: flux-system + interval: 1h + retryInterval: 2m + timeout: 5m + wait: true + prune: true + path: "./" + sourceRef: + kind: OCIRepository + name: capacitor +--- +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + cert-manager.io/cluster-issuer: letsencrypt-http + name: capacitor + namespace: flux-system +spec: + rules: + - host: ui.k8s.midnightthoughts.space + http: + paths: + - backend: + service: + name: capacitor + port: + number: 9000 + path: / + pathType: ImplementationSpecific + tls: + - hosts: + - ui.k8s.midnightthoughts.space + secretName: ui.k8s.midnightthoughts.space-tls diff --git a/infrastructure/controllers/kustomization.yaml b/infrastructure/controllers/kustomization.yaml @@ -8,3 +8,4 @@ resources: #- calico.yaml #- kube-router.yaml - descheduler.yaml + - capacitor.yaml