26 lines
522 B
YAML
26 lines
522 B
YAML
# Kubernetes Ingress Configuration for Traefik
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: blog
|
|
namespace: ${KUBERNETES_NAMESPACE}
|
|
|
|
annotations:
|
|
traefik.ingress.kubernetes.io/router.entrypoints: web
|
|
|
|
labels:
|
|
app: blog
|
|
|
|
spec:
|
|
rules:
|
|
- host: ${KUBERNETES_INGRESS_HOST}
|
|
http:
|
|
paths:
|
|
- path: /api/blog
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: blog
|
|
port:
|
|
number: 8888
|