This commit is contained in:
parent
929130ac65
commit
6344b434d9
8
base/postgresql/postgresql-helm-repo.yaml
Normal file
8
base/postgresql/postgresql-helm-repo.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: bitnami
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 15m
|
||||||
|
url: https://charts.bitnami.com/bitnami
|
4
base/postgresql/postgresql-namespace.yaml
Normal file
4
base/postgresql/postgresql-namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: postgresql-system
|
16
postgresql/postgresql-password.yaml
Normal file
16
postgresql/postgresql-password.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
kind: SealedSecret
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: postgresql-password
|
||||||
|
namespace: postgresql-system
|
||||||
|
spec:
|
||||||
|
encryptedData:
|
||||||
|
postgresql-password: AgCI7KEFZkbM42zeiNEm6nbf+SmXEItD9vaczG9+FBKhAKFEK4p2lY1Z6/2SwawM8trnF2OeC9jmT7zaYHdiX4qnO4yB46JpgEIbtU1VlGIcSO9s3owHvpmNqOSddiIkYHfUXZRs5iyqmZL+8NZyf7z3Fl0GnZsVjRourWyf592cO0RMuJ/3+cFAAGH182Rnd7MdXLEGnVeuEwTAHxHeOQobJNSdc27SeomNogX4J9zPxF4UyOPDmQbSsSASgQYoovBZS1ZSgXb/YCKZQCFqBB8tTQtMXZLLrcy8cP9IqioGFuBdLhZVG2aepXECBeGScW7T4YfMi0lcXiqsJwgI65NrMkMSfv1RLzSx8Ci3KuTYRKZd1/BCgRF0kxVW0sn2+5nFmUHTZt0nSjA3qHcXF0txm2FVwqtQNJKxZuNxBIs/Tim5b4q/XKJugADKXkSdpLdilLMQ08uofxjQ1jjaVai1yV0r90kAZR+Qt12TamfeDeWWvdlc48oRp93VVVRdaivlBsx9WQAFR6M+YXgJqvL1ReJJWYQE9KM9XUk68FomBsrr4nWu3oJ1ACBLNsc3kkctA/LaDyceCVBzHpwVHgRMnMucNBHO0/lhJWIPR3k72iV4K+4krM29jaOVEntMPTU0f7ZjO83g1zzA0domUEuqYYhok5sHI5XAOFrY6ayH3+G48cFqqHICR+edOvuL6t8gbkvNr+kPaRJ+NFt8x3KyQQkACLcpP6q7
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: postgresql-password
|
||||||
|
namespace: postgresql-system
|
||||||
|
type: Opaque
|
||||||
|
---
|
17
postgresql/postgresql-values-map.yaml
Normal file
17
postgresql/postgresql-values-map.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: postgresql-values-map
|
||||||
|
namespace: postgresql-system
|
||||||
|
data:
|
||||||
|
values.yaml: |-
|
||||||
|
persistence:
|
||||||
|
storageClass: "longhorn"
|
||||||
|
pgpool:
|
||||||
|
persistence:
|
||||||
|
storageClass: "longhorn"
|
||||||
|
global:
|
||||||
|
existingSecret: "postgresql-password"
|
||||||
|
postgresql:
|
||||||
|
username: "tyler"
|
||||||
|
password: ""
|
22
postgresql/postgresql.yaml
Normal file
22
postgresql/postgresql.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: postgresql
|
||||||
|
namespace: postgresql-system
|
||||||
|
spec:
|
||||||
|
interval: 5m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: postgreql-ha
|
||||||
|
version: "11.9.8"
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: bitnami
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 15m
|
||||||
|
timeout: 5m
|
||||||
|
releaseName: postgresql
|
||||||
|
valuesFrom:
|
||||||
|
- kind: ConfigMap
|
||||||
|
name: postgresql-values-map
|
||||||
|
valuesKey: values.yaml
|
28
pub-cert.pem
Normal file
28
pub-cert.pem
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIEzDCCArSgAwIBAgIQIRDiQH5cUSSsrP9ixv1jQzANBgkqhkiG9w0BAQsFADAA
|
||||||
|
MB4XDTIzMTAwMTIyMTUwMloXDTMzMDkyODIyMTUwMlowADCCAiIwDQYJKoZIhvcN
|
||||||
|
AQEBBQADggIPADCCAgoCggIBAOTrBLgLz9t70VAEcUgHb4r+vPQ3cwZ7irPLIC2b
|
||||||
|
cajMLPfMZMNyhg6DBICGwPvbeXJDfLhWg8PkQr6tnZv3bmHReYMQTkz6w4IyspNu
|
||||||
|
nag4iLV/WE0UUf9iCep0G+MkzUuN7Mq14UlNIHsh13DdheGTaPACywb6GYJLqFDk
|
||||||
|
Z50IPHBlSBTbMFE6JXlonLQF2ASOAgCduKDmSVuQIK+mD8XwuseANtVIGaZFED8d
|
||||||
|
vjR+hXfCjWqQbVw0m0IdC0vo+lvdsvmBKzpGSkN2KFIRjqW1iT6VHWbTPA6Y1evH
|
||||||
|
I0hRGrYn8L9AFmjcDWlLmSpozlpjuoD+XJspkoqrr6oSQq0oOdAd/5AhZiFkILQD
|
||||||
|
XLQrvqrT7hsOhoMElUwavUwi+yQ/GYwuHOld8un1TcLNiCsUJejlYDb7GBisjxPb
|
||||||
|
Trj9jYNRoCGpD6vBL/v7Hhalv1xSFc5ncYl9CatGEU65eamFuG23WuOOqJAdkKFE
|
||||||
|
pvTiWMuOVdUDKO/Ujcmi119krun8FiDp+qWx+i3wluIAg8rpGkszWSKG7D09+T9K
|
||||||
|
yYY1bGBDGB5FdQCQAd1gsMfiblPRfeKLg6XhhfFOen12dEPLMGXS4i0NLk8XJPFL
|
||||||
|
QS2CYDPqLoVWF1qlJIGY5ViLLCd9b5qRqi+TIfyobimT4IK0LezrWmfyez7jl1MJ
|
||||||
|
KRa1AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIAATAPBgNVHRMBAf8EBTADAQH/MB0G
|
||||||
|
A1UdDgQWBBRLUTkFxIX9QO1Y5nMQ63hFoUS1EzANBgkqhkiG9w0BAQsFAAOCAgEA
|
||||||
|
QYoA2JTwL82UWsclL0Xiwk/7wM5I2KVX6En0bP1LqeGdvFIp8g9r19zhUKJt3NTY
|
||||||
|
vEtsv9BJxclVVv0irOkFwYXdrIZknm+ZV6R9BKVVnx/caohrzKYRSV+yXcqLq1U0
|
||||||
|
Ruc29dPePeSBwMS0o722G6ve5iSuO/hWS3nOG36z4igemJX+GOnT7DWgBWzgJRam
|
||||||
|
ckrmpUrUyhk8Slh98T92mscSJcZ2lwuhctaGzT2+IBpHIl5rVYhhIvq1LsukkMsF
|
||||||
|
oRM3j3nu9/IlZkz9O23iZUkc2YYaKtiQtqNJ1UBkAlGhKEROUq0BJL7Y+QxRSl6O
|
||||||
|
qZ1JYjMv3iftPfts/+HiYPmO4hFBVGW0gVuKnKX7yMnd/2hiilH460JYhOWvvSfI
|
||||||
|
EYfO043sGhhCmAluih5raDNxa7GPaQv5xdDhpqfu+PMgYTlBjDfzX14yeOoax4CA
|
||||||
|
59D6eoMYwF6b8Hc8W+fcdn26GX1UBmgmwJI3DRgIeTpvEyVBQlLpp1yalSOT1HV4
|
||||||
|
bMLSHc9Qp62EckmJAYUaNNecKHb4hHL2kDwpVzfG7hjm+n0/BodUIg6zcjtlXouY
|
||||||
|
B8QZpGSgqUHA6xDw0PqJxwDpt3LZXbqt+G/mmSWq5vmxlB+mq4cunwD0O4Ts9H/L
|
||||||
|
9NW0Zmw5b/7PFjaHk0k81dDwYFuhpnKN135RHKVuls8=
|
||||||
|
-----END CERTIFICATE-----
|
Loading…
Reference in New Issue
Block a user