You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running helm install, I get instructions on how to find the URLs of the planes:
1. Get the control plane URL by running these commands:
export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services tx-plato)export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")echo http://$NODE_IP:$NODE_PORT
2. Get the data plane URL by running these commands:
export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=tractusx-connector,app.kubernetes.io/instance=tx-plato" -o jsonpath="{.items[0].metadata.name}")export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")echo"Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT
The first command fails because there's no service called tx-plato (probably needs to be tx-plato-controlplane?).
The second command fails because jsonpath is incompatible.
Run the scripts printed in step 3 after running helm install
Screenshots/Error Messages
⬢ [Systemd] ❯ export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services tx-plato)export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")echo http://$NODE_IP:$NODE_PORT
Error from server (NotFound): services "tx-plato" not found
http://192.168.65.4:
⬢ [Systemd] ❯ export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=tractusx-connector,app.kubernetes.io/instance=tx-plato" -o jsonpath="{.items[0].metadata.name}")export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")echo"Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT
error: error executing jsonpath "{.items[0].metadata.name}": Error executing template: array index out of bounds: index 0, length 0. Printing more information for debugging the template:
template was:
{.items[0].metadata.name}
object given to jsonpath engine was:
map[string]interface {}{"apiVersion":"v1", "items":[]interface {}{}, "kind":"List", "metadata":map[string]interface {}{"resourceVersion":""}}
Visit http://127.0.0.1:8080 to use your application
error: TYPE/NAME and list of ports are required for port-forward
See 'kubectl port-forward -h'forhelp and examples
Describe the bug
After running
helm install
, I get instructions on how to find the URLs of the planes:The first command fails because there's no service called
tx-plato
(probably needs to betx-plato-controlplane
?).The second command fails because
jsonpath
is incompatible.To Reproduce
helm install
Screenshots/Error Messages
Additional Information
kubectl get all
The text was updated successfully, but these errors were encountered: