Skip to content

Commit

Permalink
BREAKING CHANGE: Adjust Metrics and Webhook service port to align wit…
Browse files Browse the repository at this point in the history
…h pod ports (#4142)

Co-authored-by: Jonathan Innis <jonathan.innis.ji@gmail.com>
  • Loading branch information
engedaam and jonathan-innis committed Jun 27, 2023
1 parent a473b92 commit 0d68775
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/karpenter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ spec:
type: ClusterIP
ports:
- name: http-metrics
port: 8000
port: {{ .Values.controller.metrics.port }}
targetPort: http-metrics
protocol: TCP
- name: https-webhook
port: 443
port: {{ .Values.webhook.port }}
targetPort: https-webhook
protocol: TCP
selector:
Expand Down
2 changes: 1 addition & 1 deletion website/content/en/preview/upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Snapshot releases are tagged with the git commit hash prefixed by the Karpenter
## Released Upgrade Notes

### Upgrading to v0.29.0+
* Karpenter has changed the default metrics service port from 8080 to 8000. In `v0.28.0`, the Karpenter pod port was changed to 8000, but referenced the service by name, allowing users to scrape the service at port 8080 for metrics. `v0.29.0` aligns the two ports so that default service and default pod metrics ports are the same.
* Karpenter has changed the default metrics service port from 8080 to 8000 and the default webhook service port from 443 to 8443. In `v0.28.0`, the Karpenter pod port was changed to 8000, but referenced the service by name, allowing users to scrape the service at port 8080 for metrics. `v0.29.0` aligns the two ports so that service and pod metrics ports are the same. These ports are set by the `controller.metrics.port` and `webhook.port` helm chart values, so if you have previously set these to non-default values, you may need to update your Prometheus scraper to match these new values.

### Upgrading to v0.28.0+

Expand Down

0 comments on commit 0d68775

Please sign in to comment.