traefik patch
This commit is contained in:
parent
cbec657ffb
commit
a126c81bc8
1 changed files with 12 additions and 12 deletions
|
@ -1,15 +1,15 @@
|
|||
#!/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"
|
||||
}
|
||||
]
|
||||
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"
|
||||
}
|
||||
}
|
||||
}'
|
||||
]'
|
||||
|
||||
|
|
Loading…
Reference in a new issue