23 lines
561 B
Bash
Executable File
23 lines
561 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Configuration
|
|
NAMESPACE="haumdaucher"
|
|
IMAGE_NAME="haumdaucher-website"
|
|
TAG="latest"
|
|
|
|
echo "🚀 Starting deployment for Haumdaucher..."
|
|
|
|
# Create namespace if it doesn't exist
|
|
kubectl create namespace $NAMESPACE --dry-run=client -o yaml | kubectl apply -f -
|
|
|
|
# Build the docker image
|
|
echo "📦 Building Docker image..."
|
|
docker build -t $IMAGE_NAME:$TAG .
|
|
|
|
# Apply manifests
|
|
echo "🎡 Applying Kubernetes manifests..."
|
|
kubectl apply -f k8s-manifests.yaml
|
|
|
|
echo "✅ Deployment complete!"
|
|
echo "Check status with: kubectl get pods -n $NAMESPACE"
|