-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-k8s.sh
More file actions
44 lines (34 loc) · 1.06 KB
/
deploy-k8s.sh
File metadata and controls
44 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Simple Kubernetes deployment script for Helm Aware
# Applies manifests individually without kustomize
set -e
echo "🚀 Deploying Helm Aware to Kubernetes..."
# Create namespace
echo "📦 Creating namespace..."
kubectl apply -f k8s/namespace.yaml
# Apply RBAC
echo "🔐 Applying RBAC..."
kubectl apply -f k8s/service-account.yaml
# Apply configuration
echo "⚙️ Applying configuration..."
kubectl apply -f k8s/configmap.yaml
# Apply deployment
echo "🚀 Applying deployment..."
kubectl apply -f k8s/deployment.yaml
# Apply service
echo "🌐 Applying service..."
kubectl apply -f k8s/service.yaml
# Apply ingress (optional)
echo "🔗 Applying ingress..."
kubectl apply -f k8s/ingress.yaml
echo "✅ Deployment complete!"
echo ""
echo "📊 To check status:"
echo " kubectl get pods -n helm-aware"
echo ""
echo "🔍 To view logs:"
echo " kubectl logs -n helm-aware deployment/helm-aware -f"
echo ""
echo "🌐 To access the application:"
echo " kubectl port-forward -n helm-aware svc/helm-aware 8080:80"
echo " Then open http://localhost:8080"