lucky-sideburn / kubeinvaders

Gamified Chaos Engineering Tool for Kubernetes
Apache License 2.0
1.03k stars 127 forks source link

Unable to connect to OCP from local Docker instance #32

Closed jfrieu closed 4 years ago

jfrieu commented 4 years ago

Hi I have a project in OCP in Cloud, this time I chose not to deploy KubeInvaders into OCP (see other issue) Wanting to run KubeInvaders locally, using the local command

ROUTE_HOST=myhost.appdomain.cloud NAMESPACE=acmeair SESSION_TOKEN=$(oc whoami -t)

docker run --env DEVELOPMENT=true --env ROUTE_HOST=$ROUTE_HOST:8080 --env NAMESPACE=$NAMESPACE --env ALIENPROXIMITY=15 --env HITSLIMIT=0 --env UPDATETIME=0.5 --env TOKEN=$SESSION_TOKEN --env KUBERNETES_SERVICE_PORT_HTTPS=8080 --env KUBERNETES_SERVICE_HOST=$ROUTE_HOST -p 8080:8080 --name kubeinvaders docker.io/luckysideburn/kubeinvaders:latest

I can run UI on my local machine, however UI says Endpoint: myhost.appdomain.cloud:8080/kube Running pods 0 Error connecting to http://myhost.appdomain* and I cannot see more (what error, if URL is fine ...etc.)

Thanks

lucky-sideburn commented 4 years ago

Hi! Is this issue solved?

jfrieu commented 4 years ago

Hi, no I have changed the host (according to other issue), but does not work

lucky-sideburn commented 4 years ago

Pulled the latest image?

jfrieu commented 4 years ago

this what I run docker run --env DEVELOPMENT=true --env ROUTE_HOST=$ROUTE_HOST:8080 --env NAMESPACE=$NAMESPACE --env ALIENPROXIMITY=15 --env HITSLIMIT=0 --env UPDATETIME=0.5 --env TOKEN=$SESSION_TOKEN --env KUBERNETES_SERVICE_PORT_HTTPS=8080 --env KUBERNETES_SERVICE_HOST=$ROUTE_HOST -p 8080:8080 --name kubeinvaders docker.io/luckysideburn/kubeinvaders:latest --detach

kubeinvaders docker.io/luckysideburn/kubeinvaders:latest

I do think this is the latest

to make sure I have the latest, I ran docker pull docker.io/luckysideburn/kubeinvaders:latest

no visible change

lucky-sideburn commented 4 years ago

Hi @jfrieu which error you receive? Can you please do

curl $ROUTE_HOST:8080 (do you reach kubernetes or openshift api? the porto 8080 is strange reach the controlplane)

jfrieu commented 4 years ago

I could not manage to have it working, since I can run it in OCP, I am closing the case. Many thanks