db
This commit is contained in:
1 parent
f0f3c2c1a9
commit
5233a0e228
6 files changed
+61
No files matched your search
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
full_path=${1}
|
||||
app=$(basename $full_path)
|
||||
location=$(dirname $full_path)
|
||||
typeofapp=$(basename $location)
|
||||
|
||||
mkdir -p $full_path/templates
|
||||
touch $full_path/values.yaml
|
||||
touch $full_path/values-{dev,prod}.yaml
|
||||
cat <<EOT >> $full_path/Chart.yaml
|
||||
apiVersion: v2
|
||||
name: $app
|
||||
description: An $typeofapp service for homelab
|
||||
type: application
|
||||
version: 0.1.0
|
||||
dependencies: []
|
||||
EOT
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: v2
|
||||
name: database
|
||||
description: An infra service for homelab
|
||||
type: application
|
||||
version: 0.1.0
|
||||
# dependencies:
|
||||
# - name: postgres
|
||||
# version: "12.1.8"
|
||||
# repository: "https://charts.bitnami.com/bitnami"
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: Opaque
|
||||
metadata:
|
||||
name: pg.password
|
||||
annotations:
|
||||
secret-generator.v1.mittwald.de/autogenerate: password
|
||||
data:
|
||||
username: cG9zdGdyZXM=
|
||||
@@ -0,0 +1,3 @@
|
||||
postgres:
|
||||
auth:
|
||||
existingSecret: ""
|
||||
@@ -0,0 +1,3 @@
|
||||
postgres:
|
||||
auth:
|
||||
existingSecret: ""
|
||||
@@ -0,0 +1,17 @@
|
||||
postgres:
|
||||
fullnameOverride: "postgres"
|
||||
image:
|
||||
tag: 15.1.0-debian-11-r19
|
||||
repository: bitnami/postgresql
|
||||
pullPolicy: IfNotPresent
|
||||
auth:
|
||||
secretKeys:
|
||||
adminPasswordKey: password
|
||||
architecture: standalone
|
||||
postgresqlDataDir: /bitnami/postgresql/data
|
||||
primary:
|
||||
persistence:
|
||||
enabled: true
|
||||
mountPath: /bitnami/postgresql
|
||||
readReplicas:
|
||||
replicaCount: 0
|
||||
Reference in new issue
Block a user