Documentation ¶
Overview ¶
Package cmd defines commands for tkg-cli
Index ¶
Constants ¶
View Source
const ( // ClusterRoleNone defines cluster role none ClusterRoleNone = "<none>" // Whilespace defines whitespace Whilespace = " " // TableSeparator defines table separator TableSeparator = " " // MessageLengthLimit defines limit on the length of the message displayed MessageLengthLimit = 100 // GroupItemLimit defines limit on number of groups displayed GroupItemLimit = 2 )
View Source
const Indentation = ` `
Indentation defines an indent
Variables ¶
View Source
var InitCmd = &cobra.Command{ Use: "init", Short: "Create a Tanzu Kubernetes Grid management cluster", Long: LongDesc(` Create a Tanzu Kubernetes Grid management cluster including initializing it with Cluster API components appropriate for the target infrastructure. `), Example: Examples(` # Create a management cluster on AWS infrastructure, initializing it with # components required to create workload clusters through it on the same infrastructure # by bootstrapping through a self-provisioned bootstrap cluster. tkg init --infrastructure=aws # Create a management cluster, but on vSphere infrastructure instead, # using cluster plan 'prod'. tkg init --infrastructure=vsphere --plan prod # Launch an interactive UI to configure the settings necessary to create a # management cluster on vSphere infrastructure. tkg init --infrastructure=vsphere --ui # Create a management cluster on AWS infrastructure by using an existing # bootstrapper cluster. The current kube context should point to that # of the existing bootstrap cluster. tkg init --use-existing-bootstrap-cluster --infrastructure=aws # Create a management cluster on AWS using a particular plan using 'i3.large' instance size # for control plane nodes, and 'm5.large' size for worker nodes. tkg init --infrastructure=aws --controlplane-size i3.large --worker-size m5.large -p prod Note: The current cluster pointed to by the kubeconfig file will only be used to bootstrap the creation of the management cluster if --use-existing-bootstrap-cluster argument is supplied [+] : instance size options available for vSphere are as follows: vSphere: [extra-large,large,medium,small] [*] : VMware's Customer Experience Improvement Program ("CEIP") provides VMware with information that enables VMware to improve its products and services and fix problems. By choosing to participate in CEIP, you agree that VMware may collect technical information about your use of VMware products and services on a regular basis. This information does not personally identify you. Set this flag to false if you choose not to participate in the program. If this flag is not set, then the value from the cluster-config is used to determine the CEIP participation status. CEIP participation is true by default.`), Run: func(cmd *cobra.Command, args []string) { log.UnsetStdoutStderr() displayLogFileLocation() err := runInit() verifyCommandError(err) }, }
InitCmd defines init command
View Source
var RootCmd = &cobra.Command{ Use: "tkg", Short: "tkg : a tool for provisioning management or Tanzu Kubernetes Grid clusters", Long: LongDesc(` VMware Tanzu Kubernetes Grid Consistently deploy and operate upstream Kubernetes across a variety of infrastructure providers. Documentation: https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/index.html `), }
RootCmd defines root command
View Source
var Warningvsphere7WithPacific = `` /* 550-byte string literal not displayed */
Warningvsphere7WithPacific ...
View Source
var Warningvsphere7WithoutPacific = `` /* 598-byte string literal not displayed */
Warningvsphere7WithoutPacific ...
Functions ¶
Types ¶
This section is empty.
Source Files ¶
- add.go
- add_region.go
- common.go
- config.go
- config_cluster.go
- config_permission.go
- config_permission_aws.go
- create.go
- create_cluster.go
- delete.go
- delete_cluster.go
- delete_machine_health_check.go
- delete_region.go
- describe.go
- describe_cluster.go
- get.go
- get_ceip.go
- get_cluster.go
- get_credentials.go
- get_kubernetes_versions.go
- get_machine_health_check.go
- get_region.go
- init.go
- root.go
- scale.go
- scale_cluster.go
- set.go
- set_ceip.go
- set_machine_health_check.go
- set_region.go
- update_credentials.go
- update_credentials_cluster.go
- update_credentials_region.go
- upgrade.go
- upgrade_cluster.go
- upgrade_region.go
- version.go
Click to show internal directories.
Click to hide internal directories.