From 047d0724fe751920060d87dc2df3dfd2dcfe8665 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Tue, 10 Dec 2019 19:38:05 +0100 Subject: [PATCH] Remove old lets encrypt stuff --- api/helm/templates/lets-encrypt-job.yaml | 39 -------------------- api/helm/templates/lets-encrypt-secret.yaml | 12 ------ api/helm/templates/lets-encrypt-service.yaml | 16 -------- 3 files changed, 67 deletions(-) delete mode 100644 api/helm/templates/lets-encrypt-job.yaml delete mode 100644 api/helm/templates/lets-encrypt-secret.yaml delete mode 100644 api/helm/templates/lets-encrypt-service.yaml diff --git a/api/helm/templates/lets-encrypt-job.yaml b/api/helm/templates/lets-encrypt-job.yaml deleted file mode 100644 index 1b94b04..0000000 --- a/api/helm/templates/lets-encrypt-job.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: {{ include "name" . }}-letsencrypt-job - labels: - app.kubernetes.io/name: {{ include "name" . }} - app.kubernetes.io/part-of: {{ include "name" . }} - helm.sh/chart: {{ include "chart" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/managed-by: {{ .Release.Service }} -spec: - template: - metadata: - name: {{ include "name" . }}-letsencrypt - labels: - app: {{ include "name" . }}-letsencrypt - spec: - containers: - # Bash script that starts an http server and launches certbot - # Fork of github.com/sjenning/kube-nginx-letsencrypt - - image: quay.io/hiphipjorge/kube-nginx-letsencrypt:latest - name: letsencrypt - imagePullPolicy: Always - ports: - - name: letsencrypt - containerPort: 80 - env: - {{- if eq .Values.settings.env "prod" }} - - name: DOMAINS - value: { .Values.settings.domain }} - {{- else }} - - name: DOMAINS - value: {{ .Values.settings.env }}.{{ .Values.settings.domain }} - {{- end }} - - name: EMAIL - value: info@conduction.nl # Your email. CHANGE ME! @todo - - name: SECRET - value: {{ include "name" . }}-letsencrypt-certs - restartPolicy: Never \ No newline at end of file diff --git a/api/helm/templates/lets-encrypt-secret.yaml b/api/helm/templates/lets-encrypt-secret.yaml deleted file mode 100644 index 4ea2960..0000000 --- a/api/helm/templates/lets-encrypt-secret.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# An empty secret (with no data) in order for the update to work -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "fullname" . }}-letsencrypt-certs - labels: - app.kubernetes.io/name: {{ include "name" . }} - app.kubernetes.io/part-of: {{ include "name" . }} - helm.sh/chart: {{ include "chart" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/managed-by: {{ .Release.Service }} -type: Opaque \ No newline at end of file diff --git a/api/helm/templates/lets-encrypt-service.yaml b/api/helm/templates/lets-encrypt-service.yaml deleted file mode 100644 index 48247ae..0000000 --- a/api/helm/templates/lets-encrypt-service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "name" . }}-letsencrypt - labels: - app.kubernetes.io/name: {{ include "name" . }} - app.kubernetes.io/part-of: {{ include "name" . }} - helm.sh/chart: {{ include "chart" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/managed-by: {{ .Release.Service }} -spec: - selector: - app: {{ include "name" . }}-letsencrypt - ports: - - protocol: "TCP" - port: 80 \ No newline at end of file