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 #!/usr/bin/env bash
kubectl patch svc traefik -n traefik --type='merge' -p '{ kubectl patch svc traefik -n traefik --type='json' -p='[
"spec": { {
"ports": [ "op": "add",
{ "path": "/spec/ports/-",
"name": "ssh", "value": {
"port": 22, "name": "ssh",
"targetPort": 22, "port": 22,
"nodePort": 30222, "targetPort": 22,
"protocol": "TCP" "nodePort": 30222,
} "protocol": "TCP"
] }
} }
}' ]'