Hello. Can someone help to understand what is the ...
# general
r
Hello. Can someone help to understand what is the right way to get a service hostname? I installed the helm release and need to get service IP (from AWS) after a short period. This code works but it looks ugly.
Copy code
const service = new local.Command("getService", {
  create: `sleep 10 && kubectl get svc -o=jsonpath='{.items[?(@.metadata.name=="myservice")].status.loadBalancer.ingress[0].hostname}'`,
  environment: {
    KUBECONFIG: 'config.json',
  },
});
b
r
Great! I will test it!