Auto DevOps ignoring .gitlab/auto-deploy-values.yaml file values?
Summary
Readiness probe continues to go to port 5000 after being overridden with a .gitlab/auto-deploy-values.yaml file instructing it to test port 3000.
Steps to reproduce
- Create simple node.js app that listens with Express on port 3000.
- Create Dockerfile for app (no
exposeorpublish). - Commit to project monitored by gitlab auto devops.
- Observe failure of probe.
- Add
.gitlab/auto-deploy-values.yamlwith aservicesection containinginternalPort: 3000andexternalPort: 3000directives in that section and commit. - Observe failure of probe again, note that the failure is still referencing
http://10.x.y.z:5000/in thekubectl get eventsoutput.
Example Project
Unable to provide at this time. Basic framework contains:
Dockerfile
FROM node:14
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
CMD [ "npm", "start" ]
.gitlab/auto-deploy-values.yaml
deploymentApiVersion: apps/v1
service:
internalPort: 3000
externalPort: 3000
What is the current bug behavior?
Readiness probe fails because it tests the wrong port.
What is the expected correct behavior?
Readiness probe should succeed.
Relevant logs and/or screenshots
Output from kubectl get events -n .... states:
Readiness probe failed: Get "http://10.244.4.70:5000/": dial tcp 10.244.4.70:5000: connect: connection refused
Edited by Nunya Business