Merge pull request #5168 from whitewindmills/helm-metrics-port

Expose metrics port for helm installation
This commit is contained in:
karmada-bot 2024-07-11 09:24:04 +08:00 committed by GitHub
commit 71de3dc022
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 0 deletions

View File

@ -36,6 +36,10 @@ spec:
- name: {{ include "karmada.operator.fullname" . }} - name: {{ include "karmada.operator.fullname" . }}
image: {{ template "karmada.operator.image" . }} image: {{ template "karmada.operator.image" . }}
imagePullPolicy: {{ .Values.operator.image.pullPolicy }} imagePullPolicy: {{ .Values.operator.image.pullPolicy }}
ports:
- containerPort: 8080
name: metrics
protocol: TCP
command: command:
- /bin/karmada-operator - /bin/karmada-operator
- --leader-elect-resource-namespace={{ .Release.Namespace }} - --leader-elect-resource-namespace={{ .Release.Namespace }}

View File

@ -65,6 +65,10 @@ spec:
initialDelaySeconds: 15 initialDelaySeconds: 15
periodSeconds: 15 periodSeconds: 15
timeoutSeconds: 5 timeoutSeconds: 5
ports:
- containerPort: 10358
name: metrics
protocol: TCP
volumeMounts: volumeMounts:
- name: karmada-certs - name: karmada-certs
mountPath: /etc/karmada/pki mountPath: /etc/karmada/pki

View File

@ -63,6 +63,10 @@ spec:
initialDelaySeconds: 15 initialDelaySeconds: 15
periodSeconds: 15 periodSeconds: 15
timeoutSeconds: 5 timeoutSeconds: 5
ports:
- containerPort: 10351
name: metrics
protocol: TCP
volumeMounts: volumeMounts:
- name: karmada-certs - name: karmada-certs
mountPath: /etc/karmada/pki mountPath: /etc/karmada/pki

View File

@ -55,6 +55,9 @@ spec:
- --cert-dir=/var/serving-cert - --cert-dir=/var/serving-cert
ports: ports:
- containerPort: 8443 - containerPort: 8443
- containerPort: 8080
name: metrics
protocol: TCP
volumeMounts: volumeMounts:
{{- include "karmada.kubeconfig.volumeMount" . | nindent 12 }} {{- include "karmada.kubeconfig.volumeMount" . | nindent 12 }}
- name: {{ $name }}-webhook-cert-secret - name: {{ $name }}-webhook-cert-secret