update
This commit is contained in:
5
.gitlab-ci.yml
Normal file
5
.gitlab-ci.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
include:
|
||||||
|
- project: 'developerdurp/yml'
|
||||||
|
ref: main
|
||||||
|
file: 'pipelines/helm.yml'
|
||||||
@@ -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 }}
|
|
||||||
@@ -9,3 +9,4 @@ dependencies:
|
|||||||
- name: postgresql
|
- name: postgresql
|
||||||
version: 12.5.*
|
version: 12.5.*
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
condition: postgresql.enabled
|
||||||
@@ -35,4 +35,4 @@ spec:
|
|||||||
value: {{ default .Chart.Version .Values.deployment.tag }}
|
value: {{ default .Chart.Version .Values.deployment.tag }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.deployment.secretfile }}
|
name: {{ .Values.deployment.secretfile }}
|
||||||
@@ -20,16 +20,13 @@ deployment:
|
|||||||
path: /api/health/getHealth
|
path: /api/health/getHealth
|
||||||
port: 8080
|
port: 8080
|
||||||
|
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
clusterissuer: letsencrypt-production
|
|
||||||
host: durpapi.durp.info
|
|
||||||
tls: durpapi-tls
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
targetport: 8080
|
targetport: 8080
|
||||||
|
|
||||||
swagger:
|
swagger:
|
||||||
host: api.durp.info/durpapi
|
host: api.durp.info
|
||||||
|
|
||||||
|
postgresql:
|
||||||
|
enabled: false
|
||||||
Reference in New Issue
Block a user