|
24 | 24 | targetPort: rest |
25 | 25 | protocol: TCP |
26 | 26 | name: rest |
| 27 | + {{- $type := .Values.indexer.serviceType | default .Values.service.type }} |
| 28 | + {{- if and (eq $type "NodePort") .Values.indexer.restNodePort }} |
| 29 | + nodePort: {{ .Values.indexer.restNodePort }} |
| 30 | + {{- end }} |
27 | 31 | - port: 7281 |
28 | 32 | targetPort: grpc |
29 | 33 | name: grpc |
| 34 | + {{- $type := .Values.searcher.serviceType | default .Values.service.type }} |
| 35 | + {{- if and (eq $type "NodePort") .Values.searcher.grpcNodePort }} |
| 36 | + nodePort: {{ .Values.searcher.grpcNodePort }} |
| 37 | + {{- end }} |
30 | 38 | selector: |
31 | 39 | {{- include "quickwit.searcher.selectorLabels" . | nindent 4 }} |
32 | 40 | --- |
@@ -92,9 +100,15 @@ spec: |
92 | 100 | targetPort: rest |
93 | 101 | protocol: TCP |
94 | 102 | name: rest |
| 103 | + {{- if and (or (eq (.Values.indexer.serviceType | default .Values.service.type) "NodePort") (eq .Values.service.type "NodePort")) .Values.indexer.restNodePort }} |
| 104 | + nodePort: {{ .Values.indexer.restNodePort }} |
| 105 | + {{- end }} |
95 | 106 | - port: 7281 |
96 | 107 | targetPort: grpc |
97 | 108 | name: grpc |
| 109 | + {{- if and (or (eq (.Values.indexer.serviceType | default .Values.service.type) "NodePort") (eq .Values.service.type "NodePort")) .Values.indexer.grpcNodePort }} |
| 110 | + nodePort: {{ .Values.indexer.grpcNodePort }} |
| 111 | + {{- end }} |
98 | 112 | selector: |
99 | 113 | {{- include "quickwit.indexer.selectorLabels" . | nindent 4 }} |
100 | 114 | --- |
@@ -124,9 +138,15 @@ spec: |
124 | 138 | targetPort: rest |
125 | 139 | protocol: TCP |
126 | 140 | name: rest |
| 141 | + {{- if and (or (eq (.Values.metastore.serviceType | default .Values.service.type) "NodePort") (eq .Values.service.type "NodePort")) .Values.metastore.restNodePort }} |
| 142 | + nodePort: {{ .Values.metastore.restNodePort }} |
| 143 | + {{- end }} |
127 | 144 | - port: 7281 |
128 | 145 | targetPort: grpc |
129 | 146 | name: grpc |
| 147 | + {{- if and (or (eq (.Values.metastore.serviceType | default .Values.service.type) "NodePort") (eq .Values.service.type "NodePort")) .Values.metastore.grpcNodePort }} |
| 148 | + nodePort: {{ .Values.metastore.grpcNodePort }} |
| 149 | + {{- end }} |
130 | 150 | selector: |
131 | 151 | {{- include "quickwit.metastore.selectorLabels" . | nindent 4 }} |
132 | 152 | --- |
@@ -156,9 +176,15 @@ spec: |
156 | 176 | targetPort: rest |
157 | 177 | protocol: TCP |
158 | 178 | name: rest |
| 179 | + {{- if and (or (eq (.Values.control_plane.serviceType | default .Values.service.type) "NodePort") (eq .Values.service.type "NodePort")) .Values.control_plane.restNodePort }} |
| 180 | + nodePort: {{ .Values.control_plane.restNodePort }} |
| 181 | + {{- end }} |
159 | 182 | - port: 7281 |
160 | 183 | targetPort: grpc |
161 | 184 | name: grpc |
| 185 | + {{- if and (or (eq (.Values.control_plane.serviceType | default .Values.service.type) "NodePort") (eq .Values.service.type "NodePort")) .Values.control_plane.grpcNodePort }} |
| 186 | + nodePort: {{ .Values.control_plane.grpcNodePort }} |
| 187 | + {{- end }} |
162 | 188 | selector: |
163 | 189 | {{- include "quickwit.control_plane.selectorLabels" . | nindent 4 }} |
164 | 190 |
|
|
0 commit comments