Skip to content

Commit

Permalink
Merge pull request karmada-io#5465 from chaosi-zju/opera
Browse files Browse the repository at this point in the history
Expose metrics port for operator installation
  • Loading branch information
karmada-bot committed Aug 30, 2024
2 parents e225e2c + aef7047 commit 2d92fed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions operator/pkg/controlplane/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ spec:
command:
- /bin/karmada-controller-manager
- --kubeconfig=/etc/karmada/kubeconfig
- --metrics-bind-address=:8080
- --cluster-status-update-frequency=10s
- --failover-eviction-timeout=30s
- --leader-elect-resource-namespace={{ .SystemNamespace }}
Expand All @@ -142,6 +143,10 @@ spec:
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 5
ports:
- containerPort: 8080
name: metrics
protocol: TCP
volumeMounts:
- name: kubeconfig
subPath: kubeconfig
Expand Down Expand Up @@ -200,6 +205,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 Expand Up @@ -263,6 +272,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 operator/pkg/controlplane/webhook/mainfests.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,17 @@ spec:
- /bin/karmada-webhook
- --kubeconfig=/etc/karmada/kubeconfig
- --bind-address=0.0.0.0
- --metrics-bind-address=:8080
- --default-not-ready-toleration-seconds=30
- --default-unreachable-toleration-seconds=30
- --secure-port=8443
- --cert-dir=/var/serving-cert
- --v=4
ports:
- containerPort: 8443
- containerPort: 8080
name: metrics
protocol: TCP
volumeMounts:
- name: kubeconfig
subPath: kubeconfig
Expand Down

0 comments on commit 2d92fed

Please sign in to comment.