Skip to content

Instantly share code, notes, and snippets.

@CaptTofu
Last active August 31, 2015 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CaptTofu/f0f493fdfe2a0e9b7581 to your computer and use it in GitHub Desktop.
Save CaptTofu/f0f493fdfe2a0e9b7581 to your computer and use it in GitHub Desktop.
(ansible-env)Patricks-MBP:kubernetes-vagrant-coreos-cluster patg$ kubectl get pods,services
NAME READY STATUS RESTARTS AGE
kube-dns-sqtap 3/3 Running 0 1d
pxc-node1 1/1 Running 0 3h
pxc-node2 1/1 Running 0 2h
pxc-node3 1/1 Running 0 1h
NAME LABELS SELECTOR IP(S) PORT(S)
kube-dns k8s-app=kube-dns,kubernetes.io/cluster-service=true,name=kube-dns k8s-app=kube-dns 10.100.0.10 53/UDP
53/TCP
kubernetes component=apiserver,provider=kubernetes <none> 10.100.0.1 443/TCP
pxc-node1 <none> name=pxc-node1 10.100.152.192 3306/TCP
4444/TCP
4567/TCP
4568/TCP
pxc-node2 <none> name=pxc-node2 10.100.132.197 3306/TCP
4444/TCP
4567/TCP
4568/TCP
core@node-03 ~ $ docker run -it mysql mysql -u root -p -h 10.100.132.197
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.22-72.0-56 Percona XtraDB Cluster (GPL), Release rel72.0, Revision 978, WSREP version 25.8, wsrep_25.8.r4150
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show status like 'wsrep_cluster_size';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| wsrep_cluster_size | 3 |
+--------------------+-------+
1 row in set (0.01 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment