"Changes the way developers think..."
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-deployment
labels:
app: marginestimator
spec:
replicas: 2
selector:
matchLabels:
app: marginestimator
template:
metadata:
labels:
app: marginestimator
spec:
containers:
- name: marginestimator-api
image: dbg/me-api:1.7.9
ports:
- name: auth-proxy
image: oauth2-proxy:2.2.1
ports:
- containerPort: 443
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: nginx
namespace: default
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: nginx
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 50