Files
webapplinux/k8s/ingress.yaml
capitano e89989e1d9 Add admin panel API with CRUD for apps
- Express.js backend with JWT authentication
- CRUD endpoints for apps management
- Health check endpoint
- Dockerfile per admin API (Node 18 Alpine)
- Kubernetes: admin-api deployment, service, ingress
- Admin panel at http://admin.apps.local
- Updated nginx.conf to route /api to admin API
- Fixed ingress rules for separate web and admin services
2026-03-18 23:01:42 +01:00

47 lines
917 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: linux-app-store-ingress
namespace: linuxwebapp
labels:
app: linux-app-store
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: apps.local
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: linux-app-store-service
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: admin-api-ingress
namespace: linuxwebapp
labels:
app: admin-api
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: admin.apps.local
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: admin-api-service
port:
number: 3000