Not the answer you need?
Register and ask your own question!

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

Answers

  • sproninspronin Percona Staff Role

    Hello @Nehemia,


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


    Did it work for you on DigitalOcean?

Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.