Skip to content

Commit

Permalink
Merge pull request #16687 from rifelpet/automated-cherry-pick-of-#166…
Browse files Browse the repository at this point in the history
…82-origin-release-1.29

Automated cherry pick of #16682: Add the hubble-metrics service for cilium
  • Loading branch information
k8s-ci-robot authored Jul 18, 2024
2 parents 550f558 + a78c4de commit 26c33e3
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ spec:
enableUnreachableRoutes: false
hubble:
enabled: true
metrics:
- drop
identityAllocationMode: crd
identityChangeGracePeriod: 5s
ingress:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ spec:
version: 9.99.0
- id: k8s-1.16
manifest: networking.cilium.io/k8s-1.16-v1.15.yaml
manifestHash: 45ecd4b0c81a42b7fe61b223bc4fc869f89c9aae2a1863235782134e346c7151
manifestHash: 3fdb869ea26ce50ae6db32e1b997749f18cbb30ebf31468f2c5da2c692681a54
name: networking.cilium.io
needsPKI: true
needsRollingUpdate: all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ data:
external-envoy-proxy: "false"
hubble-disable-tls: "false"
hubble-listen-address: :4244
hubble-metrics: drop
hubble-metrics-server: :9091
hubble-socket-path: /var/run/cilium/hubble.sock
hubble-tls-cert-file: /var/lib/cilium/tls/hubble/tls.crt
hubble-tls-client-ca-files: /var/lib/cilium/tls/hubble/ca.crt
Expand Down Expand Up @@ -678,6 +680,35 @@ spec:

---

apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/port: "9965"
prometheus.io/scrape: "true"
creationTimestamp: null
labels:
addon.kops.k8s.io/name: networking.cilium.io
app.kubernetes.io/managed-by: kops
app.kubernetes.io/name: hubble
app.kubernetes.io/part-of: cilium
k8s-app: hubble
role.kubernetes.io/networking: "1"
name: hubble-metrics
namespace: kube-system
spec:
clusterIP: None
ports:
- name: hubble-metrics
port: 9965
protocol: TCP
targetPort: hubble-metrics
selector:
k8s-app: cilium
type: ClusterIP

---

apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -800,6 +831,10 @@ spec:
hostPort: 4244
name: peer-service
protocol: TCP
- containerPort: 9091
hostPort: 9091
name: hubble-metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ spec:
sharedLoadBalancerServiceName: private-ingress
hubble:
enabled: true
metrics:
- drop
nonMasqueradeCIDR: 100.64.0.0/10
sshAccess:
- 0.0.0.0/0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,32 @@ subsets:
{{ end }}
{{ end }}
{{ if WithDefaultBool .Hubble.Enabled false }}
{{ if .Hubble.Metrics }}
---
# Source: cilium/templates/hubble/metrics-service.yaml
apiVersion: v1
kind: Service
metadata:
name: hubble-metrics
namespace: kube-system
labels:
k8s-app: hubble
app.kubernetes.io/name: hubble
app.kubernetes.io/part-of: cilium
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9965"
spec:
clusterIP: None
type: ClusterIP
ports:
- name: hubble-metrics
port: 9965
protocol: TCP
targetPort: hubble-metrics
selector:
k8s-app: cilium
{{ end }}
---
# Source: cilium/templates/hubble-relay-service.yaml
kind: Service
Expand Down

0 comments on commit 26c33e3

Please sign in to comment.