diff --git a/kubernetes/apps/default/it-tools/app/helmrelease.yaml b/kubernetes/apps/default/it-tools/app/helmrelease.yaml new file mode 100644 index 00000000..eb04c92d --- /dev/null +++ b/kubernetes/apps/default/it-tools/app/helmrelease.yaml @@ -0,0 +1,70 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: &app it-tools +spec: + interval: 30m + chart: + spec: + chart: app-template + version: 3.3.2 + sourceRef: + kind: HelmRepository + name: bjw-s + namespace: flux-system + install: + remediation: + retries: 3 + upgrade: + cleanupOnFail: true + remediation: + retries: 3 + strategy: rollback + values: + controllers: + it-tools: + annotations: + reloader.stakater.com/auto: "true" + containers: + app: + image: + repository: ghcr.io/corentinth/it-tools + tag: 2024.5.13-a0bc346 + env: + TZ: America/Chicago + probes: + liveness: + enabled: true + readiness: + enabled: true + resources: + requests: + cpu: 100m + limits: + memory: 500Mi + service: + app: + controller: *app + ports: + http: + port: 80 + ingress: + app: + enabled: true + className: external-nginx + annotations: + external-dns.alpha.kubernetes.io/cloudflare-proxied: "true" + external-dns.alpha.kubernetes.io/target: external.hsn.dev + + hosts: + - host: &host tools.hsn.dev + paths: + - path: / + service: + identifier: app + port: http + tls: + - hosts: + - *host diff --git a/kubernetes/apps/default/it-tools/app/kustomization.yaml b/kubernetes/apps/default/it-tools/app/kustomization.yaml new file mode 100644 index 00000000..31945e08 --- /dev/null +++ b/kubernetes/apps/default/it-tools/app/kustomization.yaml @@ -0,0 +1,7 @@ +--- +# yaml-language-server: $schema=https://json.schemastore.org/kustomization +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ./helmrelease.yaml + - ../../../../templates/gatus/external diff --git a/kubernetes/apps/default/it-tools/ks.yaml b/kubernetes/apps/default/it-tools/ks.yaml new file mode 100644 index 00000000..050dce58 --- /dev/null +++ b/kubernetes/apps/default/it-tools/ks.yaml @@ -0,0 +1,24 @@ +--- +# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: &app it-tools + namespace: flux-system +spec: + targetNamespace: default + commonMetadata: + labels: + app.kubernetes.io/name: *app + path: ./kubernetes/apps/default/it-tools/app + prune: true + sourceRef: + kind: GitRepository + name: homelab + wait: false # no flux ks dependents + interval: 30m + retryInterval: 1m + timeout: 5m + postBuild: + substitute: + APP: *app diff --git a/kubernetes/apps/default/kustomization.yaml b/kubernetes/apps/default/kustomization.yaml index 039a7d52..b6824e2d 100644 --- a/kubernetes/apps/default/kustomization.yaml +++ b/kubernetes/apps/default/kustomization.yaml @@ -9,6 +9,7 @@ resources: - ./atuin/ks.yaml - ./autobrr/ks.yaml - ./excalidraw/ks.yaml + - ./it-tools/ks.yaml - ./jellyseerr/ks.yaml - ./maintainerr/ks.yaml - ./omegabrr/ks.yaml