A Helm chart for deploying a Vite-based web application to Kubernetes.
This chart uses a container image hosted on GitHub Container Registry:
ghcr.io/marcuwynu23/vite-app-sample:latest
Clone the repository and install the chart:
git clone https://github.com/your-repo/vite-app-helm-charts.git
cd vite-app-helm-charts/vite-app
helm install vite-app .
helm upgrade vite-app .
Clean reinstall:
helm uninstall vite-app
helm install vite-app .
By default, the service is exposed using NodePort:
service:
type: NodePort
port: 80
minikube service vite-app
kubectl get svc
Then open:
http://localhost:<nodePort>
You can customize the deployment via values.yaml.
image:
repository: ghcr.io/marcuwynu23/vite-app-sample
tag: "latest"
pullPolicy: IfNotPresent
service:
type: NodePort
port: 80
ingress:
enabled: false
Enable ingress for production use:
ingress:
enabled: true
className: nginx
hosts:
- host: your-domain.com
paths:
- path: /
pathType: Prefix
Enable autoscaling:
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 80
Liveness and readiness probes are enabled:
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
vite-app/
├── Chart.yaml
├── values.yaml
├── templates/
│ ├── deployment.yaml
│ ├── service.yaml
│ └── ingress.yaml
kubectl get pods
kubectl logs <pod-name>
kubectl describe pod <pod-name>
helm template .
imagePullSecretsMIT License