missing {end} at the end of jsonpath
you can check example in kubernetes site https://kubernetes.io/docs/reference/kubectl/jsonpath/
it should be like this
redisNodes=$(kubectl get pods -l app=tb-redis -o jsonpath='{range.items[*]}{.status.podIP}:6379 {end}')
problem:
when i run in my kubernetes cluster (v 1.18.8) created by rancher it produces extra empty array like this:
Hi in file k8s-deploy-thirdparty.sh:
redisNodes=$(kubectl get pods -l app=tb-redis -o jsonpath='{range.items[*]}{.status.podIP}:6379 ')
https://github.com/thingsboard/thingsboard-ce-k8s/blob/e2a7229b18c78ac9f44537e00948b196d7c7da51/k8s-deploy-thirdparty.sh#L43
missing {end} at the end of jsonpath you can check example in kubernetes site https://kubernetes.io/docs/reference/kubectl/jsonpath/ it should be like this
redisNodes=$(kubectl get pods -l app=tb-redis -o jsonpath='{range.items[*]}{.status.podIP}:6379 {end}')
problem: when i run in my kubernetes cluster (v 1.18.8) created by rancher it produces extra empty array like this:
best regards