Skip to content

Commit

Permalink
feat: use pg4k subchart in pg4k-pgd
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Li <[email protected]>
  • Loading branch information
litaocdl committed Oct 23, 2024
1 parent 8091c55 commit 09c7243
Show file tree
Hide file tree
Showing 19 changed files with 17,734 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*~

# Charts Dependency files
/charts/*/charts/
/charts/*/charts/*.tgz
/charts/*/Chart.lock
8 changes: 4 additions & 4 deletions charts/edb-postgres-distributed-for-kubernetes/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name: edb-postgres-distributed-for-kubernetes
description: EDB Postgres Distributed for Kubernetes Helm Chart
icon: https://www.enterprisedb.com/themes/custom/edb_bootstrap_sass/edb-logo-disc-dark-2.svg
type: application
version: "1.0.1"
version: "1.0.2"
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand All @@ -29,10 +29,10 @@ dependencies:
condition: cert-manager.enabled
version: "1.16.1"
repository: "https://charts.jetstack.io"
- name: "edb-postgres-for-kubernetes"
- name: "edb-postgres-for-kubernetes-subchart"
condition: edb-postgres-for-kubernetes.enabled
version: "0.20.3"
repository: "https://enterprisedb.github.io/edb-postgres-for-kubernetes-charts/"
version: "0.22.1"
repository: file://charts/edb-postgres-for-kubernetes-subchart

sources:
- https://github.com/EnterpriseDB/edb-postgres-for-kubernetes-charts
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 EnterpriseDB Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
apiVersion: v2
name: edb-postgres-for-kubernetes-subchart
description: EDB Postgres for Kubernetes sub Helm Chart
icon: https://www.enterprisedb.com/themes/custom/edb_bootstrap_sass/edb-logo-disc-dark-2.svg
type: application
version: "0.22.1"
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.22.7"
sources:
- https://github.com/EnterpriseDB/edb-postgres-for-kubernetes-charts/tree/main/charts/edb-postgres-distributed-for-kubernetes
keywords:
- postgresql
- postgres
- database
- edb
- enterprisedb
home: https://www.enterprisedb.com/products/postgresql-on-kubernetes-ha-clusters-k8s-containers-scalable
maintainers:
- name: gbartolini
email: [email protected]
- name: jsilvela
email: [email protected]
- name: litaocdl
email: [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

EDB Postgres for Kubernetes Operator should be installed in namespace "{{ .Release.Namespace }}".
You can now create a PostgreSQL cluster with 3 nodes as follows:

cat <<EOF | kubectl apply -f -
# Example of PostgreSQL cluster
apiVersion: postgresql.k8s.enterprisedb.io/v1
kind: Cluster
metadata:
name: cluster-example
{{if not .Values.config.clusterWide -}}
namespace: {{ .Release.Namespace }}
{{- end }}
spec:
instances: 3
storage:
size: 1Gi
EOF

kubectl get -A cluster

Loading

0 comments on commit 09c7243

Please sign in to comment.