Skip to content

Commit

Permalink
Merge pull request #5168 from whitewindmills/helm-metrics-port
Browse files Browse the repository at this point in the history
Expose metrics port for helm installation
  • Loading branch information
karmada-bot authored Jul 11, 2024
2 parents 7982275 + bc5f2a6 commit 71de3dc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
- name: {{ include "karmada.operator.fullname" . }}
image: {{ template "karmada.operator.image" . }}
imagePullPolicy: {{ .Values.operator.image.pullPolicy }}
ports:
- containerPort: 8080
name: metrics
protocol: TCP
command:
- /bin/karmada-operator
- --leader-elect-resource-namespace={{ .Release.Namespace }}
Expand Down
4 changes: 4 additions & 0 deletions charts/karmada/templates/karmada-descheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ spec:
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 5
ports:
- containerPort: 10358
name: metrics
protocol: TCP
volumeMounts:
- name: karmada-certs
mountPath: /etc/karmada/pki
Expand Down
4 changes: 4 additions & 0 deletions charts/karmada/templates/karmada-scheduler-estimator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ spec:
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 5
ports:
- containerPort: 10351
name: metrics
protocol: TCP
volumeMounts:
- name: karmada-certs
mountPath: /etc/karmada/pki
Expand Down
3 changes: 3 additions & 0 deletions charts/karmada/templates/karmada-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ spec:
- --cert-dir=/var/serving-cert
ports:
- containerPort: 8443
- containerPort: 8080
name: metrics
protocol: TCP
volumeMounts:
{{- include "karmada.kubeconfig.volumeMount" . | nindent 12 }}
- name: {{ $name }}-webhook-cert-secret
Expand Down

0 comments on commit 71de3dc

Please sign in to comment.