Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bug 1711075: set resource requests on containers
Prevent pods from eviction, OOMKilling, and CPU starvation when
running in the BestEffort QoS by setting resource requests.

openshift/origin#22787

Limits used:

Memory:
service-ca-operator 80Mi
apiservice-cabundle-injector 50Mi
configmap-cabundle-injector 50Mi
service-serving-cert-signer 120Mi

CPU:
all 10m
  • Loading branch information
ericavonb committed May 16, 2019
1 parent d00230e commit 6bcc7a3
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindata/v4.0.0/apiservice-cabundle-controller/deployment.yaml
Expand Up @@ -30,6 +30,10 @@ spec:
- "--config=/var/run/configmaps/config/controller-config.yaml"
ports:
- containerPort: 8443
resources:
requests:
memory: 50Mi
cpu: 10m
volumeMounts:
- mountPath: /var/run/configmaps/config
name: config
Expand Down
4 changes: 4 additions & 0 deletions bindata/v4.0.0/configmap-cabundle-controller/deployment.yaml
Expand Up @@ -30,6 +30,10 @@ spec:
- "--config=/var/run/configmaps/config/controller-config.yaml"
ports:
- containerPort: 8443
resources:
requests:
memory: 50Mi
cpu: 10m
volumeMounts:
- mountPath: /var/run/configmaps/config
name: config
Expand Down
Expand Up @@ -30,6 +30,10 @@ spec:
- "--config=/var/run/configmaps/config/controller-config.yaml"
ports:
- containerPort: 8443
resources:
requests:
memory: 120Mi
cpu: 10m
volumeMounts:
- mountPath: /var/run/configmaps/config
name: config
Expand Down
4 changes: 4 additions & 0 deletions manifests/05_deploy.yaml
Expand Up @@ -25,6 +25,10 @@ spec:
args:
- "--config=/var/run/configmaps/config/operator-config.yaml"
- "-v=4"
resources:
requests:
memory: 80Mi
cpu: 10m
env:
- name: CONTROLLER_IMAGE
value: quay.io/openshift/origin-service-ca-operator:v4.0
Expand Down
12 changes: 12 additions & 0 deletions pkg/operator/v4_00_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6bcc7a3

Please sign in to comment.