Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
chore: remove metrics service and kube-rbac-proxy image (#261)
Browse files Browse the repository at this point in the history
* chore: remove metrics service and kube-rbac-proxy image

* f
  • Loading branch information
emosbaugh authored Jul 29, 2024
1 parent f9a5596 commit 70ecb80
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
{{- if .Values.metrics.enabled }}
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
Expand All @@ -45,6 +46,7 @@ spec:
capabilities:
drop:
- ALL
{{- end }}
- args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.metrics.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand All @@ -10,3 +11,4 @@ rules:
- /metrics
verbs:
- get
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.metrics.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -12,3 +13,4 @@ spec:
protocol: TCP
targetPort: https
selector: {{- include "embedded-cluster-operator.selectorLabels" $ | nindent 4 }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.metrics.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand All @@ -18,3 +19,4 @@ rules:
- subjectaccessreviews
verbs:
- create
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.metrics.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -13,3 +14,4 @@ subjects:
- kind: ServiceAccount
name: {{ include "embedded-cluster-operator.serviceAccountName" $ | trunc 63 | trimAll "-"}}
namespace: {{ .Release.Namespace }}
{{- end }}
5 changes: 4 additions & 1 deletion charts/embedded-cluster-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ image:
tag: 0.0.8
pullPolicy: IfNotPresent

kubeProxyImage: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
utilsImage: busybox:latest

extraEnv: []
Expand Down Expand Up @@ -59,6 +58,10 @@ affinity:
values:
- linux

metrics:
enabled: false
kubeProxyImage: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1

crds:
enabled: true

Expand Down
5 changes: 4 additions & 1 deletion charts/embedded-cluster-operator/values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ image:
tag: ${OPERATOR_IMAGE_TAG}
pullPolicy: IfNotPresent

kubeProxyImage: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1
utilsImage: busybox:latest

extraEnv: []
Expand Down Expand Up @@ -58,6 +57,10 @@ affinity:
values:
- linux

metrics:
enabled: false
kubeProxyImage: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.1

crds:
enabled: true

Expand Down

0 comments on commit 70ecb80

Please sign in to comment.