Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Explicitly configure the port for catalogue to be 80 in kubernetes/manifests #767

Merged
merged 1 commit into from Jun 8, 2018

Conversation

marccarre
Copy link
Contributor

In case one was to fork this repository and pass arbitrary arguments without passing -port=80, catalogue would then suddenly no longer work, as:

marccarre added a commit to microservices-demo/catalogue that referenced this pull request Jun 8, 2018
- `Dockerfile` explicitly overrides `8081` with `80`, so might as well have it as the default: github.com/microservices-demo/catalogue/blob/master/docker/catalogue/Dockerfile#L45-L46
- Should one not realise this override is currently required (but no longer, after this change), issues like microservices-demo/microservices-demo/pull/767 could be experienced.
…nifests

In case one was to fork this repository and pass arbitrary arguments without passing `-port=80`, `catalogue` would then suddenly no longer work, as:

- `catalogue` defaults to `8081`: https://github.com/microservices-demo/catalogue/blob/0.3.5/cmd/cataloguesvc/main.go#L44
- the default override in `Dockerfile` would then be lost: https://github.com/microservices-demo/catalogue/blob/0.3.5/docker/catalogue/Dockerfile#L12
- `/health` therefore wouldn't be reachable on `80` (but `8081`)
- Kubernetes therefore wouldn't route traffic to `catalogue`
@marccarre marccarre changed the title Explicitly configure the port for catalogue in kubernetes/manifests Explicitly configure the port for catalogue to be 80 in kubernetes/manifests Jun 8, 2018
@marccarre marccarre merged commit 60368c9 into master Jun 8, 2018
@marccarre marccarre deleted the pass-port-to-catalogue branch June 8, 2018 16:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant