-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use postgresql for media applications when possible
- Loading branch information
Showing
24 changed files
with
623 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: bazarr-vault | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/secretstore_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: SecretStore | ||
metadata: | ||
name: vault | ||
spec: | ||
provider: | ||
vault: | ||
server: "https://vault.vault.svc:8200" | ||
path: "secret" | ||
version: "v2" | ||
auth: | ||
kubernetes: | ||
mountPath: "kubernetes" | ||
role: "bazarr" | ||
serviceAccountRef: | ||
name: "bazarr-vault" | ||
caProvider: | ||
type: "ConfigMap" | ||
name: "homelab-ca" | ||
key: "ca.crt" | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: bazarr-vault | ||
spec: | ||
refreshInterval: "1m" | ||
target: | ||
creationPolicy: "Owner" | ||
deletionPolicy: "Retain" | ||
secretStoreRef: | ||
kind: SecretStore | ||
name: vault | ||
data: | ||
- secretKey: RADARR__AUTH__APIKEY | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/bazarr | ||
property: API_KEY | ||
- secretKey: POSTGRES_USERNAME | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/bazarr | ||
property: POSTGRES_USER | ||
- secretKey: POSTGRES_PASSWORD | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/bazarr | ||
property: POSTGRES_PASSWORD | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: postgres-vault | ||
spec: | ||
refreshInterval: "1m" | ||
target: | ||
creationPolicy: "Owner" | ||
deletionPolicy: "Retain" | ||
secretStoreRef: | ||
kind: SecretStore | ||
name: vault | ||
data: | ||
- secretKey: username | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/bazarr | ||
property: POSTGRES_USER | ||
- secretKey: password | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/bazarr | ||
property: POSTGRES_PASSWORD |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Cluster | ||
metadata: | ||
name: bazarr-cluster | ||
spec: | ||
instances: 1 | ||
|
||
primaryUpdateStrategy: unsupervised | ||
|
||
enableSuperuserAccess: false | ||
|
||
bootstrap: | ||
initdb: | ||
database: bazarr | ||
owner: bazarr | ||
secret: | ||
name: postgres-vault | ||
dataChecksums: true | ||
encoding: 'UTF8' | ||
|
||
storage: | ||
size: 2Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
--- | ||
strategy: | ||
type: RollingUpdate | ||
|
||
volumes: | ||
- name: &volume-config joal-config | ||
configMap: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: prowlarr-vault | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/secretstore_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: SecretStore | ||
metadata: | ||
name: vault | ||
spec: | ||
provider: | ||
vault: | ||
server: "https://vault.vault.svc:8200" | ||
path: "secret" | ||
version: "v2" | ||
auth: | ||
kubernetes: | ||
mountPath: "kubernetes" | ||
role: "prowlarr" | ||
serviceAccountRef: | ||
name: "prowlarr-vault" | ||
caProvider: | ||
type: "ConfigMap" | ||
name: "homelab-ca" | ||
key: "ca.crt" | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: prowlarr-vault | ||
spec: | ||
refreshInterval: "1m" | ||
target: | ||
creationPolicy: "Owner" | ||
deletionPolicy: "Retain" | ||
secretStoreRef: | ||
kind: SecretStore | ||
name: vault | ||
data: | ||
- secretKey: PROWLARR__AUTH__APIKEY | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/prowlarr | ||
property: API_KEY | ||
- secretKey: PROWLARR__POSTGRES__USER | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/prowlarr | ||
property: POSTGRES_USER | ||
- secretKey: PROWLARR__POSTGRES__PASSWORD | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/prowlarr | ||
property: POSTGRES_PASSWORD | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: postgres-vault | ||
spec: | ||
refreshInterval: "1m" | ||
target: | ||
creationPolicy: "Owner" | ||
deletionPolicy: "Retain" | ||
secretStoreRef: | ||
kind: SecretStore | ||
name: vault | ||
data: | ||
- secretKey: username | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/prowlarr | ||
property: POSTGRES_USER | ||
- secretKey: password | ||
remoteRef: | ||
conversionStrategy: Default | ||
decodingStrategy: None | ||
metadataPolicy: None | ||
key: secret/data/homelab/prod/prowlarr | ||
property: POSTGRES_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
apiVersion: postgresql.cnpg.io/v1 | ||
kind: Cluster | ||
metadata: | ||
name: prowlarr-cluster | ||
spec: | ||
instances: 1 | ||
|
||
primaryUpdateStrategy: unsupervised | ||
|
||
enableSuperuserAccess: false | ||
|
||
bootstrap: | ||
initdb: | ||
database: prowlarr | ||
owner: prowlarr | ||
secret: | ||
name: postgres-vault | ||
dataChecksums: true | ||
encoding: 'UTF8' | ||
|
||
storage: | ||
size: 2Gi |
Oops, something went wrong.