ci: use port 8080/use root

This commit is contained in:
Alessandro Pezzè 2021-05-28 15:50:42 +02:00
parent c6844f8250
commit d5629937a2
3 changed files with 10 additions and 5 deletions

View file

@ -26,9 +26,12 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 8080
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0
env:
- name: SERVER_PORT
value: 8080
value: "8080"
- name: POSTGRES_HOST
value: postgresql
- name: POSTGRES_USER
@ -51,10 +54,10 @@ spec:
initialDelaySeconds: 5
httpGet:
path: /api/v2/
port: 80
port: 8080
livenessProbe:
periodSeconds: 5
initialDelaySeconds: 5
httpGet:
path: /api/v2/
port: 80
port: 8080

View file

@ -35,9 +35,11 @@ rules:
- list
- watch
- apiGroups:
- "extensions"
- extensions
- networking.k8s.io
resources:
- ingresses
- ingressclasses
verbs:
- get
- list

View file

@ -11,4 +11,4 @@ spec:
component: pokeapi
ports:
- port: 80
targetPort: 80
targetPort: 8080