Hi, I have a selfhosted kratos. It seems the krato...
# ory-selfhosting
b
Hi, I have a selfhosted kratos. It seems the kratos cli does not work properly:
Copy code
kratos ls identities 100 1
2022/09/27 08:57:43 [DEBUG] GET <http://127.0.0.1:8081//admin/identities?page=100&per_page=1>
The
//
seems to be wrong in the url it tries to reach because in my browser I can open correctly:
Copy code
<http://127.0.0.1:8081/admin/identities>
<http://127.0.0.1:8081/admin/identities/88292ae7-7c6e-4651-b80f-038d2c6f87a0>
I deployed kratos via helm on K8s and did the following portforwarding:
Copy code
export POD_NAME=$(kubectl get pods --namespace ory -l "<http://app.kubernetes.io/name=kratos,app.kubernetes.io/instance=ory|app.kubernetes.io/name=kratos,app.kubernetes.io/instance=ory>" -o jsonpath="{.items[0].metadata.name}")

kubectl port-forward $POD_NAME -n ory 8081:4434

export KRATOS_ADMIN_URL=<http://127.0.0.1:8081/>
Could it be a bug in the kratos cli (I tried v0.10.1, v0.10.0 and v0.9.0-alpha.3) or a missconfiguration on my end?
b
Hi, what error are you receiving? The double slash should not be an issue, but can be fixed by removing it from the env variable:
Copy code
export KRATOS_ADMIN_URL=<http://127.0.0.1:8081>
b
ahhh, thank you 🙂 it fixed it.
could you tell me why helm is offering it with
/
at the end? shall I open a PR to fix it (removing the
/
)?
b
Yes, that would be great! 🙂
👍 1
b
here it is: https://github.com/ory/k8s/pull/518 feel free to merge 🙂
b
Thanks! Please sign the CLA, then we are good to go. Someone from the SRE team will take a look at it. 🙂
b
what is CLA ?
okay, I see
b
Contributors License Agreement: https://cla-assistant.io/ory/k8s
b
done.
b
Thanks. 🙂
Also, we are using conventional commits, which means the title of the PR needs to follow a certain format to indicate what kind of change this is. https://www.conventionalcommits.org/en/v1.0.0/ In you case it would probably be
chore: removed / from helm notes because kratos cli cannot handle the /
instead of your current title. Afterwards the CI should be green. 🙂
🙌 1
b
thank you for the help. now the pipeline is green