This commit is contained in:
2023-08-20 07:58:09 -05:00
parent 167c6ed587
commit 22b3f622f2
7 changed files with 11 additions and 45 deletions

5
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,5 @@
include:
- project: 'developerdurp/yml'
ref: main
file: 'pipelines/helm.yml'

View File

@@ -1,37 +0,0 @@
{{ if .Values.ingress.enabled }}
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: "{{ .Chart.Name }}-ingress"
spec:
entryPoints:
- websecure
routes:
- match: Host("{{ .Values.ingress.host }}") && PathPrefix(`/`)
middlewares:
- name: authentik-proxy-provider
namespace: traefik
kind: Rule
services:
- name: "{{ .Chart.Name }}-service"
port: {{ .Values.service.port }}
tls:
secretName: {{ .Values.ingress.tls }}
{{ end }}
---
{{ if .Values.ingress.enabled }}
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ .Values.ingress.tls }}
spec:
secretName: {{ .Values.ingress.tls }}
issuerRef:
name: {{ .Values.ingress.clusterissuer }}
kind: ClusterIssuer
commonName: {{ .Values.ingress.host }}
dnsNames:
- {{ .Values.ingress.host }}
{{ end }}

View File

@@ -9,3 +9,4 @@ dependencies:
- name: postgresql
version: 12.5.*
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled

View File

@@ -35,4 +35,4 @@ spec:
value: {{ default .Chart.Version .Values.deployment.tag }}
envFrom:
- secretRef:
name: {{ .Values.deployment.secretfile }}
name: {{ .Values.deployment.secretfile }}

View File

@@ -20,16 +20,13 @@ deployment:
path: /api/health/getHealth
port: 8080
ingress:
enabled: false
clusterissuer: letsencrypt-production
host: durpapi.durp.info
tls: durpapi-tls
service:
type: ClusterIP
port: 80
targetport: 8080
swagger:
host: api.durp.info/durpapi
host: api.durp.info
postgresql:
enabled: false