Allow to add annotations to router service in helm chart (#1338)
This commit is contained in:
committed by
Ta-Ching Chen
parent
c61442ee76
commit
f12880fb5c
@@ -67,6 +67,7 @@ Parameter | Description | Default
|
|||||||
`extraCoreComponentPodConfig` | Extend the container specs for the core fission pods. Can be used to add things like affinty/tolerations/nodeSelectors/etc. | None
|
`extraCoreComponentPodConfig` | Extend the container specs for the core fission pods. Can be used to add things like affinty/tolerations/nodeSelectors/etc. | None
|
||||||
`router.svcAddressMaxRetries` | Max retries times for router to retry on a certain service URL returns from cache/executor | `5`
|
`router.svcAddressMaxRetries` | Max retries times for router to retry on a certain service URL returns from cache/executor | `5`
|
||||||
`router.svcAddressUpdateTimeout` | The length of update lock expiry time for router to get a service URL returns from executor | `30`
|
`router.svcAddressUpdateTimeout` | The length of update lock expiry time for router to get a service URL returns from executor | `30`
|
||||||
|
`router.svcAnnotations` | Annotations for router service | None
|
||||||
`router.roundTrip.disableKeepAlive` | Disable transport keep-alive for fast switching function version | `true`
|
`router.roundTrip.disableKeepAlive` | Disable transport keep-alive for fast switching function version | `true`
|
||||||
`router.roundTrip.keepAliveTime` | The keep-alive period for an active network connection to function pod | `30s`
|
`router.roundTrip.keepAliveTime` | The keep-alive period for an active network connection to function pod | `30s`
|
||||||
`router.roundTrip.timeout` | HTTP transport request timeout | `50ms`
|
`router.roundTrip.timeout` | HTTP transport request timeout | `50ms`
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ metadata:
|
|||||||
svc: router
|
svc: router
|
||||||
application: fission-router
|
application: fission-router
|
||||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||||
|
{{- if .Values.router.svcAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{ toYaml .Values.router.svcAnnotations | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .Values.routerServiceType }}
|
type: {{ .Values.routerServiceType }}
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ logger:
|
|||||||
router:
|
router:
|
||||||
svcAddressMaxRetries: 5
|
svcAddressMaxRetries: 5
|
||||||
svcAddressUpdateTimeout: 30s
|
svcAddressUpdateTimeout: 30s
|
||||||
|
## Add annotations for router
|
||||||
|
# svcAnnotations:
|
||||||
|
# cloud.google.com/load-balancer-type: Internal
|
||||||
roundTrip:
|
roundTrip:
|
||||||
## If true, router will disable the HTTP keep-alive which result in performance degradation.
|
## If true, router will disable the HTTP keep-alive which result in performance degradation.
|
||||||
## But it ensures that router can redirect new coming requests to new function pods.
|
## But it ensures that router can redirect new coming requests to new function pods.
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ metadata:
|
|||||||
svc: router
|
svc: router
|
||||||
application: fission-router
|
application: fission-router
|
||||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||||
|
{{- if .Values.router.svcAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{ toYaml .Values.router.svcAnnotations | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .Values.routerServiceType }}
|
type: {{ .Values.routerServiceType }}
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ enableIstio: false
|
|||||||
router:
|
router:
|
||||||
svcAddressMaxRetries: 5
|
svcAddressMaxRetries: 5
|
||||||
svcAddressUpdateTimeout: 30s
|
svcAddressUpdateTimeout: 30s
|
||||||
|
## Add annotations for router
|
||||||
|
# svcAnnotations:
|
||||||
|
# cloud.google.com/load-balancer-type: Internal
|
||||||
roundTrip:
|
roundTrip:
|
||||||
## If true, router will disable the HTTP keep-alive which result in performance degradation.
|
## If true, router will disable the HTTP keep-alive which result in performance degradation.
|
||||||
## But it ensures that router can redirect new coming requests to new function pods.
|
## But it ensures that router can redirect new coming requests to new function pods.
|
||||||
|
|||||||
Reference in New Issue
Block a user