Skip to content

Conversation

@p1johnson
Copy link
Contributor

@p1johnson p1johnson commented Apr 22, 2022

Resolves #30 which describes that following the How To guide Build and deploy to Azure Kubernetes Service with Azure Pipelines will result in the application being unavailable via the service.

@p1johnson
Copy link
Contributor Author

@juliakm could you have a look at this PR please, which ties in with the Docs PR from yesterday?

@AlinDanielFerenczi
Copy link

The docker file needs to expose port 8080 as well in order for this to work.

@p1johnson
Copy link
Contributor Author

I found that the example worked without including EXPOSE 8080 in the Dockerfile. My understanding is that the EXPOSE instruction is for documentation purposes. EXPOSE

@AlinDanielFerenczi
Copy link

I just made a test with this and it did not work until exposing the port. I think the instruction works as a firewall rule.

@p1johnson
Copy link
Contributor Author

@AlinDanielFerenczi for the sake of completeness I've added the instruction EXPOSE 8080 to the Dockerfile.

@juliakm
Copy link
Contributor

juliakm commented Apr 25, 2022

Thanks @p1johnson!

@juliakm juliakm merged commit 25f2f08 into MicrosoftDocs:master Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Service is not accessible when following Build and deploy to Azure Kubernetes Service with Azure Pipelines

3 participants