Allow server service port names to be configured.
Allows to route traffic via istio to split gRPC from http
This commit is contained in:
parent
ab83169c2d
commit
8ead2ffefd
3 changed files with 6 additions and 2 deletions
|
@ -233,6 +233,8 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i
|
|||
| server.service.labels | Server service labels | `{}` |
|
||||
| server.service.servicePortHttp | Server service http port | `80` |
|
||||
| server.service.servicePortHttps | Server service https port | `443` |
|
||||
| server.service.servicePortHttpName | Server service http port name, can be used to route traffic via istio | `http` |
|
||||
| server.service.servicePortHttpsName | Server service https port name, can be used to route traffic via istio | `https` |
|
||||
| server.service.loadBalancerSourceRanges | Source IP ranges to allow access to service from. | `[]` |
|
||||
| server.service.type | Server service type | `"ClusterIP"` |
|
||||
| server.serviceAccount.create | Create server service account | `true` |
|
||||
|
|
|
@ -21,11 +21,11 @@ metadata:
|
|||
spec:
|
||||
type: {{ .Values.server.service.type }}
|
||||
ports:
|
||||
- name: http
|
||||
- name: {{ .Values.server.service.servicePortHttpName }}
|
||||
protocol: TCP
|
||||
port: {{ .Values.server.service.servicePortHttp }}
|
||||
targetPort: {{ .Values.server.name }}
|
||||
- name: https
|
||||
- name: {{ .Values.server.service.servicePortHttpsName }}
|
||||
protocol: TCP
|
||||
port: {{ .Values.server.service.servicePortHttps }}
|
||||
targetPort: {{ .Values.server.name }}
|
||||
|
|
|
@ -404,6 +404,8 @@ server:
|
|||
type: ClusterIP
|
||||
servicePortHttp: 80
|
||||
servicePortHttps: 443
|
||||
servicePortHttpName: http
|
||||
servicePortHttpsName: https
|
||||
loadBalancerIP: ""
|
||||
loadBalancerSourceRanges: []
|
||||
|
||||
|
|
Loading…
Reference in a new issue