Mark,
You need to add a LoadBalancer for the yb-tservers service as well as starting up the minikube tunnel service on Windows 10 Server.
Add this to your yugabyte-statefulset.yaml:
apiVersion: v1
kind: Service
metadata:
name: yb-tservers-service
labels:
app: yb-tserver
spec:
clusterIP:
ports:
- name: ui
port: 9000
- name: rpc-port
port: 9100
- name: postgres
port: 5433
- name: cassandra
port: 9042
- name: redis
port: 6379
selector:
app: yb-tserver
type: LoadBalancer
Remember to uncomment the two lines for enabling Postgres support in YugaByte CE as noted here: https://docs.yugabyte.com/latest/quick-start/test-postgresql/#kubernetes
After you create the new statefulset you will see the new service:
PS C:\Users\acald\yugabyte> kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 27m
yb-master-ui LoadBalancer 10.101.100.103 10.101.100.103 7000:31598/TCP 26m
yb-masters ClusterIP None <none> 7000/TCP,7100/TCP 26m
yb-tservers ClusterIP None <none> 9000/TCP,9100/TCP,9042/TCP,6379/TCP,5433/TCP 26m
yb-tservers-service LoadBalancer 10.99.91.107 10.99.91.107 9000:30478/TCP,9100:30923/TCP,5433:31730/TCP,9042:31119/TCP,6379:30304/TCP 26m
It may show the EXTERNAL-IP as . In that case, execute minikube tunnel
from your PowerShell prompt to activate the tunnel service.
Finally, you can see a list of the endpoints with the following:
minikube service yb-tservers-service --url
It looks like the following:
PS C:\Users\acald\yugabyte> minikube service yb-tservers-service --url
http://192.168.1.159:30478
http://192.168.1.159:30923
http://192.168.1.159:31730
http://192.168.1.159:31119
http://192.168.1.159:30304
Since you are looking to connect to Postgres you can connect on port 31730 and the IP address noted in the output above.
Hope this helps. Let us know if you encounter further issues or have additional questions.
Alan