Assumes you have already created a PKS/K8s Cluster with something similar to below.
- pks login -a uaa-svr.domain-name.com -u alana -p somepassword -k
- pks create-cluster ga-routed-demo --external-hostname ga-routed-demo.domain-name.com --plan small --num-nodes 2
- pks get-credentials ga-routed-demo
- pks cluster ga-routed-demo
- Kubernetes Master IP(s): 10.41.0.2
- NOTE: We have routed access to the K8S Master node in this setup (10.41.0.2) but the CERTIFICATES were generated with the —external-hostname parameter which is ga-routed-demo.domain-name.com which means that is how we will need to address the Master node. To accomplish this we will need to add a DNS entry for this hostname and IP
- echo "10.41.0.2 ga-routed-demo.domain-name.com" >> /etc/hosts
- kubectl config get-contexts
- kubectl config use-context ga-routed-demo
- kubectl get nodes -o wide