
K3s marketplace application offers a lightweight Kubernetes distribution optimized for fast and efficient deployments. Designed for resource-constrained environments like edge computing, it simplifies the management of modern applications without the complexity of traditional Kubernetes setups.
Vultr's K3s marketplace application simplifies Kubernetes deployments and includes essential tools like kubectl and helm to manage and orchestrate your deployments with ease. It also includes pre-installed containers and services preinstalled to run applications on your server.
Follow this guide to use Vultr's K3s Vultr marketplace application to access a K3s cluster, enable remote access and deploy applications.
Follow the steps below to deploy the K3s marketplace application using the Vultr Console.
Open the Vultr Console Vultr Console, navigate to Products -> Compute and click Deploy Server.
Select your desired instance type such as Optimized Cloud Compute or Cloud Compute.
Choose your preferred Vultr location.
Select an instance plan based on your project needs.
Click the Marketplace Apps tab, enter and select K3s.
Optional: Enter the K3s server URL and Token of an existing K3s cluster to add additional nodes.
Optional: Select an SSH key to enable on the instance.
Enter your desired hostname and instance label.
Select any Additional Features to enable on the instance.
Click Deploy to start the instance deployment process.
When the deployment process is complete, click the instance to open its management page.
Follow the steps below to access the K3s cluster and view all active nodes.
Find and copy the instance's SSH credentials including the public IP address, and root user password in the Overview tab.
Use SSH to access the K3s instance. Replace 192.0.2.100 with the actual instance's IP address.
Accept the SSH fingerprint key and enter the root user password when prompted.
View the active K3s version.
Output:
View all active nodes in the K3s cluster.
Output:
The K3s instance includes a k3s-public.yaml configuration file that contains all credentials to access the K3s cluster using tools like Kubectl and Helm from other hosts. Follow the steps below to verify the default configuration path, configure the firewall, and enable remote access to the K3s cluster.
View the UFW status and verify the active firewall rules.
Output:
The K3s marketplace application is configured with all necessary firewall rules by default based on the above output. The following network ports are allowed through the firewall based on the above output.
22: The SSH port for secure remote access to the server.6443: The Kubernetes API port that allows remote access to the K3s cluster's control plane.30000:32767/tcp: The Kubernetes NodePort services range used to expose cluster applications to external networks. Run the following command to allow connections to the default Kubernetes API server port 6443 if the rule does not already exist.
View the k3s-public.yaml file contents in the /root directory to use when connecting to the K3s cluster from a remote workstation.
Your output should be similar to the one below.
Use the above /root/k3s-public.yaml configuration to replace the .kube/config file on your workstation to connect to the K3s cluster.
List all active nodes in the K3s cluster when connected.
Output:
Follow the steps below to deploy a sample application to the K3s cluster.
Create a new sampleapp.yaml file.
Add the following configurations to the sampleapp.yaml file to create a new deployment, service and configmap.
Save and close the file.
Apply the configuration to the K3s cluster.
Output:
View all deployments and verify that the new deployment is ready.
Output:
View all services, verify that the greetings service is available and note the external port mapping.
Output:
The greetings-service is accessible with the NodePort 32115 based on the above 80:32115/TCP port information output.
View all pods in the cluster.
Output:
Access the greetings-service NodePort service port 32115 using your K3s server's IP address in a web browser such as Chrome. Replace 192.0.2.100 with your actual server's IP address.
Verify that the application page displays a Greetings from Vultr message.
You have deployed the Vultr's K3s marketplace application, enabled remote access and deployed applications on the K3s cluster. K3s eliminates the complexities of setting up Kubernetes which enables developers to focus on managing applications and scaling deployments effectively.
0 Comments
Be the first to comment and share your perspective with the community.