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 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
# 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
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
vSphere HA Cluster (& ESXi hosts) Reconfiguration utility 1. Details Utility to add vSphere HA Cluster Advanced option and reconfigure HA on all clustered hosts - for changes to take effect. And restore the HA cluster configuration, incase there is a failure
vSphere-HA-Cluster-Reconfig-Utility-master.zip
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
//:: # 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
//:: # Author: Vikas Shitoleff//:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Description: Script to find all the rules associated with all the VMs in the DRS cluster //::# Reference: http://vthinkbeyondvm.com/how-to-get-all-drs-rules-associated-with-each-vm-in-a-drs-cluster-using-api-interesting-api-in-vsphere-6-0/ //:# 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/DRS //:: # Description: Script to find all the rules associated with all the VMs in the DRS cluster //::# Reference: http://vthinkbeyondvm.com/how-to-get-all-drs-rules-associated-with-each-vm-in-a-drs-cluster-using-api-interesting-api-in-vsphere-6-0/ //:# 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/ //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Description: Script to find all the rules associated with all the VMs in the DRS cluster //::# Reference: http://vthinkbeyondvm.com/how-to-get-all-drs-rules-associated-with-each-vm-in-a-drs-cluster-using-api-interesting-api-in-vsphere-6-0/ //:# 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/ #MIT #vSpherejavasdk #vThinkBeyondVM.com #vSphereManagementSDK #drs #Java
FindRulesForVMsInCluster.java
2 Comments - no search term matches found in comments.
What this script does: Report on DRS cluster VMs and its assciated VM-VM affinity/anti affinity rules
FindRulesForVMInCluster.ps1