Skip to content

Latest commit

 

History

History

postgresql

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

postgresql

A timoni.sh module for deploying postgresql to Kubernetes clusters.

Install

To create an instance using the default values:

timoni -n default apply postgresql oci://<container-registry-url>

To change the default configuration, create one or more values.cue files and apply them to the instance.

For example, create a file my-values.cue with the following content:

values: {
	resources: requests: {
		cpu:    "100m"
		memory: "128Mi"
	}
}

And apply the values with:

timoni -n default apply postgresql oci://<container-registry-url> \
--values ./my-values.cue

Uninstall

To uninstall an instance and delete all its Kubernetes resources:

timoni -n default delete postgresql

Configuration

Key Type Default Description
image: tag: string <latest version> Container image tag
image: digest: string "" Container image digest, takes precedence over tag when specified
image: repository: string docker.io/nginx Container image repository
image: pullPolicy: string IfNotPresent Kubernetes image pull policy
metadata: labels: {[ string]: string} {} Common labels for all resources
metadata: annotations: {[ string]: string} {} Common annotations for all resources
pod: annotations: {[ string]: string} {} Annotations applied to pods
pod: affinity: corev1.#Affinity {} Kubernetes affinity and anti-affinity
pod: imagePullSecrets: [...timoniv1.#ObjectReference] [] Kubernetes image pull secrets
replicas: int 1 Kubernetes deployment replicas
resources: timoniv1.#ResourceRequirements {} Kubernetes resource requests and limits
securityContext: corev1.#SecurityContext {} Kubernetes container security context
service: annotations: {[ string]: string} {} Annotations applied to the Kubernetes Service
service: port: int 80 Kubernetes Service HTTP port