For information about creating a user for an app and connecting the app to a database using specific user and configuration information, see Connecting Apps to MySQL Instances. Configuration: OS: CentOS7 MySQL: MySQL Community 8 The port to the service is opened in the firewall. This DNS name is only resolvable within the Kubernetes cluster.Īn app should connect to the database using a narrowly-privileged database user created for the specific requirements of the app. I can access is locally (and via web phpmyadmin) But I can't access it from a remote computer. If an app is deployed on the Kubernetes cluster, the app can access the MySQL instance using the DNS name of the MySQL service. The service is used to connect an app to its MySQL database. Access MySQL From Cluster-Hosted ApplicationsĮach MySQL instance has a Kubernetes service named after the instance. Note: When you change the Spec.ServiceType from LoadBalancer to ClusterIP, your cloud provider might automatically delete the associated load balancer for the MySQL instance. For more information about how to change a property, see Change Other Configurations in Updating MySQL Instances. In the YAML file for the instance, change the value of the Spec.ServiceType property to ClusterIP and update the MySQL instance.EXTERNAL-IP with the external IP address allocated for the MySQL service (retrieved in Step 3)įor example: mysql -u report_admin -phunter2 -P 3306 -h .com. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |