15 lines
257 B
Bash
15 lines
257 B
Bash
#!/usr/bin/env bash
|
|
kubectl patch svc traefik -n traefik --type='merge' -p '{
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "ssh",
|
|
"port": 22,
|
|
"targetPort": 22,
|
|
"nodePort": 30222,
|
|
"protocol": "TCP"
|
|
}
|
|
]
|
|
}
|
|
}'
|
|
|