-
Notifications
You must be signed in to change notification settings - Fork 15
/
postgresql.dev4devs.com_v1alpha1_database_cr.yaml
71 lines (58 loc) · 2.8 KB
/
postgresql.dev4devs.com_v1alpha1_database_cr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
apiVersion: postgresql.dev4devs.com/v1alpha1
kind: Database
metadata:
name: database
spec:
# ---------------------------------
# IMPORTANT: In this CR you will find an example of all options and possible configurations.
# However, by default values are applied by the operator if values are not specified below.
# ---------------------------------
# ---------------------------------
# ## Default Setup
# ---------------------------------
size: 1
databaseMemoryLimit: "512Mi"
databaseMemoryRequest: "128Mi"
databaseCpuLimit: "60m"
databaseCpu: "30m"
databaseStorageRequest: "1Gi"
# The imaged used in this project is from Red Hat. See more in https://docs.okd.io/latest/using_images/db_images/postgresql.html
image: "centos/postgresql-96-centos7"
# Environment Variables
# ---------------------------------
# Following are the values which will be used as the key label for the environment variable of the database image.
# NOTES:
# - They need to be as the values expected by the image used
# - If you are using the optional setup to allow the operator looking for this value in a ConfigMap pre-existent then it will look for these keys by default
# ---------------------------------
databaseNameKeyEnvVar: "POSTGRESQL_DATABASE"
databasePasswordKeyEnvVar: "POSTGRESQL_PASSWORD"
databaseUserKeyEnvVar: "POSTGRESQL_USER"
# The following values will be used fill the env variables. (Optional)
# They will be not required if you are using the configMap setup
# ---------------------------------
databaseName: "example"
databasePassword: "postgres"
databaseUser: "postgres"
# ---------------------------------
# ## Customizations Options
# ---------------------------------
# Database Container
# ---------------------------------
# Name which will be used to create the container where the database will be running
# containerName: "database"
# databasePort: 5432
# Use the following spec if you would like to define the image pull policy
# containerImagePullPolicy: "IfNotPresent"
# Get Values from ConfigMap
# ---------------------------------
# NOTE: It is very useful if you would like to centralize and share this information with your solutions
# The following attribute allows you tell for the operator that it should look for the data to create the env vars is some
# ConfigMap which pre-exist in the cluster
# configMapName: "cfgmap-name"
# The following specs allow you customize the name of the keys which the operator should look for the env vars in the configMap.
# configMapDatabaseNameKey: "POSTGRESQL_DATABASE"
# configMapDatabasePasswordKey: "POSTGRESQL_PASSWORD"
# configMapDatabaseUserKey: "POSTGRESQL_USER"
# The following allow you customize the name of the Storage Class that should be used
# databaseStorageClassName: "standard"