Skip to content
This repository was archived by the owner on Aug 2, 2019. It is now read-only.

Commit e4ef2a8

Browse files
bbrowningmarkusthoemmes
authored andcommitted
Request far less CPU for the dumpy ksvc pods (#32)
This prevents smaller OpenShift 4 clusters from running out of CPU just to run this demo. The Knative default is 400m and this cuts that down to 1/8th, or 50m. These pods don't consume any real CPU anyway.
1 parent 0815529 commit e4ef2a8

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

Diff for: knative-kubecon/serving/010-service.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ spec:
3030
container:
3131
imagePullPolicy: Always
3232
image: image-registry.openshift-image-registry.svc:5000/myproject/dumpy:latest
33+
resources:
34+
requests:
35+
cpu: 50m

Diff for: knative-kubecon/serving/011-service-update.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ spec:
3232
container:
3333
imagePullPolicy: Always
3434
image: image-registry.openshift-image-registry.svc:5000/myproject/dumpy:latest
35+
resources:
36+
requests:
37+
cpu: 50m

Diff for: knative-kubecon/serving/012-service-traffic.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ spec:
3232
container:
3333
imagePullPolicy: Always
3434
image: image-registry.openshift-image-registry.svc:5000/myproject/dumpy:latest
35+
resources:
36+
requests:
37+
cpu: 50m

Diff for: knative-kubecon/serving/013-service-final.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ spec:
3232
container:
3333
imagePullPolicy: Always
3434
image: image-registry.openshift-image-registry.svc:5000/myproject/dumpy:latest
35+
resources:
36+
requests:
37+
cpu: 50m

0 commit comments

Comments
 (0)