Skip to content

Commit

Permalink
updated the command
Browse files Browse the repository at this point in the history
  • Loading branch information
uma-kt committed Oct 23, 2024
1 parent cf3a17a commit 12ac81b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,13 @@ To create a slice:
```
URL=http://$(kubectl -n "mongodb-operator" get svc ops-manager-svc-ext -o jsonpath='{.status.loadBalancer.ingress[0].hostname}:{.spec.ports[0].port}') echo $URL
```

Use the host name when the LoadBalancer assigns an external IP address in the following command:

```
URL=http://$(kubectl -n "mongodb-operator" get svc ops-manager-svc-ext -o jsonpath='{.status.loadBalancer.ingress[0].ip}'):$(kubectl -n "mongodb-operator" get svc ops-manager-svc-ext -o jsonpath='{.spec.ports[0].port}')
echo $URL
```

Example Output
```
Expand Down

0 comments on commit 12ac81b

Please sign in to comment.