diff --git a/charts/apps/tika/Chart.yaml b/charts/apps/tika/Chart.yaml new file mode 100644 index 0000000..6fd8d95 --- /dev/null +++ b/charts/apps/tika/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v2 +version: 1.0.0 +name: tika diff --git a/charts/apps/tika/templates/deployment.yaml b/charts/apps/tika/templates/deployment.yaml new file mode 100644 index 0000000..84decaa --- /dev/null +++ b/charts/apps/tika/templates/deployment.yaml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: "{{ .Release.Name }}" +spec: + strategy: + type: Recreate + replicas: 1 + selector: + matchLabels: + app: "{{ .Release.Name }}" + template: + metadata: + labels: + app: "{{ .Release.Name }}" + spec: + containers: + - name: "{{ .Release.Name }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: "{{ .Values.image.pullPolicy }}" + ports: + - name: http + containerPort: 9998 + protocol: TCP + livenessProbe: + tcpSocket: + port: http + readinessProbe: + tcpSocket: + port: http + env: + - name: TZ + value: "{{ .Values.globals.timezone }}" diff --git a/charts/apps/tika/templates/service.yaml b/charts/apps/tika/templates/service.yaml new file mode 100644 index 0000000..98b77e5 --- /dev/null +++ b/charts/apps/tika/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: "{{ .Release.Name }}" + labels: + app: "{{ .Release.Name }}" +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: 9998 + protocol: TCP + name: http + selector: + app: "{{ .Release.Name }}" diff --git a/charts/apps/tika/values.yaml b/charts/apps/tika/values.yaml new file mode 100644 index 0000000..7433548 --- /dev/null +++ b/charts/apps/tika/values.yaml @@ -0,0 +1,5 @@ +image: + repository: apache/tika + tag: 3.2.3.0-full + pullPolicy: IfNotPresent +subdomain: tika diff --git a/helmfile.yaml.gotmpl b/helmfile.yaml similarity index 94% rename from helmfile.yaml.gotmpl rename to helmfile.yaml index eb29d8f..83c30ae 100644 --- a/helmfile.yaml.gotmpl +++ b/helmfile.yaml @@ -1,6 +1,5 @@ environments: default: {} - --- releases: - name: volumes @@ -138,8 +137,13 @@ releases: namespace: prod values: - values.yaml - - name: siyuan - chart: charts/apps/siyuan + # - name: siyuan + # chart: charts/apps/siyuan + # namespace: prod + # values: + # - values.yaml + - name: tika + chart: charts/apps/tika namespace: prod values: - values.yaml