vRA 8 – Deploy Kubernetes Clusters & Access Them

Hellooo!

In my previous posts we’ve covered the following steps:

Now it’s time for Deploying K8s clusters using vRA 8 and accessing them later on.

Deploy Kubernetes Cluster

  1. Log on to vRA 8 and go to Service Broker
  2. Once in Service Broker go to ‘Catalog‘ and Request the K8s Cluster Blueprint. Fill in the details:
    Request 1
    Click ‘Submit‘ to order your K8s Cluster.
  3. You can monitor the progress in Service Broker under ‘Deployments‘:
    Request 3 In Progress
  4. In my Lab Environment it took around 20min. to deploy this K8s Cluster:
    Screenshot 2020-04-05 at 14.23.53
  5. Once Deployed you can view the details of your K8s Cluster under ‘Deployments‘ in Service Broker:
    Screenshot 2020-04-05 at 14.25.18

Great, your K8s cluster is deployed! Now let’s access it!

Access your Newly Deployed Kubernetes Cluster

  1. Go to your Newly Deployed Kubernetes Cluster in Service Broker and click on it to see the details. On the right you will see the Kubeconfig file for that cluster:
    Screenshot 2020-04-05 at 14.25.18
    Note: If you are going to connect to your Newly Deployed Kubernetes Cluster by using the FQDN of the Master, make sure that you’ve added a DNS record in your DNS environment or locally on your machine.
  2. Now you can use this Kubeconfig file to access your Newly Deployed Kubernetes Cluster. For example you could save this config file somewhere on your machine and modify the KUBECONFIG Environment Variable (if you’re using it) to include this Kubeconfig file too.
    Screenshot 2020-04-05 at 15.06.24
  3. You can then switch between clusters by using the following K8s command:
    kubectl config use-context <cluster-name>

    Screenshot 2020-04-05 at 14.44.13

  4. If you’re using Enterprise PKS and you’ve installed PKS CLI then you can get the credentials by executing the following command:
    pks get-credentials <k8s_cluster_name>

    This will result in the following:
    Screenshot 2020-04-05 at 14.40.59

  5. Also then you can switch between clusters using your kubectl commands (‘kubectl config use-context <cluster-name>‘).
  6. To see in which context you are currently working, use the following command:
    kubectl config current-context

    This will result in the following:
    Screenshot 2020-04-05 at 14.47.50

  7. List out all the Pods on our Newly Deployed Kubernetes Cluster:
    Screenshot 2020-04-05 at 14.53.57

Your environment is ready to deploy some Containers! Good luck!

One thought on “vRA 8 – Deploy Kubernetes Clusters & Access Them

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s