https://rancher.com/ logo
Title
l

lively-night-78214

12/19/2022, 5:14 AM
is there a way to edit an ingress in a file locally and apply it to a remote? i promise i googled and tried finding a solution but can only see kubectl edit and never know if the formatting is right by manually editing on the shell
h

happy-megabyte-30332

12/19/2022, 8:32 AM
Hello, i hope i understood your question correctly. You can use a local file eg. my-ingress.yaml with all the definitions in it and then do something like kubectl apply -f my-ingress.yaml -n my-namespace
l

lively-night-78214

12/19/2022, 10:19 AM
Yes thanks. It didn't look obvious to me online
But I remembered something about it