|
80 | 80 | - name: ws |
81 | 81 | containerPort: {{ .Values.gateway.service.ws.port }} |
82 | 82 | protocol: TCP |
| 83 | + {{- if .Values.gateway.metrics.enabled }} |
| 84 | + - name: metrics |
| 85 | + containerPort: {{ .Values.gateway.metrics.targetPort }} |
| 86 | + protocol: TCP |
| 87 | + {{- if .Values.gateway.metrics.livenessProbe.enabled }} |
| 88 | + livenessProbe: |
| 89 | + httpGet: |
| 90 | + path: {{ .Values.gateway.metrics.livenessProbe.httpGet.path }} |
| 91 | + port: {{ .Values.gateway.metrics.livenessProbe.httpGet.port | default "metrics" }} |
| 92 | + timeoutSeconds: {{ .Values.gateway.metrics.livenessProbe.timeoutSeconds }} |
| 93 | + {{- with .Values.gateway.metrics.livenessProbe.initalDelaySeconds }} |
| 94 | + initialDelaySeconds: {{ . }} |
| 95 | + {{- end }} |
| 96 | + {{- with .Values.gateway.metrics.livenessProbe.periodSeconds }} |
| 97 | + periodSeconds: {{ . }} |
| 98 | + {{- end }} |
| 99 | + {{- with .Values.gateway.metrics.livenessProbe.successThreshold }} |
| 100 | + successThreshold: {{ . }} |
| 101 | + {{- end }} |
| 102 | + {{- with .Values.gateway.metrics.livenessProbe.failureThreshold }} |
| 103 | + failureThreshold: {{ . }} |
| 104 | + {{- end }} |
| 105 | + {{- end }} |
| 106 | + {{- if .Values.gateway.metrics.readinessProbe.enabled }} |
| 107 | + readinessProbe: |
| 108 | + httpGet: |
| 109 | + path: {{ .Values.gateway.metrics.readinessProbe.httpGet.path }} |
| 110 | + port: {{ .Values.gateway.metrics.readinessProbe.httpGet.port | default "metrics" }} |
| 111 | + timeoutSeconds: {{ .Values.gateway.metrics.readinessProbe.timeoutSeconds }} |
| 112 | + {{- with .Values.gateway.metrics.readinessProbe.initalDelaySeconds }} |
| 113 | + initialDelaySeconds: {{ . }} |
| 114 | + {{- end }} |
| 115 | + {{- with .Values.gateway.metrics.readinessProbe.periodSeconds }} |
| 116 | + periodSeconds: {{ . }} |
| 117 | + {{- end }} |
| 118 | + {{- with .Values.gateway.metrics.readinessProbe.successThreshold }} |
| 119 | + successThreshold: {{ . }} |
| 120 | + {{- end }} |
| 121 | + {{- with .Values.gateway.metrics.readinessProbe.failureThreshold }} |
| 122 | + failureThreshold: {{ . }} |
| 123 | + {{- end }} |
| 124 | + {{- end }} |
| 125 | + {{- end }} |
83 | 126 | resources: |
84 | 127 | {{- toYaml .Values.gateway.resources | nindent 12 }} |
85 | 128 | {{- with .Values.gateway.nodeSelector }} |
|
0 commit comments