镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Allow setting requests/limits on init containers #368

Open

Description

@agracie

I'm trying to deploy stackstorm-k8s into an environment that enforces resourcequota requiring limits to be defined to all containers and init containers. This environment does not provide a limit range or default namespace limits. It would be very helpful to be able to define resources and limits of the individual init containers or have a default values/limits set for them.

Activity

  1. chain312 commented on Mar 6, 2024

    @chain312

    You can refer to st2web for other component configurations in values.yaml

    st2web:
      # Minimum 2 replicas are recommended to run st2web in HA mode
      replicas: 2
      # Tested resource consumption based on multiple requests to st2web within nginx
      # Please adjust based on your conscious choice
      resources:
        requests:
          memory: "25Mi"
          cpu: "50m"
        limits:
          memory: "100Mi"
    
  2. cognifloyd commented on Apr 11, 2024

    @cognifloyd
    Member

    PR welcome. You'll need to add the resources section to each of the init containers. I count 13 init containers defined in:

    These are all pretty basic utility containers that do not need many resources. Is there a default we could put here? Or perhaps add a value like utilityResources (we have image.utilityImage to set the image, though we should not put resources under image)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions