Compare commits
14 Commits
taiga-0.2.
...
postgres-c
Author | SHA1 | Date | |
---|---|---|---|
4f366535c3 | |||
f32ef77551 | |||
d02f649164 | |||
3b50ca2bfe | |||
17796a1183 | |||
512b1d4243 | |||
a2b0cdd5b6 | |||
e79af169b9 | |||
661f9342b9 | |||
9d1244c7a1 | |||
0dc50bf88f | |||
75accbbf87 | |||
19fbd95a79 | |||
d73c42fd42 |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postgres-cluster
|
name: postgres-cluster
|
||||||
version: 2.2.0
|
version: 2.4.0
|
||||||
description: Chart for cloudnative-pg cluster
|
description: Chart for cloudnative-pg cluster
|
||||||
keywords:
|
keywords:
|
||||||
- database
|
- database
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
backup:
|
backup:
|
||||||
retentionPolicy: {{ .Values.backup.retentionPolicy }}
|
retentionPolicy: {{ .Values.backup.retentionPolicy }}
|
||||||
barmanObjectStore:
|
barmanObjectStore:
|
||||||
destinationPath: "s3://{{ .Values.backup.endpointBucket }}/{{ .Values.kubernetesClusterName }}/postgresql/{{ include "cluster.name" . }}"
|
destinationPath: "s3://{{ .Values.backup.endpointBucket }}/{{ .Values.kubernetesClusterName }}/postgresql/{{ include "cluster.backupName" . }}"
|
||||||
endpointURL: {{ .Values.backup.endpointURL }}
|
endpointURL: {{ .Values.backup.endpointURL }}
|
||||||
{{- if .Values.backup.endpointCA }}
|
{{- if .Values.backup.endpointCA }}
|
||||||
endpointCA:
|
endpointCA:
|
||||||
|
@@ -26,20 +26,20 @@ bootstrap:
|
|||||||
import:
|
import:
|
||||||
type: {{ .Values.replica.importType }}
|
type: {{ .Values.replica.importType }}
|
||||||
databases:
|
databases:
|
||||||
{{- if and (len .Values.replica.importDatabases gt 1) (.Values.replica.importType eq "microservice") }}
|
{{- if and (gt (len .Values.replica.importDatabases) 1) (eq .Values.replica.importType "microservice") }}
|
||||||
{{ fail "Too many databases in import type of microservice!" }}
|
{{ fail "Too many databases in import type of microservice!" }}
|
||||||
{{- else}}
|
{{- else}}
|
||||||
{{- with .Values.replica.importDatabases }}
|
{{- with .Values.replica.importDatabases }}
|
||||||
{{- . | toYaml | nindent 8 }}
|
{{- . | toYaml | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.replica.importType eq "monolith" }}
|
{{- if eq .Values.replica.importType "monolith" }}
|
||||||
roles:
|
roles:
|
||||||
{{- with .Values.replica.importRoles }}
|
{{- with .Values.replica.importRoles }}
|
||||||
{{- . | toYaml | nindent 8 }}
|
{{- . | toYaml | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and (.Values.replica.postImportApplicationSQL) (.Values.replica.importType eq "microservice") }}
|
{{- if and (.Values.replica.postImportApplicationSQL) (eq .Values.replica.importType "microservice") }}
|
||||||
postImportApplicationSQL:
|
postImportApplicationSQL:
|
||||||
{{- with .Values.replica.postImportApplicationSQL }}
|
{{- with .Values.replica.postImportApplicationSQL }}
|
||||||
{{- . | toYaml | nindent 8 }}
|
{{- . | toYaml | nindent 8 }}
|
||||||
@@ -58,19 +58,18 @@ externalClusters:
|
|||||||
recoveryTarget:
|
recoveryTarget:
|
||||||
targetTime: {{ . }}
|
targetTime: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
source: "{{ include "cluster.name" . }}-backup-{{ .Values.recovery.recoveryIndex }}"
|
source: {{ include "cluster.recoveryServerName" . }}
|
||||||
externalClusters:
|
externalClusters:
|
||||||
- name: "{{ include "cluster.name" . }}-backup-{{ .Values.recovery.recoveryIndex }}"
|
- name: {{ include "cluster.recoveryServerName" . }}
|
||||||
barmanObjectStore:
|
barmanObjectStore:
|
||||||
serverName: "{{ include "cluster.name" . }}-backup-{{ .Values.recovery.recoveryIndex }}"
|
serverName: {{ include "cluster.recoveryServerName" . }}
|
||||||
destinationPath: "s3://{{ .Values.recovery.endpointBucket }}/{{ .Values.kubernetesClusterName }}/postgresql/{{ .Values.recovery.recoveryName }}"
|
destinationPath: "s3://{{ .Values.recovery.endpointBucket }}/{{ .Values.kubernetesClusterName }}/postgresql/{{ include "cluster.recoveryInstanceName" . }}"
|
||||||
endpointURL: {{ .Values.recovery.endpointURL }}
|
endpointURL: {{ .Values.recovery.endpointURL }}
|
||||||
{{- with .Values.recovery.endpointCA }}
|
{{- with .Values.recovery.endpointCA }}
|
||||||
endpointCA:
|
endpointCA:
|
||||||
name: {{ . }}
|
name: {{ . }}
|
||||||
key: ca-bundle.crt
|
key: ca-bundle.crt
|
||||||
{{- end }}
|
{{- end }}
|
||||||
serverName: "{{ include "cluster.name" . }}-backup-{{ .Values.recovery.recoveryIndex }}"
|
|
||||||
s3Credentials:
|
s3Credentials:
|
||||||
accessKeyId:
|
accessKeyId:
|
||||||
name: {{ include "cluster.recoveryCredentials" . }}
|
name: {{ include "cluster.recoveryCredentials" . }}
|
||||||
|
@@ -5,7 +5,7 @@ Expand the name of the chart.
|
|||||||
{{- if .Values.nameOverride }}
|
{{- if .Values.nameOverride }}
|
||||||
{{- .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
{{- .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- printf "postgresql-%s-%s" .Values.cluster.image.majorVersion .Release.Name | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-postgresql-%s" .Release.Name ((semver .Values.cluster.image.tag).Major | toString) | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
@@ -57,11 +57,34 @@ Generate name for object store credentials
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Generate recovery server name
|
Generate backup server name
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "cluster.recoveryName" -}}
|
{{- define "cluster.backupName" -}}
|
||||||
{{- if .Values.recovery.recoveryName -}}
|
{{- if .Values.backup.backupName -}}
|
||||||
{{- .Values.recovery.recoveryName -}}
|
{{- .Values.backup.backupName -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{ include "cluster.name" . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Generate recovery server name
|
||||||
|
*/}}
|
||||||
|
{{- define "cluster.recoveryServerName" -}}
|
||||||
|
{{- if .Values.recovery.recoveryServerName -}}
|
||||||
|
{{- .Values.recovery.recoveryServerName -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s-backup-%s" (include "cluster.name" .) .Values.recovery.recoveryIndex | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Generate recovery instance name
|
||||||
|
*/}}
|
||||||
|
{{- define "cluster.recoveryInstanceName" -}}
|
||||||
|
{{- if .Values.recovery.recoveryInstanceName -}}
|
||||||
|
{{- .Values.recovery.recoveryInstanceName -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ include "cluster.name" . }}
|
{{ include "cluster.name" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@@ -24,7 +24,6 @@ cluster:
|
|||||||
image:
|
image:
|
||||||
repository: ghcr.io/cloudnative-pg/postgresql
|
repository: ghcr.io/cloudnative-pg/postgresql
|
||||||
tag: "16.2"
|
tag: "16.2"
|
||||||
majorVersion: "16"
|
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
# The UID and GID of the postgres user inside the image
|
# The UID and GID of the postgres user inside the image
|
||||||
@@ -44,7 +43,7 @@ cluster:
|
|||||||
cpu: 10m
|
cpu: 10m
|
||||||
limits:
|
limits:
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
cpu: 100m
|
cpu: 1000m
|
||||||
hugepages-2Mi: 256Mi
|
hugepages-2Mi: 256Mi
|
||||||
|
|
||||||
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-AffinityConfiguration
|
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-AffinityConfiguration
|
||||||
@@ -108,11 +107,14 @@ recovery:
|
|||||||
# Specifies secret that contains S3 credentials, should contain the keys ACCESS_KEY_ID and ACCESS_SECRET_KEY
|
# Specifies secret that contains S3 credentials, should contain the keys ACCESS_KEY_ID and ACCESS_SECRET_KEY
|
||||||
endpointCredentials: ""
|
endpointCredentials: ""
|
||||||
|
|
||||||
# Generate external cluster name, uses: postgresql-{{ .Release.Name }}-cluster-backup-index-{{ .Values.recovery.recoveryIndex }}"
|
# Generate external cluster name, uses: {{ .Release.Name }}postgresql-<major version>-cluster-backup-index-{{ .Values.recovery.recoveryIndex }}
|
||||||
recoveryIndex: 1
|
recoveryIndex: 1
|
||||||
|
|
||||||
# Name of the recovery cluster in the object store, defaults to "cluster.name"
|
# Name of the recovery cluster in the object store, defaults to "cluster.name"
|
||||||
recoveryName: ""
|
recoveryServerName: ""
|
||||||
|
|
||||||
|
# Name of the recovery cluster in the object store, defaults to ".Release.Name"
|
||||||
|
recoveryInstanceName: ""
|
||||||
|
|
||||||
wal:
|
wal:
|
||||||
# WAL compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`.
|
# WAL compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`.
|
||||||
@@ -171,6 +173,9 @@ backup:
|
|||||||
# Generate external cluster name, creates: postgresql-{{ .Release.Name }}-cluster-backup-index-{{ .Values.backups.backupIndex }}"
|
# Generate external cluster name, creates: postgresql-{{ .Release.Name }}-cluster-backup-index-{{ .Values.backups.backupIndex }}"
|
||||||
backupIndex: 1
|
backupIndex: 1
|
||||||
|
|
||||||
|
# Name of the backup cluster in the object store, defaults to "cluster.name"
|
||||||
|
backupName: ""
|
||||||
|
|
||||||
wal:
|
wal:
|
||||||
# WAL compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`.
|
# WAL compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`.
|
||||||
compression: snappy
|
compression: snappy
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: tubearchivist
|
name: tubearchivist
|
||||||
version: 0.2.1
|
version: 0.2.2
|
||||||
description: Chart for Tube Archivist
|
description: Chart for Tube Archivist
|
||||||
keywords:
|
keywords:
|
||||||
- download
|
- download
|
||||||
|
@@ -20,18 +20,18 @@ service:
|
|||||||
port: 8000
|
port: 8000
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className:
|
className: ""
|
||||||
annotations:
|
annotations: ""
|
||||||
host:
|
host: ""
|
||||||
persistence:
|
persistence:
|
||||||
cache:
|
cache:
|
||||||
enabled: false
|
enabled: false
|
||||||
storageClassName: default
|
storageClassName: ""
|
||||||
storageSize: 5Gi
|
storageSize: 5Gi
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
youtube:
|
youtube:
|
||||||
claimName:
|
claimName: ""
|
||||||
redis:
|
redis:
|
||||||
image:
|
image:
|
||||||
repository: redis/redis-stack-server
|
repository: redis/redis-stack-server
|
||||||
@@ -48,17 +48,17 @@ redis:
|
|||||||
loadmodule /opt/redis-stack/lib/rejson.so
|
loadmodule /opt/redis-stack/lib/rejson.so
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
global:
|
global:
|
||||||
storageClass: default
|
storageClass: ""
|
||||||
extraEnvVars:
|
extraEnvVars:
|
||||||
- name: "discovery.type"
|
- name: "discovery.type"
|
||||||
value: "single-node"
|
value: "single-node"
|
||||||
- name: xpack.security.enabled
|
- name: xpack.security.enabled
|
||||||
value: "true"
|
value: "true"
|
||||||
extraEnvVarsSecret:
|
extraEnvVarsSecret: []
|
||||||
extraConfig:
|
extraConfig:
|
||||||
path:
|
path:
|
||||||
repo: /usr/share/elasticsearch/data/snapshot
|
repo: /usr/share/elasticsearch/data/snapshot
|
||||||
extraVolumes:
|
extraVolumes: []
|
||||||
extraVolumeMounts:
|
extraVolumeMounts:
|
||||||
- name: snapshot
|
- name: snapshot
|
||||||
mountPath: /usr/share/elasticsearch/data/snapshot
|
mountPath: /usr/share/elasticsearch/data/snapshot
|
||||||
|
Reference in New Issue
Block a user