diff --git a/kustomize/components/pgupgrade/kustomization.yaml b/kustomize/components/pgupgrade/kustomization.yaml index 946499c78..d8c2d2a68 100644 --- a/kustomize/components/pgupgrade/kustomization.yaml +++ b/kustomize/components/pgupgrade/kustomization.yaml @@ -7,4 +7,4 @@ resources: - ./quay-pg-old.deployment.yaml patchesStrategicMerge: - ./quay.deployment.patch.yaml - - ./quay-pg.statefulset.patch.yaml + - ./quay-pg.deployment.patch.yaml diff --git a/kustomize/components/pgupgrade/quay-pg.statefulset.patch.yaml b/kustomize/components/pgupgrade/quay-pg.deployment.patch.yaml similarity index 80% rename from kustomize/components/pgupgrade/quay-pg.statefulset.patch.yaml rename to kustomize/components/pgupgrade/quay-pg.deployment.patch.yaml index 2ff6bd9c0..bfcae5312 100644 --- a/kustomize/components/pgupgrade/quay-pg.statefulset.patch.yaml +++ b/kustomize/components/pgupgrade/quay-pg.deployment.patch.yaml @@ -1,5 +1,5 @@ apiVersion: apps/v1 -kind: StatefulSet +kind: Deployment metadata: name: quay-database spec: diff --git a/kustomize/components/postgres/kustomization.yaml b/kustomize/components/postgres/kustomization.yaml index 772c89302..205c3e3aa 100644 --- a/kustomize/components/postgres/kustomization.yaml +++ b/kustomize/components/postgres/kustomization.yaml @@ -4,7 +4,7 @@ kind: Component resources: - ./postgres.serviceaccount.yaml - ./postgres.persistentvolumeclaim.yaml - - ./postgres.statefulset.yaml + - ./postgres.deployment.yaml - ./postgres.service.yaml - ./postgres-conf-sample.configmap.yaml secretGenerator: diff --git a/kustomize/components/postgres/postgres.statefulset.yaml b/kustomize/components/postgres/postgres.deployment.yaml similarity index 96% rename from kustomize/components/postgres/postgres.statefulset.yaml rename to kustomize/components/postgres/postgres.deployment.yaml index b76cf2130..6f18ad244 100644 --- a/kustomize/components/postgres/postgres.statefulset.yaml +++ b/kustomize/components/postgres/postgres.deployment.yaml @@ -1,5 +1,5 @@ apiVersion: apps/v1 -kind: StatefulSet +kind: Deployment metadata: name: quay-database labels: @@ -7,8 +7,9 @@ metadata: annotations: quay-component: postgres spec: - serviceName: quay-database replicas: 1 + strategy: + type: Recreate selector: matchLabels: quay-component: postgres @@ -75,4 +76,3 @@ spec: requests: cpu: 500m memory: 2Gi - volumeClaimTemplates: []