15 lines
268 B
Bash
Executable file
15 lines
268 B
Bash
Executable file
#!/usr/bin/env bash
|
|
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"
|
|
}
|
|
}
|
|
]'
|
|
|