traefik patch

This commit is contained in:
nomadics9 2025-01-13 21:04:35 +03:00
parent cbec657ffb
commit a126c81bc8
No known key found for this signature in database

View file

@ -1,15 +1,15 @@
#!/usr/bin/env bash
kubectl patch svc traefik -n traefik --type='merge' -p '{
"spec": {
"ports": [
kubectl patch svc traefik -n traefik --type='json' -p='[
{
"op": "add",
"path": "/spec/ports/-",
"value": {
"name": "ssh",
"port": 22,
"targetPort": 22,
"nodePort": 30222,
"protocol": "TCP"
}
]
}
}'
]'