Skip to content
Snippets Groups Projects
Commit f8b08e26 authored by Felipe D'Abrantes's avatar Felipe D'Abrantes
Browse files

Add yaml files frontend service deployment

parent 6de928bc
No related branches found
No related tags found
Loading
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: frontend-service-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: frontend-service
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 80
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-service
spec:
selector:
matchLabels:
app: frontend-service
replicas: 3
template:
metadata:
labels:
app: frontend-service
spec:
containers:
- name: frontend-service
image: europe-west2-docker.pkg.dev/daily-384822/daily-repo/frontend-service:v1
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: daily-frontend-service
spec:
selector:
app: frontend-service
ports:
- name: http
port: 80
targetPort: 3000
type: ClusterIP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment