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
This commit is contained in:
16
k8s/admin-service.yaml
Normal file
16
k8s/admin-service.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: admin-api-service
|
||||
namespace: linuxwebapp
|
||||
labels:
|
||||
app: admin-api
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: admin-api
|
||||
ports:
|
||||
- port: 3000
|
||||
targetPort: 3000
|
||||
protocol: TCP
|
||||
name: admin-api
|
||||
Reference in New Issue
Block a user