#!/usr/bin/env bash if kubectl -n kube-system get pods --no-headers 2>/dev/null | grep -q 'traefik'; then echo "Traefik is already running in the 'kube-system' namespace. Upgrading instead." # Create a temporary values file for more complex configuration cat > /tmp/traefik-values.yaml < /tmp/traefik-values.yaml <