Skip to content

Commit

Permalink
Remove 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 3922b6b commit 2906caa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
3 changes: 0 additions & 3 deletions osm-seed/templates/tiler-server/tiler-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ spec:
- name: http
containerPort: {{ .Values.tilerServer.env.TILER_SERVER_PORT }}
protocol: TCP
- name: prometheus
containerPort: 9091
protocol: TCP
livenessProbe:
httpGet:
path: /
Expand Down
27 changes: 4 additions & 23 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,32 +30,13 @@ 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 }}
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
{{- end }}

selector:
app: {{ template "osm-seed.name" . }}
release: {{ .Release.Name }}
Expand Down

0 comments on commit 2906caa

Please sign in to comment.