updating the output to match the 'vm' namespace needed by the -vm yamls

and deleted redundant part
This commit is contained in:
Laurent Demailly 2017-11-08 20:49:11 -08:00 committed by GitHub
parent fbb7cb99ce
commit 99014c3134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 24 deletions

View File

@ -85,32 +85,19 @@ On the VM:
On a host with access to `istioctl` commands, register the VM and mysql db service On a host with access to `istioctl` commands, register the VM and mysql db service
```bash ```bash
istioctl register -n vm mysqldb <ip-address-of-vm> 3306 istioctl register -n vm mysqldb <ip-address-of-vm> 3306
# Sample output ```
$ istioctl register mysqldb 192.168.56.112 3306 Sample output:
I1015 22:24:33.846492 15465 register.go:44] Registering for service 'mysqldb' ip '192.168.56.112', ports list [{3306 mysql}] ```
I1015 22:24:33.846550 15465 register.go:49] 0 labels ([]) and 1 annotations ([alpha.istio.io/kubernetes-serviceaccounts=default]) $ istioctl register -n vm mysqldb 10.150.0.5 3306
W1015 22:24:33.866410 15465 register.go:123] Got 'services "mysqldb" not found' looking up svc 'mysqldb' in namespace 'default', attempting to create it I1108 20:17:54.256699 40419 register.go:43] Registering for service 'mysqldb' ip '10.150.0.5', ports list [{3306 mysql}]
W1015 22:24:33.904162 15465 register.go:139] Got 'endpoints "mysqldb" not found' looking up endpoints for 'mysqldb' in namespace 'default', attempting to create them I1108 20:17:54.256815 40419 register.go:48] 0 labels ([]) and 1 annotations ([alpha.istio.io/kubernetes-serviceaccounts=default])
I1015 22:24:33.910707 15465 register.go:180] No pre existing exact matching ports list found, created new subset {[{192.168.56.112 <nil> nil}] [] [{mysql 3306 }]} W1108 20:17:54.573068 40419 register.go:123] Got 'services "mysqldb" not found' looking up svc 'mysqldb' in namespace 'vm', attempting to create it
I1015 22:24:33.921195 15465 register.go:191] Successfully updated mysqldb, now with 1 endpoints W1108 20:17:54.816122 40419 register.go:138] Got 'endpoints "mysqldb" not found' looking up endpoints for 'mysqldb' in namespace 'vm', attempting to create them
I1108 20:17:54.886657 40419 register.go:180] No pre existing exact matching ports list found, created new subset {[{10.150.0.5 <nil> nil}] [] [{mysql 3306 }]}
I1108 20:17:54.959744 40419 register.go:191] Successfully updated mysqldb, now with 1 endpoints
``` ```
### Cluster admin Note that the 'mysqldb' virtual machine does not need and should not have special Kubernetes privileges.
If you previously run the mysql bookinfo on kubernetes, you need to remove the k8s mysql service:
```bash
kubectl delete service mysql
```
Run istioctl to configure the service (on your admin machine):
```bash
istioctl register mysql IP mysql:PORT
```
Note that the 'mysqldb' virtual machine does not need and should not have special Kubernetes privileges.
## Using the mysql service ## Using the mysql service