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
{{ message }}
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
Sorry I put this here but I don't now which deis service handles this cases!
Came across this when using a Dockerfile like this:
FROM nginx
EXPOSE 80
by simply doing this, and pushing to deis, the readiness check points to port 443, this is because nginx image Dockerfile exposes both 80 an 443 and Deis seems to choose this instead of honoring the repository's dockerfile
How to reproduce:
git init
Create a Dockerfile
echo "FROM nginx
EXPOSE 80" > Dockerfile
git add Dockerfile
git commit -a -m Test
deis create test-expose
git push deis master
kubectl get po --namespace=test-expose
kubectl describe po --namespace=test-expose <podname> |grep Readiness
hey @n0n0x, at this time we only support dockerfile apps that expose only one port for these reasons. That being said, we are currently working on rewriting how health checks can be configured which you can follow along in deis/controller#603. That should hopefully alleviate this issue.
Oh, I misunderstood the documentation. Because I am actually explicitly telling to expose port 80 in my Dockerfile, but It exposes port 443 because of the inherited Dockerfile from the nginx image. I thought if I explicitly declare EXPOSE 80 on my Dockerfila that would override it.
Sorry I put this here but I don't now which deis service handles this cases!
Came across this when using a Dockerfile like this:
by simply doing this, and pushing to deis, the readiness check points to port 443, this is because nginx image Dockerfile exposes both 80 an 443 and Deis seems to choose this instead of honoring the repository's dockerfile
How to reproduce:
git init
git add Dockerfile
git commit -a -m Test
deis create test-expose
git push deis master
kubectl get po --namespace=test-expose
kubectl describe po --namespace=test-expose <podname> |grep Readiness
Result:
Expected result:
Deis should honor any exposed port from the repository's Docker file rather than the ones on the base image:
The text was updated successfully, but these errors were encountered: