From 18a8dcff112c5cb9d83ce4f45e0a6ffac8cb6491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 15 Oct 2023 18:24:59 +0200 Subject: [PATCH] fix --- apps/dbgate/deploy.tf | 9 +++ apps/dbgate/index.yaml | 176 ++++++++++++++++++++--------------------- 2 files changed, 97 insertions(+), 88 deletions(-) diff --git a/apps/dbgate/deploy.tf b/apps/dbgate/deploy.tf index 74a600f..131bedf 100644 --- a/apps/dbgate/deploy.tf +++ b/apps/dbgate/deploy.tf @@ -17,6 +17,11 @@ resource "kubectl_manifest" "deploy" { securityContext: fsGroup: 1000 runAsGroup: 1000 + volumes: + - name: certs + secret: + secretName: "${var.instance}-cert" + defaultMode: 0444 containers: - name: dbgate securityContext: @@ -24,6 +29,10 @@ resource "kubectl_manifest" "deploy" { runAsGroup: 1000 runAsNonRoot: true runAsUser: 1000 + volumeMounts: + - name: certs + mountPath: /etc/local-ca + readOnly: true envFrom: - secretRef: name: "${var.component}-${var.instance}" diff --git a/apps/dbgate/index.yaml b/apps/dbgate/index.yaml index d2eec51..a1ca260 100644 --- a/apps/dbgate/index.yaml +++ b/apps/dbgate/index.yaml @@ -6,6 +6,55 @@ metadata: name: dbgate description: null options: + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + domain: + default: your-company + examples: + - your-company + type: string + app-group: + default: dev + examples: + - dev + type: string + maria: + default: [] + examples: + - [] + items: + properties: + dbname: + default: '' + type: string + name: + default: '' + type: string + namespace: + default: '' + type: string + secret: + properties: + key: + default: '' + type: string + name: + default: '' + type: string + type: object + username: + default: '' + type: string + type: object + type: array + sub-domain: + default: dbgate + examples: + - dbgate + type: string images: default: dbgate: @@ -45,6 +94,45 @@ options: type: string type: object type: object + ingress-class: + default: traefik + examples: + - traefik + type: string + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + mongo: + default: [] + examples: + - [] + items: + properties: + dbname: + default: '' + type: string + name: + default: '' + type: string + namespace: + default: '' + type: string + secret: + properties: + key: + default: '' + type: string + name: + default: '' + type: string + type: object + username: + default: '' + type: string + type: object + type: array storage: default: accessMode: ReadWriteOnce @@ -72,11 +160,6 @@ options: - Block type: string type: object - sub-domain: - default: dbgate - examples: - - dbgate - type: string pg: default: [] examples: @@ -106,89 +189,6 @@ options: type: string type: object type: array - maria: - default: [] - examples: - - [] - items: - properties: - dbname: - default: '' - type: string - name: - default: '' - type: string - namespace: - default: '' - type: string - secret: - properties: - key: - default: '' - type: string - name: - default: '' - type: string - type: object - username: - default: '' - type: string - type: object - type: array - domain: - default: your-company - examples: - - your-company - type: string - app-group: - default: dev - examples: - - dev - type: string - domain-name: - default: your_company.com - examples: - - your_company.com - type: string - ingress-class: - default: traefik - examples: - - traefik - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - mongo: - default: [] - examples: - - [] - items: - properties: - dbname: - default: '' - type: string - name: - default: '' - type: string - namespace: - default: '' - type: string - secret: - properties: - key: - default: '' - type: string - name: - default: '' - type: string - type: object - username: - default: '' - type: string - type: object - type: array dependencies: - dist: null category: share