![]() ![]() Target the namespace where you want to create the Postgres instance: kubectl config set-context -current -namespace= Note: OpenShift clusters: Postgres Instances cannot run on the "default" namespace due to the fact Openshift does not assign SCC (Security Context Constraints) to pods running on the namespace. For details see Custom Database Name and User Account.Ĭonfiguring a Postgres Instance Create an instance CR If you're planning to bind a TAP application workload to the Postgres database, and wish to change the default pgappuser application user name, edit your instance yaml before deployment. Where standard is the name of the default storage class in this example Kubernetes cluster, and will be used throughout this documentation. Standard (default) k8s.io/minikube-hostpath Delete WaitForFirstConsumer true 4h25m The output would be similar to: NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE To verify the ALLOWVOLUMEEXPANSION and VOLUMEBINDINGMODE fields use: kubectl get storageclasses For more details on the Kubernetes storage class binding modes see Volume Binding Mode. For more information, see Allow Volume Expansion.Įnsure that the storage class VOLUMEBINDINGMODE field is set to volumeBindingMode=WaitForFirstConsumer, to avoid Postgres pods and Persistent Volumes (PV) scheduling issues. Request an expandable storage volume for your Postgres instance, to be able to resize the volume online. Postgres-operatorđ Fri Oct 14 16:03:19 2022 DEPLOYED postgres-operator-1.9.0 v1.9.0 default NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE ![]() Verify that the Postgres operator is installed and running in your system: helm list See Installing a Postgres Operator for instructions. PrerequisitesĮnsure you have installed the Tanzu Postgres docker images and created the Postgres operator in your Kubernetes cluster. This section describes how to deploy a Postgres instance to your Kubernetes cluster, using the Postgres operator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |