kubectl port-forward service/payment-api 8080:80 -n payment-system
kubectl logs payment-api-7d8f9b-xt2mz -n payment-system kubectl switch contexts
The native, dependency-free method to change your active Kubernetes environment relies entirely on built-in kubectl config subcommands. Change the Active Context kubectl switch contexts