Files
School/Anul 3/Semestrul 2/Licenta/Practical/k8s/apigateway.yaml
T
2025-07-03 20:56:38 +03:00

43 lines
752 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: apigateway
spec:
replicas: 1
template:
metadata:
labels:
app: apigateway
spec:
containers:
- name: apigateway
image: apigateway:latest
ports:
- containerPort: 80
env:
- name: ASPNETCORE_URLS
value: http://*:80
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "200m"
selector:
matchLabels:
app: apigateway
---
apiVersion: v1
kind: Service
metadata:
name: apigateway
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 80
nodePort: 32003
selector:
app: apigateway