Adding ephemeral storage requests and limits to a managed controller

1 minute readKnowledge base

Issue

Managed controllers are being evicted from Kubernetes nodes due to the lack of ephemeral storage requests and limits.

The node was low on resource: ephemeral-storage. Threshold quantity: ..., available: .... Container jenkins was using ..., request is 0, has larger consumption of ephemeral-storage.

Resolution

Add ephemeral storage requests and limits to the controller by:

  1. Going to the operations center, and using the gear icon to configure the controller

  2. Under the Configure page, scroll to the Advanced configuration section

  3. Under YAML add the following to set 10Gi (note that your controller may require more or less space depending on the number of jobs, and configuration of features that use ephemeral storage) as the ephemeral storage requests and limits:

    apiVersion: "apps/v1" kind: StatefulSet spec: template: spec: containers: - name: "jenkins" resources: requests: ephemeral-storage: "10Gi" limits: ephemeral-storage: "10Gi"
  4. Save the configuration, and re-provision the controller

Tested product/plugin versions