Skip to content

rguske/cloud-native-runtimes-demo-magic

Repository files navigation

Demo-Magic Script VMware Cloud-Native-Runtimes

This demo-magic script will install the following solutions, as VMware Packages (Carvel), automagically 🪄

Prerequisites - General

  • internet access is required in order to add the public Tanzu Packages repository (tanzu package repository add)
  • the biggest part of the necessary prerequisites is the relocation of the Tanzu Packages for Tanzu Application Platform as well as for RabbitMQ
  • the installation of the Tanzu RabbitMQ Package from the VMware repository requires a valid Tanzu Network account
  • a running Kubernetes cluster with enough capacity (compute)
    • I'd recommend at least 3x large worker-nodes (e.g. 4-8 vCPUs and 8 - 16GB vRAM each)
  • a Load Balancer solution in place
    • we need VIP's for various services (like e.g. Sockeye)
  • the possibility to configure a DNS Wildcard Record
    • adjust the domain_name value in the values.yaml with your data
  • an existing vSphere Tag (mine: backup-basic-sla) which will be used by the example tagging-function in the script
    • I also created a dedicated service-user (svc-tagging) which will be used by the tagging operation
    • adjust the values in the tag_secret.json file with your tag and user data
  • a ReadOnly user in vSphere which we'll use in order to connect the VsphereSource to the vCenter Server (Event API)

Prerequisites - CLI

  • the demo-magic scripts requires pipeviewer (pv) - Install pv using brew
  • installed Knative (kn) CLI - LINK
  • kn vsphere Plugin installed - LINK
    • download the binary and mv it to /usr/local/bin/ (on Linux)
  • I'm also using the cli fun-tools figlet as well as lolcat within the script
    • brew install ...

VMware Packages and Versions

The following Cloud-Native-Runtimes (CNR) Packages will install the two Knative Building-Blocks Serving and Eventing:

NAME PACKAGE-NAME PACKAGE-VERSION
cloud-native-runtimes cnrs.tanzu.vmware.com 2.0.1
eventing eventing.tanzu.vmware.com 2.0.1

Specific versions which are included in both above listed Packages:

Name Release Version
Knative Serving 1.3.2
Knative Eventing 1.3.2
Knative Eventing RabbitMQ Integration 1.3.1
VMware Tanzu Sources for Knative 1.3.0
TriggerMesh Sources from Amazon Web Services (SAWS) 1.6.0
vSphere Event Sources 1.3.0

Additional installed VMware Packages which are necessary and a prerequisite:

NAME PACKAGE-NAME PACKAGE-VERSION
cert-manager cert-manager.tanzu.vmware.com 1.7.2+vmware.1-tkg.1
contour contour.tanzu.vmware.com 1.20.2+vmware.1-tkg.1

Also, it'll install a new rabbitmq-cluster deployment (using the Tanzu-RabbitMQ Operator), a RabbitMQ-Broker for Knative, a new Tanzu Source for Knative (vSphere Source) as well as an example PowerCLI function.

Resources