Commit 61c9ae0f authored by William Tucker's avatar William Tucker
Browse files

Added a more helpful probe for the publish API

parent f17de061
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -27,6 +27,22 @@ spec:
            - name: http
              containerPort: 8080
          env: {{ toYaml $search.extraEnv | nindent 12 }}
          readinessProbe: &probe
            httpGet:
              path: /esg-search/search
              port: 8080
              httpHeaders:
                - name: Host
                  value: "{{ .Values.hostname }}"
                - name: X-Forwarded-Host
                  value: "{{ .Values.hostname }}"
                - name: X-Forwarded-Proto
                  value: https
            initialDelaySeconds: 10
            periodSeconds: 10
          livenessProbe:
            <<: *probe
            initialDelaySeconds: 120
          {{- with $search.securityContext }}
          securityContext: {{ toYaml . | nindent 12 }}
          {{- end }}