Skip to content

Commit 1d009d9

Browse files
authored
bump spilo and pooler version + update docs (#945)
1 parent 0ca30ba commit 1d009d9

12 files changed

+33
-57
lines changed

charts/postgres-operator/crds/operatorconfigurations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ spec:
305305
type: integer
306306
ring_log_lines:
307307
type: integer
308-
scalyr:
308+
scalyr: # deprecated
309309
type: object
310310
properties:
311311
scalyr_api_key:

charts/postgres-operator/templates/operatorconfiguration.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ configuration:
3232
{{ toYaml .Values.configTeamsApi | indent 4 }}
3333
logging_rest_api:
3434
{{ toYaml .Values.configLoggingRestApi | indent 4 }}
35-
scalyr:
36-
{{ toYaml .Values.configScalyr | indent 4 }}
3735
connection_pooler:
3836
{{ toYaml .Values.configConnectionPooler | indent 4 }}
3937
{{- end }}

charts/postgres-operator/values-crd.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ configGeneral:
2626
# Select if setup uses endpoints (default), or configmaps to manage leader (DCS=k8s)
2727
# kubernetes_use_configmaps: false
2828
# Spilo docker image
29-
docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p2
29+
docker_image: registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115
3030
# max number of instances in Postgres cluster. -1 = no limit
3131
min_instances: -1
3232
# min number of instances in Postgres cluster. -1 = no limit
@@ -252,23 +252,6 @@ configTeamsApi:
252252
# URL of the Teams API service
253253
# teams_api_url: http://fake-teams-api.default.svc.cluster.local
254254

255-
# Scalyr is a log management tool that Zalando uses as a sidecar
256-
configScalyr:
257-
# API key for the Scalyr sidecar
258-
# scalyr_api_key: ""
259-
260-
# Docker image for the Scalyr sidecar
261-
# scalyr_image: ""
262-
263-
# CPU limit value for the Scalyr sidecar
264-
scalyr_cpu_limit: "1"
265-
# CPU rquest value for the Scalyr sidecar
266-
scalyr_cpu_request: 100m
267-
# Memory limit value for the Scalyr sidecar
268-
scalyr_memory_limit: 500Mi
269-
# Memory request value for the Scalyr sidecar
270-
scalyr_memory_request: 50Mi
271-
272255
configConnectionPooler:
273256
# db schema to install lookup function into
274257
connection_pooler_schema: "pooler"

charts/postgres-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ configGeneral:
2626
# Select if setup uses endpoints (default), or configmaps to manage leader (DCS=k8s)
2727
# kubernetes_use_configmaps: "false"
2828
# Spilo docker image
29-
docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p2
29+
docker_image: registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115
3030
# max number of instances in Postgres cluster. -1 = no limit
3131
min_instances: "-1"
3232
# min number of instances in Postgres cluster. -1 = no limit

docs/administrator.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,8 @@ A secret can be pre-provisioned in different ways:
509509

510510
## Sidecars for Postgres clusters
511511

512-
A list of sidecars is added to each cluster created by the
513-
operator. The default is empty list.
514-
512+
A list of sidecars is added to each cluster created by the operator. The default
513+
is empty.
515514

516515
```yaml
517516
kind: OperatorConfiguration
@@ -527,7 +526,8 @@ configuration:
527526
- ...
528527
```
529528

530-
In addition to any environment variables you specify, the following environment variables are always passed to sidecars:
529+
In addition to any environment variables you specify, the following environment
530+
variables are always passed to sidecars:
531531

532532
- `POD_NAME` - field reference to `metadata.name`
533533
- `POD_NAMESPACE` - field reference to `metadata.namespace`

docs/reference/command_line_and_environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The following environment variables are accepted by the operator:
4545
all namespaces. Empty value defaults to the operator namespace. Overrides the
4646
`watched_namespace` operator parameter.
4747

48-
* **SCALYR_API_KEY**
48+
* **SCALYR_API_KEY** (*deprecated*)
4949
the value of the Scalyr API key to supply to the pods. Overrides the
5050
`scalyr_api_key` operator parameter.
5151

docs/reference/operator_parameters.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,18 @@ Those are top-level keys, containing both leaf keys and groups.
9393
repository](https://github.com/zalando/spilo).
9494

9595
* **sidecar_docker_images**
96-
*deprecated*: use **sidecars** instead. A map of sidecar names to Docker images to
97-
run with Spilo. In case of the name conflict with the definition in the cluster
98-
manifest the cluster-specific one is preferred.
96+
*deprecated*: use **sidecars** instead. A map of sidecar names to Docker
97+
images to run with Spilo. In case of the name conflict with the definition in
98+
the cluster manifest the cluster-specific one is preferred.
9999

100100
* **sidecars**
101-
a list of sidecars to run with Spilo, for any cluster (i.e. globally defined sidecars).
102-
Each item in the list is of type
101+
a list of sidecars to run with Spilo, for any cluster (i.e. globally defined
102+
sidecars). Each item in the list is of type
103103
[Container](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#container-v1-core).
104-
Globally defined sidecars can be overwritten by specifying a sidecar in the custom resource with
105-
the same name. Note: This field is not part of the schema validation. If the container specification
106-
is invalid, then the operator fails to create the statefulset.
104+
Globally defined sidecars can be overwritten by specifying a sidecar in the
105+
Postgres manifest with the same name.
106+
Note: This field is not part of the schema validation. If the container
107+
specification is invalid, then the operator fails to create the statefulset.
107108

108109
* **enable_shm_volume**
109110
Instruct operator to start any new database pod without limitations on shm
@@ -141,8 +142,8 @@ Those are top-level keys, containing both leaf keys and groups.
141142
at the cost of overprovisioning memory and potential scheduling problems for
142143
containers with high memory limits due to the lack of memory on Kubernetes
143144
cluster nodes. This affects all containers created by the operator (Postgres,
144-
Scalyr sidecar, and other sidecars except **sidecars** defined in the operator
145-
configuration); to set resources for the operator's own container, change the
145+
Scalyr sidecar, and other sidecars except **sidecars** defined in the operator
146+
configuration); to set resources for the operator's own container, change the
146147
[operator deployment manually](../../manifests/postgres-operator.yaml#L20).
147148
The default is `false`.
148149

@@ -215,12 +216,13 @@ configuration they are grouped under the `kubernetes` key.
215216
Default is true.
216217

217218
* **enable_init_containers**
218-
global option to allow for creating init containers in the cluster manifest to
219+
global option to allow for creating init containers in the cluster manifest to
219220
run actions before Spilo is started. Default is true.
220221

221222
* **enable_sidecars**
222-
global option to allow for creating sidecar containers in the cluster manifest
223-
to run alongside Spilo on the same pod. Globally defined sidecars are always enabled. Default is true.
223+
global option to allow for creating sidecar containers in the cluster manifest
224+
to run alongside Spilo on the same pod. Globally defined sidecars are always
225+
enabled. Default is true.
224226

225227
* **secret_name_template**
226228
a template for the name of the database user secrets generated by the
@@ -585,11 +587,12 @@ configuration they are grouped under the `logging_rest_api` key.
585587
* **cluster_history_entries**
586588
number of entries in the cluster history ring buffer. The default is `1000`.
587589

588-
## Scalyr options
590+
## Scalyr options (*deprecated*)
589591

590592
Those parameters define the resource requests/limits and properties of the
591593
scalyr sidecar. In the CRD-based configuration they are grouped under the
592-
`scalyr` key.
594+
`scalyr` key. Note, that this section is deprecated. Instead, define Scalyr as
595+
a global sidecar under the `sidecars` key in the configuration.
593596

594597
* **scalyr_api_key**
595598
API key for the Scalyr sidecar. The default is empty.

manifests/complete-postgres-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
# annotations:
88
# "acid.zalan.do/controller": "second-operator"
99
spec:
10-
dockerImage: registry.opensource.zalan.do/acid/spilo-12:1.6-p2
10+
dockerImage: registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115
1111
teamId: "acid"
1212
numberOfInstances: 2
1313
users: # Application/Robot users

manifests/configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ data:
1515
# connection_pooler_default_cpu_request: "500m"
1616
# connection_pooler_default_memory_limit: 100Mi
1717
# connection_pooler_default_memory_request: 100Mi
18-
connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-6"
18+
connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-7"
1919
# connection_pooler_max_db_connections: 60
2020
# connection_pooler_mode: "transaction"
2121
# connection_pooler_number_of_instances: 2
@@ -29,7 +29,7 @@ data:
2929
# default_cpu_request: 100m
3030
# default_memory_limit: 500Mi
3131
# default_memory_request: 100Mi
32-
docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p2
32+
docker_image: registry.opensource.zalan.do/acid/spilo-cdp-12:1.6-p115
3333
# enable_admin_role_for_users: "true"
3434
# enable_crd_validation: "true"
3535
# enable_database_access: "true"

manifests/operatorconfiguration.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ spec:
281281
type: integer
282282
ring_log_lines:
283283
type: integer
284-
scalyr:
284+
scalyr: # deprecated
285285
type: object
286286
properties:
287287
scalyr_api_key:

0 commit comments

Comments
 (0)