Skip to content

Commit a6eeda6

Browse files
authored
Merge pull request #491 from MaxFedotov/issues/490
✨ expose metrics port in operator deployment
2 parents 1429a32 + 6d78624 commit a6eeda6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

hack/charts/cluster-api-operator/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ spec:
9595
- containerPort: 9443
9696
name: webhook-server
9797
protocol: TCP
98+
- containerPort: {{ ( split ":" $.Values.metricsBindAddr)._1 | int }}
99+
name: metrics
100+
protocol: TCP
98101
{{- with .Values.resources.manager }}
99102
resources:
100103
{{- toYaml . | nindent 12 }}

test/e2e/resources/full-chart-install.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14967,6 +14967,9 @@ spec:
1496714967
- containerPort: 9443
1496814968
name: webhook-server
1496914969
protocol: TCP
14970+
- containerPort: 8080
14971+
name: metrics
14972+
protocol: TCP
1497014973
resources:
1497114974
limits:
1497214975
cpu: 100m

0 commit comments

Comments
 (0)