- Check-in voordat we aan bugfix beginnen te werken.
- Introductie van static-files serving met standaard nginx (niet ons docker nginx image), en een rsync service om static files te synchroniseren. Nog niet volledig afgewerkt!
This commit is contained in:
@@ -380,6 +380,27 @@ kstart-entitlements() {
|
||||
start_individual_service "eveai-entitlements"
|
||||
}
|
||||
|
||||
# Static files management functions
|
||||
kdeploy-static() {
|
||||
local dry_run=""
|
||||
if [[ "$1" == "--dry-run" ]]; then
|
||||
dry_run="--dry-run"
|
||||
fi
|
||||
|
||||
echo "🚀 Deploying static files to $K8S_ENVIRONMENT environment..."
|
||||
"$K8S_CONFIG_DIR/../deploy-static-files.sh" "$K8S_ENVIRONMENT" "$dry_run"
|
||||
}
|
||||
|
||||
kstatic-status() {
|
||||
echo "📊 Static Files Status for $K8S_ENVIRONMENT:"
|
||||
echo "============================================="
|
||||
kubectl get pvc static-files-pvc -n "$K8S_NAMESPACE" 2>/dev/null || echo "PVC not found"
|
||||
kubectl get pods -l app=static-files -n "$K8S_NAMESPACE" 2>/dev/null || echo "No static-files pods found"
|
||||
echo ""
|
||||
echo "💾 PVC Usage:"
|
||||
kubectl describe pvc static-files-pvc -n "$K8S_NAMESPACE" 2>/dev/null | grep -E "(Capacity|Used)" || echo "Usage info not available"
|
||||
}
|
||||
|
||||
# Cluster management functions
|
||||
cluster-start() {
|
||||
log_operation "INFO" "Starting cluster: $K8S_CLUSTER"
|
||||
|
||||
Reference in New Issue
Block a user