Friday, April 13, 2018

VMware's release storm




You probably woke up today just thinking about just another regular Friday, right?
During my matinal e-mail check, I was surprised by the number of new product's version VMware has released, some are just bug fixes while others contain full new amazing features.

I will highlight the ones I think it’s more relevant, but you can check all the details on each Product’s release.
Don’t be afraid with the number of details to read, focus on the products you have on your environment today instead, I’m sure you will find some fix or new feature that will certainly make your life easier !!!

Should we begin ?

The most amazing feature is new out of the box custom request form that removed the need for wrapping infrastructure and PaaS blueprints into XaaS blueprints.
Definitely a game change. You might also enjoy the capability of deploying vSphere blueprints from OVF or OVA.

vRB still closing the gap against Chargeback when it comes to vCD;
Talking about it, what about Overage policy for allocation pool models applying differential rate for vCPU and RAM usage, killer case for Service Providers!!
Also adding storage tiers pricing based on storage policy, charge of network bandwidth usage and data ingress and egress.
VMware Cloud on AWS got some new feature that worth checking as well.

That’s definitely a product you want on your toolbelt, debuting on this version is the install pre-checker, validating your environment before starting the deployment, content lifecycle management allowing you to manage the release of content such blueprints and workflows across multiples environment.

vROPs still focus on continuous performance optimization and capacity management features, what you can prove by those enhancements;
- 30% footprint reduction when monitoring the same number of objects;
- predictive real-time analytics;
- software license optimization aware for workload placements;
- native cost visibility;
- new quickstart page, customized homepage, enhanced vSAN dashboards and much more.

If you are looking for a central place to check the health of your entirely SDDC, this management pack is made for you. Now with improved vSAN and vCenter alerts, agentless vRA health and vROPs sizing dashboard.

This management pack is great, it provides out of the box vCenter self-healing workflows that act upon alerts…. How great is that ?!?!

Besides some bug fixes, It added support for vCloud Director 9.1

Although it’s in maintenance mode it still receiving fixes and now it’s compatible with vROPs 6.7
If you are looking for a more long-term solution, take a look at vRealize Network Insight
 
You don’t need to deploy dedicated instances for tenants anymore, multi-tenancy is now available on vRO, along with an updated Web-Based Clarity UI that brings centralized log views and workflow details directly on the monitoring client.

This minor release added support for Kubernetes 1.9.5 and Golang 1.9.4 along with a few fixes, from which I highlight;
- nodes are drained before they stop, minimizing downtime.
- unmount docker volumes fixes,
- BOSH DNS issues fix.

vRealize Log Insight 4.6.0 | April 12th 2018
Enhanced support for up to 15 vCenters per node, If some component suddenly stops sending log you can be notified about it, additional APIs for creating/deleting.

It worth mentioning the vRCS will no longer work with vRA 7.4 or later and its functionality is moving to vRealize Lifecycle Manager, but if you still at vRA 7.3 you should get its new version with a lot of improvements and defect fixes, like name of approvers is now recorded in pipeline executions, SLA for manual approvals and out of the box destroy action for deployments.

Happy Friday 13th

Friday, April 6, 2018

VMware Pivotal Container Service - PKS CLI

Finally, VMware Pivotal Container Service command line options series got to its end.
Featuring today PKS command line tool, allowing cloud admins to create, manage and delete kubernetes clusters within PKS.

Let's the fun begins

*** Installing PKS CLI ***
- Download PKS CLI tool from Pivotal Network;

obs: I'm focused on the Linux version, but it has a version for other platforms as well.


- Once transferred to your system make it executable;
Run: chmod +x pks-linux-amd64

- Move the pks cli to the bin directory;
Run: cp pks-linux-amd64 /usr/local/bin/pks

- You can test and check it’s version just running the command below;
Run: pks --version






*** Connecting to PKS *** 
Now that we have everything set up it's time to have some fun.

Let’s begin logging in to our PKS system:
Run: pks login -a “UAA_URL” -u “user_id” -p “password” -k

Obs: If you don’t know what the UAA_URL is or the user to connect to, go back and check the previous post.

*** Managing Kubernetes Cluster ***
- Creating kubernetes cluster;
Run: pks create-cluster “cluster_name” --external-hostname “address” --plan “plan_name”

Obs: external-hostname is the address from which to access the cluster Kubernetes API, also plans are part of Pivotal Container Service Tile.


- It's also easy to check all clusters in the system;
Run: pks clusters

- If you want to get a cluster's details;
Run: pks cluster “cluster_name”



- What about scaling out your cluster with a single command and the platform will take care of everything on your behalf
Run: pks resize “cluster_name” --num-nodes “X”

“X” means the number of desired worker nodes

- Finally you can delete your cluster when you don't need it anymore
Run: pks delete-cluster “cluster_name”

That’s all for the PKS command line series, now you are empowered with all the tools required to deliver and manager Kubernetes cluster at the speed and agility the business demands.

Wednesday, March 28, 2018

VMware Pivotal Container Service – User Account and Authentication CLI

Continuing my series of command lines options for managing VMware Pivotal Container Service (PKS), today I present you the User Account and Authentication command line.

The primary role of UAAC is to create, delete and manage users within the context of PKS, which means give Cloud Admins authority to create and manage Kubernetes clusters themselves, giving them the freedom and agility the business demands.

Let's see how easy it is:

*** Installing UAAC CLI ***
UAAC is installed with the use of gem, which allows you to interact with RubyGems, so in order to use it first, we need to install ruby and ruby-dev.
Obs: I’m using Ubuntu, if you are using other distribution use the accordingly install tool.

- Install Ruby
Run: apt install ruby

- Install ruby-dev
Run: apt install ruby-dev

Now that the prerequisites are done, let's install UAAC
- Install UAAC
Run: gem install cf-uaac

To make sure UAAC has been installed successfully
- Testing UAAC installation
Run: uaac version


*** Connecting to PKS ***
With UAAC installed the first thing we have to do is point it to our PKS target.

- Targeting PKS
Run: uaac target https://”UAA_URL”:8443 --skip-ssl-validation

During Pivotal Container Service Tile configuration, we set up the UAA URL.

 
Once the target is configured, log in with the credential to perform the actions you want.
 Since I want to create users I’m using admin.

- Login to UAA
Run: uaac token client get admin -s “password”

You can find the password as part of Pivotal Container Service Tile


































*** Creating Users ***
Now it’s just a matter of adding the users

- create user
Run: uaac user add “user_id” --emails “e-mail” -p “password”

The final thing is to attribute some privileges to the user
- adjusting group membership
Run: uaac member add “group” “user_id”

Thinking about PKS cluster’s management we have two main groups;
- pks.clusters.admin: allow the user to create and manage all clusters within the system;
- pks.clusters.manage: allow the user to create and manage only the cluster’s they own;

That’s all I have for today’s post, next one I will show you how to create Kubernetes cluster with the users we just created.

Stay tuned


Monday, March 5, 2018

VMware Pivotal Container Service - Bosh CLI

While VMware Pivotal Container Service UI is great, there are a few things you still need to perform on the command line (or API requests), like troubleshooting and stuff.

Of course, you could just SSH into Ops Manager and run every command from there, but giving access to this crucial resource to others is far from ideal.
That’s why I decided to create some basic tutorials on how to access and perform PKS tasks remotely throughout the CLI.

The tutorials will cover:

Bosh CLI is intended to manage Bosh resources, tasks and objects; In other for PKS to be able to instantiate VMs (K8s Master and Nodes) on vCenter, it needs a broker which has specific vSphere CPI, that’s the Ops Director you first deploy on your PKS environment.



After you deploy it you can connect to the Bosh Director service running within and see the VMs and tasks it’s managing.

*** Installing Bosh CLI ***

- Download bosh cli;   
  Run: wget https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-2.0.48-linux-amd64
 

- Make it executable;
  Run: chmod +x bosh-cli-2.0.48-linux-amd64

- Move the CLI to the bin directory;
  Run: cp bosh-cli-2.0.28-linux-amd64 /usr/local/bin/bosh


- You can test if it's installed properly;
  Run: bosh -v

*** Connecting to Bosh Director ***
Once you get the bosh CLI installed you can point it to your Bosh Director and start issuing commands.

If you are using a self-signed certificate, don’t forget to first download the root CA certificate
- Go to PKS Settings;

On the Advanced option, download the Root CA Certificate;



- Create an environment alias for future reference;
  Run: bosh alias-env "alias" -e "Ops-Director" --ca-cert "CA_CERT_Path"

- Login with the desired credentials (for this purpose I’m using director);
  Run: bosh -e “alias” log-in

You can get the credentials from the Ops Director’s Credentials tab



You are ready to go !! It's possible to create as many environments as you need and you just need to specify which environment the command will run against, like:
bosh -e "alias" tasks

But, If you have a single environment it’s easier to set up a system environment and then you can omit the parameter.
Export BOSH_ENVIRONMENT=”alias”

*** Bosh CLI examples ***

Here are a few commands to get you started

Checking all tasks performed on the system;
Run: bosh tasks -ar

If you need details about a specific task;
Run: bosh tasks "ID" 

To list all VMs provisioned by the system;
Run:  bosh vms

SSH into a specific VM without providing any credentials;
Run: bosh ssh -e “alias” -d “deployment_ID” “vm_Instance”

You can get the deployment ID and VM instance from the bosh vms command.

that’s it, stay tuned for the next basic PKS tutorials.


Who am I

My photo
I’m an IT specialist with over 15 years of experience, working from IT infrastructure to management products, troubleshooting and project management skills from medium to large environments. Nowadays I'm working for VMware as a Consulting Architect, helping customers to embrace the Cloud Era and make them successfully on their journey. Despite the fact I'm a VMware employee these postings reflect my own opinion and do not represents VMware's position, strategies or opinions. Reach me at @dumeirell

Most Viewed Posts

Blog Archive