From 19308c791f823a82ab028edf1446039070b43a2a Mon Sep 17 00:00:00 2001 From: Rub21 Date: Fri, 25 Oct 2024 09:51:33 -0500 Subject: [PATCH] Remove tiler visor --- .../tiler-visor/tiler-visor-deployment.yaml | 52 ------------------- .../tiler-visor/tiler-visor-ingress.yaml | 26 ---------- .../tiler-visor/tiler-visor-service.yaml | 43 --------------- 3 files changed, 121 deletions(-) delete mode 100644 osm-seed/templates/tiler-visor/tiler-visor-deployment.yaml delete mode 100644 osm-seed/templates/tiler-visor/tiler-visor-ingress.yaml delete mode 100644 osm-seed/templates/tiler-visor/tiler-visor-service.yaml diff --git a/osm-seed/templates/tiler-visor/tiler-visor-deployment.yaml b/osm-seed/templates/tiler-visor/tiler-visor-deployment.yaml deleted file mode 100644 index 08398918..00000000 --- a/osm-seed/templates/tiler-visor/tiler-visor-deployment.yaml +++ /dev/null @@ -1,52 +0,0 @@ -{{- if .Values.tilerVisor.enabled -}} -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ template "osm-seed.fullname" . }}-tiler-visor - labels: - app: {{ template "osm-seed.name" . }} - component: tiler-visor-deployment - environment: {{ .Values.environment }} - release: {{ .Release.Name }} -spec: - replicas: {{ .Values.tilerVisor.replicaCount }} - selector: - matchLabels: - app: {{ template "osm-seed.name" . }} - release: {{ .Release.Name }} - run: {{ .Release.Name }}-tiler-visor - template: - metadata: - labels: - app: {{ template "osm-seed.name" . }} - release: {{ .Release.Name }} - run: {{ .Release.Name }}-tiler-visor - spec: - containers: - - name: {{ .Chart.Name }}-tiler-visor - image: "{{ .Values.tilerVisor.image.name }}:{{ .Values.tilerVisor.image.tag }}" - ports: - - name: http - containerPort: {{ .Values.tilerVisor.env.TILER_VISOR_PORT }} - protocol: TCP - {{- if .Values.tilerVisor.resources.enabled }} - resources: - requests: - memory: {{ .Values.tilerVisor.resources.requests.memory }} - cpu: {{ .Values.tilerVisor.resources.requests.cpu }} - limits: - memory: {{ .Values.tilerVisor.resources.limits.memory }} - cpu: {{ .Values.tilerVisor.resources.limits.cpu }} - {{- end }} - env: - - name: TILER_SERVER_HOST - value: {{ .Values.tilerVisor.staticIp }} - - name: TILER_SERVER_PORT - value: {{ .Values.tilerServer.env.TILER_SERVER_PORT | quote }} - - name: TILER_VISOR_PROTOCOL - value: {{ .Values.tilerVisor.env.TILER_VISOR_PROTOCOL }} - - name: TILER_VISOR_HOST - value: {{ .Values.tilerVisor.staticIp }} - - name: TILER_VISOR_PORT - value: {{ .Values.tilerVisor.env.TILER_VISOR_PORT | quote }} -{{- end }} diff --git a/osm-seed/templates/tiler-visor/tiler-visor-ingress.yaml b/osm-seed/templates/tiler-visor/tiler-visor-ingress.yaml deleted file mode 100644 index 836ca7da..00000000 --- a/osm-seed/templates/tiler-visor/tiler-visor-ingress.yaml +++ /dev/null @@ -1,26 +0,0 @@ -{{- if and .Values.tilerVisor.enabled (eq .Values.serviceType "ClusterIP") }} -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: {{ template "osm-seed.fullname" . }}-ingress-tiler-visor - annotations: - kubernetes.io/ingress.class: nginx - cert-manager.io/cluster-issuer: letsencrypt-prod-issuer -spec: - tls: - - hosts: - - tiler-visor.{{ .Values.domain }} - secretName: {{ template "osm-seed.fullname" . }}-secret-tiler-visor - - rules: - - host: tiler-visor.{{ .Values.domain }} - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: {{ template "osm-seed.fullname" . }}-tiler-visor - port: - number: 80 -{{- end }} \ No newline at end of file diff --git a/osm-seed/templates/tiler-visor/tiler-visor-service.yaml b/osm-seed/templates/tiler-visor/tiler-visor-service.yaml deleted file mode 100644 index d880f362..00000000 --- a/osm-seed/templates/tiler-visor/tiler-visor-service.yaml +++ /dev/null @@ -1,43 +0,0 @@ -{{- if .Values.tilerVisor.enabled -}} -apiVersion: v1 -kind: Service -metadata: - name: {{ template "osm-seed.fullname" . }}-tiler-visor - labels: - app: {{ template "osm-seed.name" . }} - component: tiler-visor-service - environment: {{ .Values.environment }} - release: {{ .Release.Name }} - annotations: - {{- 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 - {{- end }} - {{- if eq .Values.serviceType "ClusterIP" }} - kubernetes.io/ingress.class: nginx - cert-manager.io/cluster-issuer: letsencrypt-prod-issuer - {{- else }} - fake.annotation: fake - {{- end }} - {{- with .Values.tilerVisor.serviceAnnotations }} - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - type: {{ .Values.serviceType }} - ports: - - port: 80 - targetPort: http - protocol: TCP - name: http - {{- 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-visor -{{- end }} \ No newline at end of file