Hi folks,
Sorry if the question is dumb but I’m just starting up with kong.
I’ve manage to setup kong + metallb in a k8s cluster. I’ve also been able to access two apps by deploying an ingress and a service.
My issue is that I know one of the app needs to redirect to a specific page. When I’m using the same app in a simple docker container, if I hit it on it’s port, it will redirect me like :
localhost:3001 → localhost:3001/status/default
When deployed in my k8s cluster, there is no redirection, it stays at :
localhost/foo
I don’t really know where to start to tackle the issue
Should I use a plugging or something ?
Thanks !
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuma-k8s
spec:
replicas: 1
selector:
matchLabels:
app: kuma-k8s
template:
metadata:
labels:
app: kuma-k8s
spec:
containers:
- name: kuma-k8s
image: louislam/uptime-kuma
ports:
- name: http-kuma
containerPort: 3001
---
apiVersion: v1
kind: Service
metadata:
name: kuma-service
spec:
type:
selector:
app: kuma-k8s
ports:
- name: http-kuma
port: 80
targetPort: http-kuma
protocol: TCP
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kuma-k8s
spec:
ingressClassName: kong
rules:
- http:
paths:
- path: /kuma
pathType: Prefix
backend:
service:
name: kuma-service
port:
number: 80