Open mergwyn opened 1 year ago
I had the same issue, the initial generation of the settings.json
doesn't fit with k8s ip addressing.
I didn't dig in the code to find a way to properly solve this, but my workaround was to:
/home/xteve/conf
for keeping a persistency, settings.json
(tcp://<ip_address>:34400
to 34400
) in the k8s volume (I used a hostPath
for convenience.Note: I also needed to overwrite the Dockerfile Entrypoint in my deployment. Not sure why this step was needed, maybe my volume mount was not correct. I've added the following in my
deployment.yaml
:spec: containers: - command: - sh - -c - /home/xteve/bin/xteve -port=34400 -config=/home/xteve/conf
Many thanks for the hint - setting the port on the command line works around the problem for me. Manually the configuration file always seemed to get overwritten by the derived port.
I am trying to move my docker configuration into Kubernetes and I have come across an issue where the 'port' is not being detected correctly. Rather than
34400
the port is being set totcp://10.152.183.69:34400
.I have tried with he
xTeve-project/xTeve
container and this does setup the port correctlyI release that most of the effort is going into StreamMaster, but I thought that I would raise this issue to see if it might be a relatively straightforward fix. I also appreciate that there don't seem to be many users trying to do what I am
Describe the bug A clear and concise description of what the bug is.
Server:
To Reproduce Steps to reproduce the behavior:
settings.json
Expected behavior The port should be set
Logs
Output from
ip a
Note the kubernetes service is
10.152.183.69
whilst the pod address is10.1.102.122
Additional context I am attempting to run xteve through the pod-gateway which has a vpn sidecar but I experience the same behaviour if I run without the gateway.