A mysql-client docker image for k8s deployment.
docker run --rm -it --name mysql-client andreswebs/mysql-client -u <user> -p<password> -h <host_ip_address> -P <port> -D <database>
(Notice that there is no space between -p
and the password string.)
To get a shell inside the running container:
docker exec -it mysql-client /bin/sh
You need a working k8s cluster and kubectl
configured.
kubectl apply -f mysql-client.yml
kubectl attach --namespace=mysql-client -ti mysql-client
mysql -u <user> -p<password> -h <host_ip_address> -P <port> -D <database>
(Notice that there is no space between -p
and the password string.)
Andre Silva
This project is licensed under the Unlicense.