Commit 95a8648e authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Improve helm scripts related with mongo and mongo-express

parent 65c539d0
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ spec:
          image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          ports:
            - name: http
            - name: mongo
              containerPort: {{ .Values.service.port }}
              protocol: TCP
          env:
@@ -45,6 +45,11 @@ spec:
            value: {{ quote .Values.env.mongoInitdbRootPassword }}
          - name: MONGO_INITDB_ROOT_USERNAME
            value: {{ quote .Values.env.mongoInitdbRootUsername }}
          command: ["mongod"]
            args:
              - "--bind_ip_all"
              - "--auth"
              - "--fork=false"
          livenessProbe:
            {{- toYaml .Values.livenessProbe | nindent 12 }}
          readinessProbe:
+2 −0
Original line number Diff line number Diff line
@@ -79,9 +79,11 @@ livenessProbe:
#  httpGet:
#    path: /
#    port: http

readinessProbe:
  tcpSocket:
    port: 27017
  initialDelaySeconds: 20
  periodSeconds: 5

autoscaling:
+6 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ spec:
          image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          ports:
            - name: http
            - name: mongo
              containerPort: {{ .Values.service.port }}
              protocol: TCP
          env:
@@ -45,6 +45,11 @@ spec:
            value: {{ quote .Values.env.mongoInitdbRootPassword }}
          - name: MONGO_INITDB_ROOT_USERNAME
            value: {{ quote .Values.env.mongoInitdbRootUsername }}
          command: ["mongod"]
            args:
              - "--bind_ip_all"
              - "--auth"
              - "--fork=false"
          livenessProbe:
            {{- toYaml .Values.livenessProbe | nindent 12 }}
          readinessProbe:
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ livenessProbe:
readinessProbe:
  tcpSocket:
    port: 27017
#  initialDelaySeconds: 5
  initialDelaySeconds: 20
  periodSeconds: 5

autoscaling:
+4 −0
Original line number Diff line number Diff line
@@ -46,6 +46,10 @@ spec:
            value: {{ quote .Values.env.meConfigMongodbAdminpassword }}
          - name: ME_CONFIG_MONGODB_URL
            value: {{ quote .Values.env.meConfigMongodbUrl }}
          - name: ME_CONFIG_CONNECT_RETRIES
            value: "10"
          - name: ME_CONFIG_CONNECT_RETRY_INTERVAL
            value: "5000"
          livenessProbe:
            {{- toYaml .Values.livenessProbe | nindent 12 }}
          readinessProbe:
Loading