Kong route to the agent-hub Service so agent-console can attach over the existing gateway instead of kubectl port-forward.
22 lines
476 B
YAML
22 lines
476 B
YAML
# Exposes agent-hub at api.riotpiao.com/console.
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: console
|
|
namespace: agent-pod
|
|
annotations:
|
|
konghq.com/strip-path: "false"
|
|
spec:
|
|
ingressClassName: kong
|
|
rules:
|
|
- host: api.riotpiao.com
|
|
http:
|
|
paths:
|
|
- path: /console
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: agent-hub
|
|
port:
|
|
number: 9090
|