Help with setting externaltrafficpolicy to cluster

Hello All,

I am using using the helm chart psmdb-operator-1.17.0 and psmdb-db 7.0.12 to install a mongodb rep set server. I change the expose to true, exposeType to NodePort which does create the service but Im not able to access the rep set outside of the cluster unless I edit the service and change externalTrafficPolicy to Cluster. When the service is created the default for externalTrafficPolicy is Local, Is there a place in the helm charts for either the operator or the server that I can set so the policy always defaults to Cluster ?

Hi Henry,

Is there a place in the helm charts for either the operator or the server that I can set so the policy is defaults to Cluster ?

It is planned to be released in future releases as part of - [K8SPSMDB-739] - Percona JIRA. So, it may be available in v1.18.0.
Refer here - percona-server-mongodb-operator/deploy/cr.yaml at main · percona/percona-server-mongodb-operator · GitHub

Regards,
Vinodh Guruji

1 Like