Skip to content

Commit

Permalink
minecraft-server: Fix ServiceMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
0SkillAllLuck committed Aug 1, 2021
1 parent ec0b577 commit 7d9348b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/minecraft-server/questions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ questions:
type: string
label: Image Repository
- variable: image.tag
default: v0.1.6
default: v0.1.7
description: Image tag
type: string
label: Image tag
2 changes: 2 additions & 0 deletions charts/minecraft-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ spec:
ports:
- name: minecraft
containerPort: {{ .Values.service.port }}
- name: http
containerPort: 8080
- name: metrics
containerPort: {{ .Values.integrations.metrics.service.port }}
readinessProbe: {{ toYaml .Values.readinessProbe | nindent 10 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/minecraft-server/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{- end }}
spec:
endpoints:
- port: http
- port: metrics
path: /metrics
{{- with .Values.integrations.metrics.serviceMonitor.interval }}
interval: {{ . }}
Expand Down
6 changes: 3 additions & 3 deletions charts/minecraft-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ resources:
livenessProbe:
httpGet:
path: /health/live
port: metrics
port: http
periodSeconds: 5
timeoutSeconds: 1
failureThreshold: 5
Expand All @@ -449,7 +449,7 @@ livenessProbe:
readinessProbe:
httpGet:
path: /health/ready
port: metrics
port: http
periodSeconds: 5
timeoutSeconds: 1
failureThreshold: 5
Expand Down Expand Up @@ -499,7 +499,7 @@ integrations:
## Kubernetes svc type
##
type: ClusterIP
port: 8080
port: 9225
## Specify the nodePort value for the LoadBalancer and NodePort service types for the client port
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
##
Expand Down

0 comments on commit 7d9348b

Please sign in to comment.