Files
optima/kubernetes/ingress.yaml
T
2026-02-25 21:25:25 -06:00

40 lines
782 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: optima-api-ingress
namespace: optima
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
tls:
- hosts:
- opt-api.osdci.net
secretName: osdci-net-cert
rules:
- host: opt-api.osdci.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: optima-api
port:
number: 3000
---
apiVersion: v1
kind: Service
metadata:
name: optima-api
namespace: optima
labels:
app: optima-api
spec:
type: ClusterIP
ports:
- port: 3000
protocol: TCP
selector:
app: optima-api