Expose the MySQL outside the cluster

Hi,

I installed the Percona MySQL using the Percona K8S Operator.

And all seems to work fine :).

I now wants to access the database from outside the cluster (for testing)

The services are created as ClusterIP

How can I define the service (which service?) to be loadbalancer? (Working on DigitalOcean if it matter)

How can I define NodePort if for some reason the load balancer option is not working

Can you direct me to some documentation as I could find none

Thanks

Ok found it at last

Custom Resource options

Hello @Nehemia,

it should be simple as haproxy.serviceType: LoadBalancer in cr.yaml.

Did it work for you on DigitalOcean?

Hi @Nehemia ,

Could you please share the cr that you used to create the service type as no deport here?

I am bit stuck how to access the crunchy Postgres cluster in my ocp platform from my local terminal.

I am sorry to say I have ziro knowledge about this problem 3 years later
Good luck