Skip to content

Commit 7692b8f

Browse files
committed
chore: update the app port to 5001
1 parent 5f07bb8 commit 7692b8f

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ or
6868
python3 run.py
6969
```
7070

71-
Once the app has started you should be able to access the app Endpoint at http://127.0.0.1:5000/greetings/[YOUR_NAME]
71+
Once the app has started you should be able to access the app Endpoint at http://127.0.0.1:5001/greetings/[YOUR_NAME]
7272

7373
![](resources/app-start.png)
7474

@@ -92,10 +92,10 @@ docker build -t greetings-app .
9292

9393
Run docker image:
9494
```
95-
docker run --rm -it -p 5000:5000 greetings-app
95+
docker run --rm -it -p 5001:5001 greetings-app
9696
```
9797

98-
Now your app should be accessible at http://127.0.0.1:5000/greetings/[YOUR_NAME]
98+
Now your app should be accessible at http://127.0.0.1:5001/greetings/[YOUR_NAME]
9999

100100
## Local Concourse Pipeline
101101
[Concourse](https://concourse-ci.org/) is an open-source continuous thing-doer.

features/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def before_scenario(context, scenario):
1111
proc = subprocess.Popen(["make", "start"])
1212
time.sleep(4)
1313
context.proc = proc
14-
context.root_url = "http://localhost:5000"
14+
context.root_url = "http://localhost:5001"
1515
else:
1616
context.root_url = os.getenv("ROOT_ENDPOINT")
1717

greetings/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33

44
class Config:
5-
PORT = int(os.getenv("PORT", 5000))
5+
PORT = int(os.getenv("PORT", 5001))

kubernetes/helm-chart/templates/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ spec:
3636
imagePullPolicy: {{ .Values.image.pullPolicy }}
3737
ports:
3838
- name: http
39-
containerPort: 5000
39+
containerPort: 5001
4040
protocol: TCP
4141
# livenessProbe:
4242
# httpGet:
4343
# path: /health
44-
# port: 5000
44+
# port: 5001
4545
# initialDelaySeconds: 5
4646
# periodSeconds: 5
4747
readinessProbe:
4848
httpGet:
4949
path: /health
50-
port: 5000
50+
port: 5001
5151
initialDelaySeconds: 5
5252
periodSeconds: 5
5353
resources:

kubernetes/helm-chart/templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ spec:
3333
paths:
3434
- backend:
3535
serviceName: zero-2-hero-python-flask-microservice
36-
servicePort: 5000
36+
servicePort: 5001
3737
{{- end }}
3838
{{- end }}

kubernetes/helm-chart/templates/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
type: {{ .Values.service.type }}
99
ports:
1010
- port: {{ .Values.service.port }}
11-
targetPort: 5000
11+
targetPort: 5001
1212
protocol: TCP
1313
name: http
1414
selector:

kubernetes/helm-chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ securityContext: {}
3838

3939
service:
4040
type: NodePort
41-
port: 5000
41+
port: 5001
4242

4343
ingress:
4444
enabled: true

0 commit comments

Comments
 (0)