Skip to content

Commit

Permalink
Add service for prometheus - tiler server
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 15, 2024
1 parent 8669f20 commit 3922b6b
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions osm-seed/templates/tiler-server/tiler-server-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{- if and (eq .Values.serviceType "LoadBalancer") .Values.AWS_SSL_ARN }}
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {{ .Values.AWS_SSL_ARN }}
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https
{{- end }}
{{- if eq .Values.serviceType "ClusterIP" }}
kubernetes.io/ingress.class: nginx
Expand All @@ -30,13 +30,32 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if and (eq .Values.serviceType "LoadBalancer") .Values.AWS_SSL_ARN }}
{{- if and (eq .Values.serviceType "LoadBalancer") .Values.AWS_SSL_ARN }}
- port: 443
targetPort: http
protocol: TCP
name: https
{{- end }}

{{- end }}
selector:
app: {{ template "osm-seed.name" . }}
release: {{ .Release.Name }}
run: {{ .Release.Name }}-tiler-server
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-tiler-server-prometheus
labels:
app: {{ template "osm-seed.name" . }}
component: tiler-server-prometheus-service
release: {{ .Release.Name }}
spec:
type: {{ .Values.tilerServer.prometheus.serviceType | default "ClusterIP" }}
ports:
- name: prometheus
port: 9091
targetPort: prometheus
protocol: TCP
selector:
app: {{ template "osm-seed.name" . }}
release: {{ .Release.Name }}
Expand Down

0 comments on commit 3922b6b

Please sign in to comment.