diff --git a/cluster/apps/data/kustomization.yaml b/cluster/apps/data/kustomization.yaml index 0678f8b8a..470e680e1 100644 --- a/cluster/apps/data/kustomization.yaml +++ b/cluster/apps/data/kustomization.yaml @@ -20,3 +20,4 @@ resources: - vaultwarden - vikunja - wallabag + - whoogle diff --git a/cluster/apps/data/whoogle/helm-release.yaml b/cluster/apps/data/whoogle/helm-release.yaml new file mode 100644 index 000000000..3c4d57f45 --- /dev/null +++ b/cluster/apps/data/whoogle/helm-release.yaml @@ -0,0 +1,60 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: &app whoogle + namespace: data +spec: + interval: 5m + chart: + spec: + chart: kah-common-chart + version: 1.1.2 + sourceRef: + kind: HelmRepository + name: k8s-at-home-charts + namespace: flux-system + interval: 5m + install: + createNamespace: true + values: + fullnameOverride: *app + controller: + replicas: 2 + strategy: RollingUpdate + image: + repository: docker.io/benbusby/whoogle-search + tag: 0.7.2 + service: + main: + ports: + http: + port: 5000 + ingress: + main: + enabled: true + ingressClassName: "nginx" + annotations: + external-dns.alpha.kubernetes.io/target: "services.${SECRET_DOMAIN}." + external-dns/is-public: "true" + hosts: + - host: &host "whoogle.${SECRET_CLUSTER_DOMAIN}" + paths: + - path: / + pathType: Prefix + tls: + - hosts: + - *host + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: DoNotSchedule + labelSelector: + matchLabels: + app.kubernetes.io/name: *app + resources: + requests: + cpu: 10m + memory: 50Mi + limits: + memory: 250Mi diff --git a/cluster/apps/data/whoogle/kustomization.yaml b/cluster/apps/data/whoogle/kustomization.yaml new file mode 100644 index 000000000..34a8531ce --- /dev/null +++ b/cluster/apps/data/whoogle/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - helm-release.yaml