From 51870f45f9ebf04c3558d9991fb02f7cf1f5c088 Mon Sep 17 00:00:00 2001 From: na2na-p Date: Mon, 2 Sep 2024 18:57:59 +0900 Subject: [PATCH] =?UTF-8?q?STS=E3=81=A8=E3=81=97=E3=81=A6=E6=89=B1?= =?UTF-8?q?=E3=81=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/jetdisc/{deployment.yaml => statefulset.yaml} | 6 ++---- infra/k8s/helm/values.yaml | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) rename infra/k8s/helm/templates/jetdisc/{deployment.yaml => statefulset.yaml} (90%) diff --git a/infra/k8s/helm/templates/jetdisc/deployment.yaml b/infra/k8s/helm/templates/jetdisc/statefulset.yaml similarity index 90% rename from infra/k8s/helm/templates/jetdisc/deployment.yaml rename to infra/k8s/helm/templates/jetdisc/statefulset.yaml index 64273830..8873ce92 100644 --- a/infra/k8s/helm/templates/jetdisc/deployment.yaml +++ b/infra/k8s/helm/templates/jetdisc/statefulset.yaml @@ -1,15 +1,13 @@ apiVersion: apps/v1 -kind: Deployment +kind: StatefulSet metadata: name: {{ include "jetdisc.fullname" . }} labels: {{- include "jetdisc.labels" . | nindent 4 }} spec: - replicas: {{ .Values.replicaCount }} + replicas: 1 selector: matchLabels: app: {{ include "jetdisc.name" . }} - strategy: - type: Recreate template: metadata: labels: diff --git a/infra/k8s/helm/values.yaml b/infra/k8s/helm/values.yaml index 17ac63b9..7aaa90d7 100644 --- a/infra/k8s/helm/values.yaml +++ b/infra/k8s/helm/values.yaml @@ -1,5 +1,3 @@ -replicaCount: 1 - image: repository: na2na/jetdisc tag: "3.0.5"