feat(argo-rollouts): Add possibility to configure healthz and metrics ports to be compatible with Istio
Signed-off-by: Yevhen Tienkaiev <hronom@gmail.com>
This commit is contained in:
parent
429b474a4f
commit
b7da670895
6 changed files with 25 additions and 8 deletions
|
@ -15,5 +15,7 @@ maintainers:
|
||||||
url: https://argoproj.github.io/
|
url: https://argoproj.github.io/
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
|
- kind: added
|
||||||
|
description: Ability to configure metrics and healthz ports
|
||||||
- kind: added
|
- kind: added
|
||||||
description: Ability to provide additional volumes and volumeMounts
|
description: Ability to provide additional volumes and volumeMounts
|
||||||
|
|
|
@ -79,6 +79,8 @@ For full list of changes please check ArtifactHub [changelog].
|
||||||
| controller.extraArgs | list | `[]` | Additional command line arguments to pass to rollouts-controller. A list of flags. |
|
| controller.extraArgs | list | `[]` | Additional command line arguments to pass to rollouts-controller. A list of flags. |
|
||||||
| controller.extraContainers | list | `[]` | Literal yaml for extra containers to be added to controller deployment. |
|
| controller.extraContainers | list | `[]` | Literal yaml for extra containers to be added to controller deployment. |
|
||||||
| controller.extraEnv | list | `[]` | Additional environment variables for rollouts-controller. A list of name/value maps. |
|
| controller.extraEnv | list | `[]` | Additional environment variables for rollouts-controller. A list of name/value maps. |
|
||||||
|
| controller.healthz.port | int | `8080` | |
|
||||||
|
| controller.healthz.portName | string | `"healthz"` | |
|
||||||
| controller.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
|
| controller.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
|
||||||
| controller.image.registry | string | `"quay.io"` | Registry to use |
|
| controller.image.registry | string | `"quay.io"` | Registry to use |
|
||||||
| controller.image.repository | string | `"argoproj/argo-rollouts"` | Repository to use |
|
| controller.image.repository | string | `"argoproj/argo-rollouts"` | Repository to use |
|
||||||
|
@ -86,6 +88,9 @@ For full list of changes please check ArtifactHub [changelog].
|
||||||
| controller.initContainers | list | `[]` | Init containers to add to the rollouts controller pod |
|
| controller.initContainers | list | `[]` | Init containers to add to the rollouts controller pod |
|
||||||
| controller.livenessProbe | object | See [values.yaml] | Configure liveness [probe] for the controller |
|
| controller.livenessProbe | object | See [values.yaml] | Configure liveness [probe] for the controller |
|
||||||
| controller.metrics.enabled | bool | `false` | Deploy metrics service |
|
| controller.metrics.enabled | bool | `false` | Deploy metrics service |
|
||||||
|
| controller.metrics.service.port | int | `8090` | |
|
||||||
|
| controller.metrics.service.portName | string | `"metrics"` | |
|
||||||
|
| controller.metrics.service.targetPort | int | `8090` | |
|
||||||
| controller.metrics.serviceMonitor.additionalAnnotations | object | `{}` | Annotations to be added to the ServiceMonitor |
|
| controller.metrics.serviceMonitor.additionalAnnotations | object | `{}` | Annotations to be added to the ServiceMonitor |
|
||||||
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | Labels to be added to the ServiceMonitor |
|
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | Labels to be added to the ServiceMonitor |
|
||||||
| controller.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
|
| controller.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
|
||||||
|
|
|
@ -37,6 +37,8 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ default .Chart.AppVersion .Values.controller.image.tag }}"
|
- image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ default .Chart.AppVersion .Values.controller.image.tag }}"
|
||||||
args:
|
args:
|
||||||
|
- --healthzPort={{ .Values.controller.healthz.port }}
|
||||||
|
- --metricsport={{ .Values.controller.metrics.service.port }}
|
||||||
{{- if not .Values.clusterInstall }}
|
{{- if not .Values.clusterInstall }}
|
||||||
- --namespaced
|
- --namespaced
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -53,10 +55,10 @@ spec:
|
||||||
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
||||||
name: argo-rollouts
|
name: argo-rollouts
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8090
|
- containerPort: {{ .Values.controller.metrics.service.port }}
|
||||||
name: metrics
|
name: {{ .Values.controller.metrics.service.portName }}
|
||||||
- containerPort: 8080
|
- containerPort: {{ .Values.controller.healthz.port }}
|
||||||
name: healthz
|
name: {{ .Values.controller.healthz.portName }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml .Values.controller.livenessProbe | nindent 10 }}
|
{{- toYaml .Values.controller.livenessProbe | nindent 10 }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
|
|
|
@ -13,10 +13,10 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: metrics
|
- name: {{ .Values.controller.metrics.service.portName }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 8090
|
port: {{ .Values.controller.metrics.service.port }}
|
||||||
targetPort: 8090
|
targetPort: {{ .Values.controller.metrics.service.targetPort }}
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}
|
||||||
|
|
|
@ -16,7 +16,7 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: {{ .Values.controller.metrics.service.portName }}
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
- {{ .Release.Namespace }}
|
- {{ .Release.Namespace }}
|
||||||
|
|
|
@ -106,9 +106,17 @@ controller:
|
||||||
# -- flag to enable creation of cluster controller role (requires cluster RBAC)
|
# -- flag to enable creation of cluster controller role (requires cluster RBAC)
|
||||||
createClusterRole: true
|
createClusterRole: true
|
||||||
|
|
||||||
|
healthz:
|
||||||
|
portName: healthz
|
||||||
|
port: 8080
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
# -- Deploy metrics service
|
# -- Deploy metrics service
|
||||||
enabled: false
|
enabled: false
|
||||||
|
service:
|
||||||
|
portName: metrics
|
||||||
|
port: 8090
|
||||||
|
targetPort: 8090
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
# -- Enable a prometheus ServiceMonitor
|
# -- Enable a prometheus ServiceMonitor
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
Loading…
Reference in a new issue