Skip to content

Commit

Permalink
fix metric scraping for helm chart (#147)
Browse files Browse the repository at this point in the history
* remove kube-rbac-proxy

* fix helm chart
  • Loading branch information
BojanZelic authored Jan 10, 2025
1 parent 72b6d83 commit df7b8e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
2 changes: 1 addition & 1 deletion config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
endpoints:
- path: /metrics
port: https # Ensure this is the name of the port that exposes HTTPS metrics
port: 8443
scheme: https
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
tlsConfig:
Expand Down
27 changes: 3 additions & 24 deletions helm/cloudflare-zero-trust-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,15 @@ spec:
values:
- amd64
- arm64
- ppc64le
- s390x
- key: kubernetes.io/os
operator: In
values:
- linux
containers:
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
- --logtostderr=true
- --v=0
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
name: kube-rbac-proxy
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 8443
name: https
protocol: TCP
resources:
{{- toYaml .Values.proxy.resources | nindent 12 }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
- args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
- --leader-elect
- --metrics-bind-address=:8443
- --leader-elect
- --health-probe-bind-address=:8081
command:
- /manager
env:
Expand Down

0 comments on commit df7b8e7

Please sign in to comment.