Browse Source

HUE-8888 [k8s] Port DB from replicationcontroller to deployment

Romain 6 years ago
parent
commit
1077441e60
1 changed files with 7 additions and 3 deletions
  1. 7 3
      tools/kubernetes/helm/hue/templates/deployment-postgres.yaml

+ 7 - 3
tools/kubernetes/helm/hue/templates/replicationcontroller-postgres.yaml → tools/kubernetes/helm/hue/templates/deployment-postgres.yaml

@@ -1,10 +1,14 @@
 {{- if .Values.hue.database.create -}}
 {{- if .Values.hue.database.create -}}
-apiVersion: v1
-kind: ReplicationController
+apiVersion: apps/v1
+kind: Deployment
 metadata:
 metadata:
   name: postgres-hue
   name: postgres-hue
 spec:
 spec:
-  replicas: 1
+  selector:
+    matchLabels:
+      app: postgres-hue
+  strategy:
+    type: Recreate
   template:
   template:
     metadata:
     metadata:
       labels:
       labels: