VEBA mascot - Otto the Orca

VMware Event Broker Appliance – Part II – Sample Code Prereqs (Knative)

In Part I of this series, we explored how to deploy the VEBA appliance. In Part II, we look at setting up a Windows workstation with the prereqs for interacting with VEBA using the Knative event processor

I first installed Visual Studio Code, a free open source code editor with wide community adoption. The installation is a simple next-next-finish. VS Code is not a requirement – any editor can be used.

We need 3 tools to deploy Knative functions to VEBA

Git

Sstart with the git download page.

I leave the defaults here

I know the basics of getting around vi, but spend a lot more time in Notepad++, so I switch to it here.

This seems to be an OK option – I’m not sure what people typically use. Through the sample code deployment I was only calling git from the Git Bash anyway, so I guess it doesn’t make a difference.

I don’t think I have a need to use Windows CAs so I kept OpenSSL.

I leave this default since it was the recommended Windows setting

I don’t like the Windows default console windows, I figured MinTTY couldn’t be any worse – I select it.

I leave all these default.

Docker

First we sign up for a Docker account

Now we download and install Docker Desktop. The installation is simple, you can find the official installation documentation here.

After installation there’s a little whale icon in my system tray

I right-click and log in with the account I just created

Now when I right-click the whale, it shows that I’m signed in.

Kubectl

You can get Kubectl from here. Download it to your machine, ensure the path to the location where you put the binary is in your PATH.N

Now we need to copy the Kubernetes config file to our laptop so we can administer it remotely. If you did not enable sshd when you deployed the appliance, connect to the console through vCenter and issue the command:

systemctl start sshd

I use WinSCP to copy files from the appliance over SSH.
NOTE: Make sure to enable hidden files and folders in Options>Preferences>Panels

Create a folder on your local system called .kube – that’s kube with a period in front of it – in your user directory – I create C:\Users\pkremer\.kube

Change to /root/.kube on the VEBA appliance. Copy ‘config’ from VEBA to your local system

You should now be able to run kubectl commands against the VEBA appliance from your remote machine.

kubectl get pods -A

Don’t forget to disable sshd

systemctl stop sshd

We have now installed all of the prereqs for running our first sample function. In Part III, we will look deploy our first Knative function.

4 comments

Leave a Reply

Your email address will not be published. Required fields are marked *