Deploy a MySQL Data Service
- Login to PDS https://prod.pds.portworx.com
- Click 'MySQL' Under Deploy Data Service
- Enter mysql ds name.
- Select Target cluster and Namespace
- Change Resource and number of nodes if needed.
- Click Deploy.
Once MySQL is up. Get the vip dns entry.
- On the data service click connection
- Copy the DNS name for example
my-jowings-k9tqde-mysql-0-vip.sales-staging.pds-dns.io
it should have VIP in the name. - Paste this into
01-secrets.yaml
for all three microservices. - Now in the PDS UI click the "Copy Password" link.
- Paste this into
01-secrets.yaml
kubectl apply -f prep/
This will setup the services and secret for Petclinic to connect to MySQL.
kubectl apply -f deploy/
kubectl -n spring-petclinic get svc
- paste the api service loadbalancer into your browswer. For example
a93d12935c58946aeb3a23ad695809e7-2072184173.us-west-2.elb.amazonaws.com
NOTE This is an external LB and exposed to the internets. DO NOT Leave this up for too long as unathenticated apps like Petclinic are a perfect target of bad guys. - view and create data.
- view the metrics in PDS.
- Do PX ENTERPRISE failover/DR demos if you wish.