This commit is contained in:
2023-10-15 18:27:52 +02:00
parent 1a9e136a39
commit d0cccb5177
2 changed files with 76 additions and 78 deletions

View File

@@ -17,11 +17,6 @@ resource "kubectl_manifest" "deploy" {
securityContext:
fsGroup: 1000
runAsGroup: 1000
volumes:
- name: certs
secret:
secretName: "${var.instance}-cert"
defaultMode: 0444
containers:
- name: dbgate
securityContext:
@@ -29,10 +24,6 @@ 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}"
@@ -76,6 +67,9 @@ resource "kubectl_manifest" "deploy" {
successThreshold: 1
timeoutSeconds: 1
volumeMounts:
- name: certs
mountPath: /etc/local-ca
readOnly: true
- name: data
mountPath: /home/node/.dbgate
restartPolicy: Always
@@ -85,6 +79,10 @@ resource "kubectl_manifest" "deploy" {
runAsNonRoot: true
runAsUser: 1000
volumes:
- name: certs
secret:
secretName: "${var.instance}-cert"
defaultMode: 0444
- name: data
persistentVolumeClaim:
claimName: "${var.component}-${var.instance}"

View File

@@ -6,59 +6,10 @@ metadata:
name: dbgate
description: null
options:
images:
default:
dbgate:
pullPolicy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
sub-domain:
default: dbgate
examples:
- dbgate:
pullPolicy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
properties:
dbgate:
default:
pullPolicy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
properties:
pullPolicy:
default: IfNotPresent
enum:
- Always
- Never
- IfNotPresent
type: string
registry:
default: docker.io
type: string
repository:
default: dbgate/dbgate
type: string
tag:
default: 5.2.6-alpine
type: string
type: object
type: object
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
app-group:
default: dev
examples:
- dev
type: string
ingress-class:
default: traefik
examples:
- traefik
- dbgate
type: string
storage:
default:
@@ -87,12 +38,7 @@ options:
- Block
type: string
type: object
sub-domain:
default: dbgate
examples:
- dbgate
type: string
pg:
maria:
default: []
examples:
- []
@@ -150,7 +96,71 @@ options:
type: string
type: object
type: array
maria:
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
domain:
default: your-company
examples:
- your-company
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
app-group:
default: dev
examples:
- dev
type: string
images:
default:
dbgate:
pullPolicy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
examples:
- dbgate:
pullPolicy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
properties:
dbgate:
default:
pullPolicy: IfNotPresent
registry: docker.io
repository: dbgate/dbgate
tag: 5.2.6-alpine
properties:
pullPolicy:
default: IfNotPresent
enum:
- Always
- Never
- IfNotPresent
type: string
registry:
default: docker.io
type: string
repository:
default: dbgate/dbgate
type: string
tag:
default: 5.2.6-alpine
type: string
type: object
type: object
pg:
default: []
examples:
- []
@@ -179,16 +189,6 @@ options:
type: string
type: object
type: array
domain:
default: your-company
examples:
- your-company
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
dependencies:
- dist: null
category: share