Closed v-ctiutiu closed 2 years ago
As per discussion #149 seems that a mistake slipped, and nginx rules used in the ingress chapter point to the container port (8080). Nginx ingress controller rules should point to service port, not container port.
The echo deployment spec looks like below:
echo deployment
... spec: containers: - name: echo image: jmalloc/echo-server ports: - name: http containerPort: 8080 ...
The echo service spec looks like below:
echo service
... spec: ports: - name: http port: 80 targetPort: 8080 ...
The ingress host rule spec for the echo service should look like:
host rule spec
... spec: rules: - host: echo.starter-kit.online http: paths: - path: / pathType: Prefix backend: service: name: echo port: number: 80 ...
Description
As per discussion #149 seems that a mistake slipped, and nginx rules used in the ingress chapter point to the container port (8080). Nginx ingress controller rules should point to service port, not container port.
The
echo deployment
spec looks like below:The
echo service
spec looks like below:The ingress
host rule spec
for theecho service
should look like: