[COMMON] Use deployment for postgresql
[oom.git] / kubernetes / common / postgres / values.yaml
1 # Copyright © 2018 Amdocs, AT&T, Bell Canada
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefix: 302
20   persistence: {}
21   readinessRepository: oomk8s
22   readinessImage: readiness-check:2.0.0
23
24 #################################################################
25 # Application configuration defaults.
26 #################################################################
27
28 # BusyBox image
29 busyboxRepository: registry.hub.docker.com
30 busyboxImage: library/busybox:latest
31
32 postgresRepository: crunchydata
33 image: crunchy-postgres:centos7-10.4-2.0.0
34 pullPolicy: Always
35
36 # application configuration
37 config:
38   pgUserName: testuser
39   pgDatabase: userdb
40   pgPrimaryPassword: password
41   pgUserPassword: password
42   pgRootPassword: password
43
44 container:
45   name:
46     primary: pgset-primary
47     replica: pgset-replica
48
49 pgpool:
50   container:
51     port: 5432
52     name:
53       primary: pgset-primary
54       replica: pgset-replica
55   credentials:
56     pgusername: testuser
57     pgpassword: password
58   service:
59     name: pgpool
60
61
62 # default number of instances
63 replicaCount: 2
64
65 nodeSelector: {}
66
67 affinity: {}
68
69 # probe configuration parameters
70 liveness:
71   initialDelaySeconds: 300
72   periodSeconds: 10
73   timeoutSeconds: 5
74   # necessary to disable liveness probe when setting breakpoints
75   # in debugger so K8s doesn't restart unresponsive container
76   enabled: true
77
78 readiness:
79   initialDelaySeconds: 10
80   periodSeconds: 10
81
82 ## Persist data to a persitent volume
83 persistence:
84   enabled: true
85
86   ## A manually managed Persistent Volume and Claim
87   ## Requires persistence.enabled: true
88   ## If defined, PVC must be created manually before volume will be bound
89   # existingClaim:
90   volumeReclaimPolicy: Retain
91
92   ## database data Persistent Volume Storage Class
93   ## If defined, storageClassName: <storageClass>
94   ## If set to "-", storageClassName: "", which disables dynamic provisioning
95   ## If undefined (the default) or set to null, no storageClassName spec is
96   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
97   ##   GKE, AWS & OpenStack)
98   accessMode: ReadWriteOnce
99   size: 1Gi
100   mountPath: /dockerdata-nfs
101   mountSubPath: postgres/data
102   mountInitPath: postgres
103
104 service:
105   type: ClusterIP
106   name: pgset
107   portName: tcp-postgres
108   externalPort: 5432
109   internalPort: 5432
110   type2: ClusterIP
111   name2: tcp-pgset-primary
112   portName2: tcp-postgres
113   externalPort2: 5432
114   internalPort2: 5432
115   type3: ClusterIP
116   name3: tcp-pgset-replica
117   portName3: tcp-postgres
118   externalPort3: 5432
119   internalPort3: 5432
120
121 ingress:
122   enabled: false
123
124 resources: {}
125   # We usually recommend not to specify default resources and to leave this as a conscious
126   # choice for the user. This also increases chances charts run on environments with little
127   # resources, such as Minikube. If you do want to specify resources, uncomment the following
128   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
129   #
130   # Example:
131   # Configure resource requests and limits
132   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
133   # Minimum memory for development is 2 CPU cores and 4GB memory
134   # Minimum memory for production is 4 CPU cores and 8GB memory
135 #resources:
136 #  limits:
137 #    cpu: 2
138 #    memory: 4Gi
139 #  requests:
140 #    cpu: 2
141 #    memory: 4Gi