( ardi | 2023. 09. 20., sze – 12:50 )

Mukodik.

Most ott akadtam meg, hogy mysql-client podban probalok bejutni az adatbazisba, de nem tudom a nevet.

A pelda szerint:

For access, you will need a MySQL server name. The syntax of the MySQL server in the Kubernetes cluster is given below:

stateful_name-ordinal_number.mysql.default.svc.cluster.local

#Example
mysql-set-0.mysql.default.svc.cluster.local

mysql -u root -p -h mysql-set-mig-0.default.svc.cluster.local
Enter password:
ERROR 2005 (HY000): Unknown MySQL server host 'mysql-set-mig-0.default.svc.cluster.local' (-2)
$

Hol talalom meg a clusteremben a FQDN-et?

Ardi