# README
VKE-AGENT
Simple command line tool for setting up Kubernetes clusters. With this tool you can quickly provision both master and worker nodes.
Getting Started
Follow these steps to get started with using vke-agent
.
Prerequisites
The following prerequisites are required for the project to be used:
curl
command- A user account with
sudo
privileges
Installation
Follow these steps to build and run the project:
-
Clone this repository:
git clone https://github.com/vmindtech/vke-agent cd vke-agent
-
Build the project
env GOOS=linux GOARCH=amd64 go build .
-
Use the vke-agent command to create Kubernetes nodes:
./vke-agent --initialize={{.initiliazeFlag}} --rke2AgentType={{.rke2AgentType}} --rke2Token={{.rke2Token}} --serverAddress={{.serverAddress}} --kubeversion={{.kubeVersion}} --tlsSan={{.serverAddress}} --rke2ClusterName={{.clusterName}} --rke2ClusterUUID={{.clusterUUID}} --rke2ClusterProjectUUID={{.projectUUID}} --rke2AgentVKEAPIEndpoint={{.vkeAPIEndpoint}} --rke2AgentVKEAPIAuthToken={{.authToken}} --rke2NodeLabel={{.rke2NodeLabel}} --vkeCloudAuthURL={{.vkeCloudAuthURL}} --clusterAutoscalerVersion={{.clusterAutoscalerVersion}} --cloudProviderVkeVersion={{.cloudProviderVkeVersion}} --applicationCredentialID={{.applicationCredentialID}} --applicationCredentialKey={{.applicationCredentialKey}}
You can use the above command to create the master node. For worker nodes, you can use the following commands:
./vke-agent --initialize={{.initiliazeFlag}} --rke2AgentType={{.rke2AgentType}} --rke2Token={{.rke2Token}} --serverAddress={{.serverAddress}} --kubeversion={{.kubeVersion}} --tlsSan={{.serverAddress}} --rke2ClusterName={{.clusterName}} --rke2ClusterUUID={{.clusterUUID}} --rke2ClusterProjectUUID={{.projectUUID}} --rke2AgentVKEAPIEndpoint={{.vkeAPIEndpoint}} --rke2AgentVKEAPIAuthToken={{.authToken}} --rke2NodeLabel={{.rke2NodeLabel}} --vkeCloudAuthURL={{.vkeCloudAuthURL}} --clusterAutoscalerVersion={{.clusterAutoscalerVersion}} --cloudProviderVkeVersion={{.cloudProviderVkeVersion}} --applicationCredentialID={{.applicationCredentialID}} --applicationCredentialKey={{.applicationCredentialKey}}
License
Distributed under the APACHE-2.0 License. See LICENSE
for more information.