-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4dae66
commit a776fa8
Showing
9 changed files
with
260 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ resources: | |
- secret.yaml | ||
- application.yaml | ||
- push-secret.yaml | ||
- postgres.yaml |
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,162 @@ | ||
# PSQL 15 Public Scheme Tweak | ||
# \c spotify | ||
# GRANT CREATE ON SCHEMA public TO spotify; | ||
apiVersion: postgres-operator.crunchydata.com/v1beta1 | ||
kind: PostgresCluster | ||
metadata: | ||
name: spotify | ||
namespace: analytics-for-spotify | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
labels: | ||
app.kubernetes.io/instance: spotify | ||
spec: | ||
backups: | ||
pgbackrest: | ||
configuration: | ||
- secret: | ||
name: truenas-s3-backup | ||
global: | ||
repo1-retention-full: "14" | ||
repo1-retention-full-type: count | ||
repo2-path: /spotify | ||
repo2-retention-full: "14" | ||
repo2-retention-full-type: count | ||
repo2-s3-uri-style: path | ||
repoHost: | ||
resources: | ||
limits: | ||
memory: "32Mi" | ||
cpu: "45m" | ||
requests: | ||
memory: "16Mi" | ||
cpu: "5m" | ||
sidecars: | ||
pgbackrest: | ||
resources: | ||
limits: | ||
memory: "32Mi" | ||
cpu: "100m" | ||
requests: | ||
memory: "16Mi" | ||
cpu: "5m" | ||
pgbackrestConfig: | ||
resources: | ||
limits: | ||
memory: "32Mi" | ||
cpu: "45m" | ||
requests: | ||
memory: "16Mi" | ||
cpu: "5m" | ||
repos: | ||
- name: repo1 | ||
schedules: | ||
full: "0 7 * * *" | ||
volume: | ||
volumeClaimSpec: | ||
storageClassName: rook-ceph-block | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
- name: repo2 | ||
s3: | ||
bucket: postgres | ||
endpoint: "truenas.arthurvardevanyan.com:9000" | ||
region: homelab | ||
schedules: | ||
full: "0 6 * * *" | ||
instances: | ||
- dataVolumeClaimSpec: | ||
storageClassName: rook-ceph-block | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 2Gi | ||
name: "" | ||
replicas: 2 | ||
resources: | ||
requests: | ||
memory: "128Mi" | ||
cpu: "10m" | ||
limits: | ||
memory: "512Mi" | ||
cpu: "250m" | ||
affinity: | ||
podAntiAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchLabels: | ||
postgres-operator.crunchydata.com/cluster: spotify | ||
postgres-operator.crunchydata.com/instance-set: "00" | ||
topologyKey: "kubernetes.io/hostname" | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- weight: 100 | ||
podAffinityTerm: | ||
labelSelector: | ||
matchLabels: | ||
postgres-operator.crunchydata.com/cluster: spotify | ||
postgres-operator.crunchydata.com/instance-set: "00" | ||
topologyKey: topology.kubernetes.io/zone | ||
patroni: | ||
dynamicConfiguration: | ||
postgresql: | ||
pg_hba: | ||
- "host all all 0.0.0.0/0 trust" | ||
monitoring: | ||
pgmonitor: | ||
exporter: | ||
resources: | ||
limits: | ||
memory: "32Mi" | ||
cpu: "10m" | ||
requests: | ||
memory: "16Mi" | ||
cpu: "5m" | ||
# userInterface: | ||
# pgAdmin: | ||
# dataVolumeClaimSpec: | ||
# accessModes: | ||
# - ReadWriteOnce | ||
# resources: | ||
# requests: | ||
# storage: 25Mi | ||
# storageClassName: rook-ceph-block | ||
# replicas: 1 | ||
# resources: | ||
# limits: | ||
# cpu: 150m | ||
# memory: 256Mi | ||
# requests: | ||
# cpu: 25m | ||
# memory: 128Mi | ||
openshift: true | ||
port: 5432 | ||
postgresVersion: 17 | ||
# --- | ||
# apiVersion: postgres-operator.crunchydata.com/v1beta1 | ||
# kind: PGUpgrade | ||
# metadata: | ||
# name: spotify-upgrade | ||
# namespace: postgres | ||
# spec: | ||
# fromPostgresVersion: 14 | ||
# postgresClusterName: spotify | ||
# toPostgresVersion: 15 | ||
|
||
# kubectl delete ResourceQuota -n postgres --all | ||
# kubectl delete LimitRange -n postgres --all | ||
|
||
# kubectl patch postgrescluster spotify -n postgres --type=merge \ | ||
# -p '{"spec":{"shutdown":true}}' | ||
|
||
# kubectl annotate postgrescluster spotify -n postgres \ | ||
# postgres-operator.crunchydata.com/allow-upgrade=spotify-upgrade | ||
|
||
# kubectl patch postgrescluster spotify -n postgres --type "json" -p \ | ||
# '[{"op":"replace","path":"/spec/postgresVersion","value":15}]' | ||
|
||
# kubectl patch postgrescluster spotify -n postgres --type=merge \ | ||
# -p '{"spec":{"shutdown":false}}' |
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
Oops, something went wrong.