Skip to content

Commit

Permalink
use service for metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
waveywaves committed May 14, 2024
1 parent 3df6ae9 commit e5f0516
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
labels: {{ include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: manager
app.kubernetes.io/part-of: uffizzi
name: {{ include "common.names.fullname" . | trunc 55 | trimSuffix "-" }}-metrics
namespace: {{ .Release.Namespace | quote }}
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
4 changes: 4 additions & 0 deletions chart/templates/controller-manager_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ spec:
command:
- /manager
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
ports:
- containerPort: 8080
name: http
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
Expand Down

0 comments on commit e5f0516

Please sign in to comment.