Go to file
2024-09-21 04:48:44 +00:00
commands first commit 2024-09-21 05:38:15 +01:00
utils first commit 2024-09-21 05:38:15 +01:00
.gitignore first commit 2024-09-21 05:38:15 +01:00
app.py bye bye interactive help 2024-09-21 05:46:47 +01:00
README.md Update README.md 2024-09-21 04:48:44 +00:00

Traefik Helper (for Kubernetes)

This is a helper for Traefik on Kubernetes. It allows you to add and delete services from a simple cli.

Todo

  • Use the Traefik api to list all services

Windows Alias

Ensure you have ran Set-ExecutionPolicy Unrestricted in PowerShell as an administrator.

Create the directory ~/Documents/WindowsPowerShell and create a file called traefik.kubernetes.ps1 in that directory. Add the following code to the file.

function Traefik-Helper {
    $argsAsString = $args -join ' '

    $command = "projectlocation/traefik-helper-kubernetes/.venv/Scripts/python.exe projectlocation/traefik-helper-kubernetes/app.py $argsAsString"

    Invoke-Expression $command
}

# Set the alias
Set-Alias -Name "traefik" -Value "Traefik-Helper"

This will allow you to run the traefik command in PowerShell.