# Author: Vikas Shitole # Description: Python script to configure/enable vSphere Supervisor cluster on the given cluster # Reference: https://vthinkbeyondvm.com/script-to-configure-vsphere-supervisor-cluster-using-rest-apis/ # How to setup vCenter REST API environment?: http://vthinkbeyondvm.com/getting-started-with-vcenter-server-rest-apis-using-python/ #vSphereAutomationSDKforREST #vSphereSupervisorclusterAPIs #Python #vspherewithkubernestes #MIT #vspherewithkubernetes #vSphere
configure_supervisor_cluster.py
This class is to enable vSphere Kubernetes cluster Description: -- - This class is used to enable vSphere Kubernetes cluster(supervisor cluster) on a given cluster using Java Rest APIs. - It supports both DHCP or STATICRANGE mode, for network configurations. - It automatically finds compatible virtual distributed switch and edgecluster(optional) on a given cluster. - It gives cluster compatibility reasons. - To use this class add below jars in the build path libraries/dependencies
EnableVsphereKubernetesCluster.java
# Author : Vikas Shitole # Description: Python script to create namespace on the top of vSphere Supervisor cluster # Reference: https://vthinkbeyondvm.com/script-to-configure-vsphere-supervisor-cluster-using-rest-apis/ # How to setup vCenter REST API environment?: http://vthinkbeyondvm.com/getting-started-with-vcenter-server-rest-apis-using-python/ #vSphereAutomationSDKforREST #vspherewithkubernetes #vSphereSupervisorclusterAPIs #MIT #vspherenamesaces #Python #vSphere
create_namespace.py
This script wil check the Supervisor Cluster health status #vcf9 #vSphereAutomation #tanzu #Python
get_supervisor_cluster_health.py
This script will get the Supervisor cluster credentials #vSphereAutomation #vcf9 #tanzu
get_supervisor_cluster_credentials.py
This script will create Namespace in the supervisor cluster #vSphereAutomation #vcf9 #tanzu
Using vRA to deploy vSphere with Tanzu Namespaces & Guest Clusters This repository contains the code used to create the contructs for deploying vSphere with Tanzu Supervisor Namespaces and Guest Clusters. High Level Steps To achieve our requirements, we’ll be configuring the following: Cloud Assembly VCF SDDC Manager Integration Kubernetes Cloud Zone – Tanzu Supervisor Cluster Cloud Template to deploy a new Tanzu Supervisor Namespace Code Stream Tasks to provision a new Supervisor Namespace using the Cloud Assembly Template Tasks to provision a new Tanzu Guest Cluster inside of the Supervisor namespace using CI Tasks and the kubectl command line tool Tasks to create a service account inside of the Tanzu Guest Cluster Tasks to create Kubernetes endpoint for the new Tanzu Guest Cluster in both Cloud Assembly and Code Stream Service Broker Catalog Item to allow End-Users to provision a brand new Tanzu Guest Cluster in its own Supervisor Namespace To get started, please see this blog post: https://dy.si/RM9Sr2 #Apache2.0 #Deploy #vRealizeAutomation #vSphere #OtherLanguage #tanzu #CodeStream #vRealizeAutomation #vRealizeAutomationCloud #vRA
vRA-Deploy-Tanzu-Clusters-main.zip
WCPCTL WCPCTL A kubectl style command line tool to interact with vSphere 7 with Tanzu Supervisor Cluster...This can be used to spin up NSX-T or vSphere NW based Supervisor Cluster
wcpctl-master.zip
//:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/Storage //:: # Reference: http://vthinkbeyondvm.com/vsphere-6-0-cool-apis-to-mark-local-host-hdd-to-ssd-ssd-to-hdd-sample-api-script/ //:: # Description: Mark the local Lun of the host as SSD for testing purpose. //::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java-sdk-for-vmware-vsphere-step-by-step-guide-for-beginners///:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/Storage //:: # Reference: http://vthinkbeyondvm.com/vsphere-6-0-cool-apis-to-mark-local-host-hdd-to-ssd-ssd-to-hdd-sample-api-script/ //:: # Description: Mark the local Lun of the host as SSD for testing purpose. //::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java-sdk-for-vmware-vsphere-step-by-step-guide-for-beginners/ //:: # Author: Vikas Shitole //:: # Product/Feature: vCenter Server/Storage //:: # Reference: http://vthinkbeyondvm.com/how-to-quickly-get-vsphere-cluster-resource-usage-cpu-mem-storage-using-api-cool-api-in-vsphere-6-0/ //:: # Description: Reporting memory, cpu and storage usage acorss all the clusters in vCenter server. //::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java-sdk-for-vmware-vsphere-step-by-step-guide-for-beginners/ #vThinkBeyondVM.com #vSpherejavasdk #vSphereManagementSDK #Java #MIT #vSphere
GetClusterResourceUsage.java
vSphere Fault Tolerance Feature API operations utility 1. Details Utility to illustrate vSphere Fault Tolerance operations on provided Cluster and VM. Illustrates how to Enable, Poweron FT VM Disable, Enable Secondary VM Make Primary VM / Test Failover Flow through of the solution: Connect to provided vCenter Server and Retrieve all Clusters. Check if user provided cluster exists and if vSphere HA is enabled on cluster. Search for user provided VM or Pick a VM from one of the clustered host Enable FT, monitor for secondary VM creation Power on FT VM, monitor for Secondary VM power state and FT Pair protection state Disable Secondary VM Enable Secondary VM, monitor for FT Pair protection state to restore (i.e enabled and running) Promote Secondary to Primary VM ('Test Failover' : Kill primary and check Secondary VM gets promoted to Primary and a new secondary VM gets created), monitor FT Pair protection state Revert the inventory state: Power off VM and Turn off FT 2
vSphere-FaultTolerance-API-Operations-master.zip