Skip to content

Commit

Permalink
Update deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Jupp committed Sep 19, 2018
1 parent 04d063f commit b55a7b2
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions deployment.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,40 @@
apiVersion: extensions/v1beta1
kind: Deployment
---
apiVersion: "extensions/v1beta1"
kind: "Deployment"
metadata:
name: efo3-ols
name: "efo3-ols"
namespace: "default"
labels:
app: "efo3-ols"
spec:
replicas: 1
replicas: 3
selector:
matchLabels:
app: "efo3-ols"
template:
metadata:
labels:
app: efo3-ols
app: "efo3-ols"
spec:
containers:
- name: efo3-ols
image: efo3-ols/efo3-ols
- name: "efo3-ols"
image: "eu.gcr.io/efo3-ols/efo3-ols:latest"
imagePullPolicy: Always
ports:
- containerPort: 8080
- containerPort: 8080
---
apiVersion: "autoscaling/v1"
kind: "HorizontalPodAutoscaler"
metadata:
name: "efo3-ols-hpa"
namespace: "default"
labels:
app: "efo3-ols"
spec:
scaleTargetRef:
kind: "Deployment"
name: "efo3-ols"
apiVersion: "apps/v1beta1"
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 80

0 comments on commit b55a7b2

Please sign in to comment.