feat(argo-rollouts): Add possibility to configure healthz and metrics ports to be compatible with Istio (#1976)
This commit is contained in:
parent
5766533626
commit
b651465fb2
6 changed files with 26 additions and 10 deletions
|
|
@ -37,6 +37,8 @@ spec:
|
|||
containers:
|
||||
- image: "{{ .Values.controller.image.registry }}/{{ .Values.controller.image.repository }}:{{ default .Chart.AppVersion .Values.controller.image.tag }}"
|
||||
args:
|
||||
- --healthzPort={{ .Values.controller.containerPorts.healthz }}
|
||||
- --metricsport={{ .Values.controller.containerPorts.metrics }}
|
||||
{{- if not .Values.clusterInstall }}
|
||||
- --namespaced
|
||||
{{- end }}
|
||||
|
|
@ -53,9 +55,9 @@ spec:
|
|||
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
||||
name: argo-rollouts
|
||||
ports:
|
||||
- containerPort: 8090
|
||||
- containerPort: {{ .Values.controller.containerPorts.metrics }}
|
||||
name: metrics
|
||||
- containerPort: 8080
|
||||
- containerPort: {{ .Values.controller.containerPorts.healthz }}
|
||||
name: healthz
|
||||
livenessProbe:
|
||||
{{- toYaml .Values.controller.livenessProbe | nindent 10 }}
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@ metadata:
|
|||
{{- end }}
|
||||
spec:
|
||||
ports:
|
||||
- name: metrics
|
||||
- name: {{ .Values.controller.metrics.service.portName }}
|
||||
protocol: TCP
|
||||
port: 8090
|
||||
targetPort: 8090
|
||||
port: {{ .Values.controller.metrics.service.port }}
|
||||
targetPort: metrics
|
||||
selector:
|
||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ metadata:
|
|||
{{- end }}
|
||||
spec:
|
||||
endpoints:
|
||||
- port: metrics
|
||||
- port: {{ .Values.controller.metrics.service.portName }}
|
||||
{{- with .Values.controller.metrics.serviceMonitor.relabelings }}
|
||||
relabelings:
|
||||
{{- toYaml . | nindent 6 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue