diff --git a/cluster/apps/data/kustomization.yaml b/cluster/apps/data/kustomization.yaml index b5a754fe1..f3444aa71 100644 --- a/cluster/apps/data/kustomization.yaml +++ b/cluster/apps/data/kustomization.yaml @@ -15,6 +15,7 @@ resources: - recipes - resilio-sync - sharry + - truecommand - vaultwarden - vikunja - wallabag diff --git a/cluster/apps/data/truecommand/helm-release.yaml b/cluster/apps/data/truecommand/helm-release.yaml new file mode 100644 index 000000000..8257707aa --- /dev/null +++ b/cluster/apps/data/truecommand/helm-release.yaml @@ -0,0 +1,61 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: &app truecommand + namespace: data +spec: + interval: 15m + chart: + spec: + chart: kah-common-chart + version: 1.1.2 + sourceRef: + kind: HelmRepository + name: k8s-at-home-charts + namespace: flux-system + interval: 15m + install: + createNamespace: true + remediation: + retries: 5 + upgrade: + remediation: + retries: 5 + values: + global: + nameOverride: *app + + image: + repository: ixsystems/truecommand + tag: 2.1.1 + + service: + main: + ports: + http: + port: 80 + + persistence: + config: + enabled: true + existingClaim: truecommand-config + mountPath: /data + + ingress: + main: + enabled: true + ingressClassName: "nginx" + hosts: + - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" + paths: + - path: / + pathType: Prefix + tls: + - hosts: + - *host + + resources: + requests: + cpu: 50m + memory: 256Mi diff --git a/cluster/apps/data/truecommand/kustomization.yaml b/cluster/apps/data/truecommand/kustomization.yaml new file mode 100644 index 000000000..21f1d9e05 --- /dev/null +++ b/cluster/apps/data/truecommand/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - helm-release.yaml + - volume.yaml diff --git a/cluster/apps/data/truecommand/volume.yaml b/cluster/apps/data/truecommand/volume.yaml new file mode 100644 index 000000000..5511d3408 --- /dev/null +++ b/cluster/apps/data/truecommand/volume.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: truecommand-config + namespace: data + labels: + kasten-io/backup: "true" +spec: + accessModes: + - ReadWriteOnce + storageClassName: rook-ceph-block + resources: + requests: + storage: 1Gi