mirror of https://github.com/kubernetes/kops.git
Use the same port for hubble-metrics that is used by cilium
Cilium uses port 9965 for hubble-metrics. See https://docs.cilium.io/en/stable/observability/metrics/#hubble-metrics
This commit is contained in:
parent
163faa94b9
commit
4a586b0dfc
|
@ -5,9 +5,8 @@ so we can avoid port collisions.
|
||||||
|
|
||||||
See also pkg/wellknownports/wellknownports.go
|
See also pkg/wellknownports/wellknownports.go
|
||||||
|
|
||||||
|
|
||||||
| Port | Description |
|
| Port | Description |
|
||||||
|------|------------------------------------------|
|
| ---- | ---------------------------------------- |
|
||||||
| 22 | SSH |
|
| 22 | SSH |
|
||||||
| 443 | Kubernetes API |
|
| 443 | Kubernetes API |
|
||||||
| 179 | Calico |
|
| 179 | Calico |
|
||||||
|
@ -31,4 +30,4 @@ See also pkg/wellknownports/wellknownports.go
|
||||||
| 4789 | VXLAN |
|
| 4789 | VXLAN |
|
||||||
| 6942 | Cilium operator prometheus port |
|
| 6942 | Cilium operator prometheus port |
|
||||||
| 9090 | Cilium prometheus port |
|
| 9090 | Cilium prometheus port |
|
||||||
| 9091 | Cilium hubble prometheus port |
|
| 9965 | Cilium hubble prometheus port |
|
||||||
|
|
|
@ -71,7 +71,7 @@ const (
|
||||||
CiliumPrometheusPort = 9090
|
CiliumPrometheusPort = 9090
|
||||||
|
|
||||||
// CiliumHubblePrometheusPort is the default port where Hubble exposes metrics
|
// CiliumHubblePrometheusPort is the default port where Hubble exposes metrics
|
||||||
CiliumHubblePrometheusPort = 9091
|
CiliumHubblePrometheusPort = 9965
|
||||||
|
|
||||||
// VxlanUDP is the port used by VXLAN tunneling over UDP
|
// VxlanUDP is the port used by VXLAN tunneling over UDP
|
||||||
VxlanUDP = 8472
|
VxlanUDP = 8472
|
||||||
|
|
|
@ -79,7 +79,7 @@ data:
|
||||||
hubble-disable-tls: "false"
|
hubble-disable-tls: "false"
|
||||||
hubble-listen-address: :4244
|
hubble-listen-address: :4244
|
||||||
hubble-metrics: drop
|
hubble-metrics: drop
|
||||||
hubble-metrics-server: :9091
|
hubble-metrics-server: :9965
|
||||||
hubble-socket-path: /var/run/cilium/hubble.sock
|
hubble-socket-path: /var/run/cilium/hubble.sock
|
||||||
hubble-tls-cert-file: /var/lib/cilium/tls/hubble/server.crt
|
hubble-tls-cert-file: /var/lib/cilium/tls/hubble/server.crt
|
||||||
hubble-tls-client-ca-files: /var/lib/cilium/tls/hubble/client-ca.crt
|
hubble-tls-client-ca-files: /var/lib/cilium/tls/hubble/client-ca.crt
|
||||||
|
@ -863,8 +863,8 @@ spec:
|
||||||
hostPort: 4244
|
hostPort: 4244
|
||||||
name: peer-service
|
name: peer-service
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- containerPort: 9091
|
- containerPort: 9965
|
||||||
hostPort: 9091
|
hostPort: 9965
|
||||||
name: hubble-metrics
|
name: hubble-metrics
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
|
|
|
@ -334,7 +334,7 @@ data:
|
||||||
hubble-tls-key-file: /var/lib/cilium/tls/hubble/server.key
|
hubble-tls-key-file: /var/lib/cilium/tls/hubble/server.key
|
||||||
hubble-tls-client-ca-files: /var/lib/cilium/tls/hubble/client-ca.crt
|
hubble-tls-client-ca-files: /var/lib/cilium/tls/hubble/client-ca.crt
|
||||||
{{ if .Hubble.Metrics }}
|
{{ if .Hubble.Metrics }}
|
||||||
hubble-metrics-server: ":9091"
|
hubble-metrics-server: ":9965"
|
||||||
hubble-metrics:
|
hubble-metrics:
|
||||||
{{- range .Hubble.Metrics }}
|
{{- range .Hubble.Metrics }}
|
||||||
{{ . }}
|
{{ . }}
|
||||||
|
@ -1132,8 +1132,8 @@ spec:
|
||||||
hostPort: 4244
|
hostPort: 4244
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- if .Hubble.Metrics }}
|
{{- if .Hubble.Metrics }}
|
||||||
- containerPort: 9091
|
- containerPort: 9965
|
||||||
hostPort: 9091
|
hostPort: 9965
|
||||||
name: hubble-metrics
|
name: hubble-metrics
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in New Issue