Autoscaling apiVersion: apps/v1
kind: Deployment
metadata:
name: today-lottery-service
spec:
replicas: 2
template:
spec:
containers:
- name: today-lottery-service
resources:
requests:
cpu: 250m
memory: 1536Mi
limits:
cpu: 500m
memory: 1536Mi AS IS TO BE apiVersion: apps/v1
kind: Deployment
metadata:
name: today-lottery-service
spec:
replicas: 3
template:
spec:
containers:
- name: today-lottery-service
resources:
requests:
cpu: 200m
memory: 1024Mi
limits:
cpu: 500m
memory: 1024Mi