I have the following Service files:
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: C:ProgramDatachocolateylibkubernetes-komposetoolskompose.exe convert -f Studio/docker-compose.yml -o ./k8s/
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.service: studio-api
name: studio-api
spec:
type: NodePort
ports:
- name: "30230"
port: 8081
targetPort: 8081
nodePort: 30230
- name: "30250"
port: 8080
targetPort: 8080
nodePort: 30250
selector:
io.kompose.service: studio-api
and
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: C:ProgramDatachocolateylibkubernetes-komposetoolskompose.exe convert -f Mshrm.Studio/docker-compose.yml -o ./k8s/
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.service: studio-auth-api
name: studio-auth-api
spec:
type: NodePort
ports:
- name: "30231"
port: 8081
targetPort: 8081
nodePort: 30231
- name: "30251"
port: 8080
targetPort: 8080
nodePort: 30251
selector:
io.kompose.service: studio-auth-api
They are exposed on 8080 as can be seen below when searching for the endpoints:
Here is my Ingress file:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app-api-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
labels:
name: app-api-ingress
spec:
ingressClassName: nginx
rules:
- host: api.some.url
http:
paths:
- path: /auth
pathType: Prefix
backend:
service:
name: studio-auth-api
port:
number: 8080
- path: /aggregator
pathType: Prefix
backend:
service:
name: studio-api
port:
number: 8080
I get a timeout when I call the URL api.some.url/auth/index.html
with the response below
ERR_CONNECTION_TIMED_OUT
Note: I am able to call api.some.url:30251/index.html
Anyone know what configuration I need to do to get this to work?