https://pulumi.com logo
Title
r

ripe-greece-78043

07/25/2022, 11:58 AM
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.
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

billowy-army-68599

07/25/2022, 1:53 PM
r

ripe-greece-78043

07/25/2022, 1:56 PM
Great! I will test it!