iac_modules/app/python/FastAPI-MicroService/vu3-deployment.yaml

33 lines
557 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: vue-deployment
spec:
replicas: 3
selector:
matchLabels:
app: vue-app
template:
metadata:
labels:
app: vue-app
spec:
containers:
- name: vue-app
image: your-repo/your-tag # replace with your Docker image name and tag
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: vue-service
spec:
selector:
app: vue-app
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer