A guide explaining how to deploy applications on your Vultr Kubernetes Engine cluster.
Vultr Kubernetes Engine (VKE) provides a streamlined way to deploy pre-configured applications such as AMD Device Config, AMD GPU Operator, Cert-Manager, Vultr Webhook, Exascaler CSI, kube-state-metrics, Kube AI Models, Kubernetes Dashboard, Longhorn, and Rook Ceph. These applications extend cluster functionality by enabling features like GPU acceleration, certificate management, storage integration, autoscaling, and monitoring. You can deploy these applications with default settings or customize them using YAML configurations to meet specific requirements.
Follow this guide to deploy a pre-configured application on your Vultr Kubernetes Engine cluster in your Vultr account using the Vultr Customer Portal or Terraform.
Ensure the Terraform Kubernetes provider is configured using your VKE kubeconfig.
provider "kubernetes" {
config_path = "./kubeconfig.yaml" # from VKE cluster configuration
}
Define a simple Deployment (or use Helm) and apply.
resource "kubernetes_namespace" "apps" {
metadata { name = "apps" }
}
resource "kubernetes_deployment" "nginx" {
metadata {
name = "nginx"
namespace = kubernetes_namespace.apps.metadata[0].name
labels = { app = "nginx" }
}
spec {
replicas = 1
selector { match_labels = { app = "nginx" } }
template {
metadata { labels = { app = "nginx" } }
spec {
container {
name = "nginx"
image = "nginx:1.25"
port { container_port = 80 }
}
}
}
}
}
Apply the configuration and observe the following output:
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
No comments yet.