diff --git a/chart/templates/Deployment.surreal.yaml b/chart/templates/StatefulSet.surreal.yaml similarity index 79% rename from chart/templates/Deployment.surreal.yaml rename to chart/templates/StatefulSet.surreal.yaml index cec5598..605f7ad 100644 --- a/chart/templates/Deployment.surreal.yaml +++ b/chart/templates/StatefulSet.surreal.yaml @@ -1,9 +1,6 @@ -{{- $host_dev := printf "%s-bu-teammaker.dev.%s" .Values.image.tag .Values.ingress.host -}} -{{- $host_prod := printf "%s.%s" "bu-teammaker" .Values.ingress.host -}} -{{- $host := regexMatch "^v[0-9]+\\.[0-9]+\\.[0-9]+$" .Values.image.tag | ternary $host_prod $host_dev -}} --- apiVersion: apps/v1 -kind: Deployment +kind: StatefulSet metadata: name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb" labels: @@ -17,10 +14,6 @@ spec: selector: matchLabels: app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb" - template: - metadata: - labels: - app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb" spec: securityContext: runAsUser: 1000 @@ -66,9 +59,6 @@ spec: value: "file:/appdata/bot.db" resources: {{- toYaml .Values.resources | nindent 12 }} - volumeMounts: - - name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb" - mountPath: /appdata livenessProbe: httpGet: path: / @@ -80,4 +70,4 @@ spec: path: / port: http initialDelaySeconds: 5 - periodSeconds: 10 + periodSeconds: 10 \ No newline at end of file