You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/administrator.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -926,6 +926,41 @@ For the `external-dns.alpha.kubernetes.io/hostname` annotation the `-pooler`
926
926
suffix will be appended to the cluster name used in the template which is
927
927
defined in `master|replica_dns_name_format`.
928
928
929
+
## Node Ports
930
+
931
+
Alternatively to Load Balancers Node Ports can be used. Kubernetes services with type
932
+
`NodePort`redirect traffic from a specified port on your kubernetes nodes to your service.
933
+
To expose your services to an external network with NodePorts you can set `enableMasterNodePort` and/or `enableReplicaNodePort` to `true`
934
+
in your cluster manifest. In the case any of these variables are omitted from the manifest, the operator configuration settings `enable_master_node_port` and `enable_replica_node_port` apply.
935
+
Note that the operator settings affect all Postgresql services running in all namespaces watched
936
+
by the operator.
937
+
938
+
**Enabling a NodePort configuration will override the corresponding LoadBalancer configuration.**
939
+
940
+
There are multiple options to specify service annotations that will be merged
941
+
with each other and override in the following order (where latter take
2. `serviceAnnotations` specified in the cluster manifest
946
+
3. `masterServiceAnnotations` and `replicaServiceAnnotations` specified in the cluster manifest
947
+
948
+
Load-Balancer specific annotations are not applied.
949
+
950
+
Node port services can also be configured for the [connection pooler](user.md#connection-pooler) pods
951
+
with the manifest flags `enableMasterPoolerNodePort` and/or `enableReplicaPoolerNodePort` or in the operator configuration with `enable_master_pooler_node_port`
952
+
and/or `enable_replica_pooler_node_port`.
953
+
954
+
To configure which ports Kubernetes should use for your NodePort service you can configure ports in your cluster manifest
955
+
for each type:
956
+
957
+
- masterNodePort
958
+
- masterPoolerNodePort
959
+
- replicaNodePort
960
+
- replicaPoolerNodePort
961
+
962
+
When not defined or set to 0 kubernetes will choose a port for you from [your kubernetes cluster's configured range](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport).
963
+
929
964
## Running periodic 'autorepair' scans of K8s objects
930
965
931
966
The Postgres Operator periodically scans all K8s objects belonging to each
0 commit comments