Skip to content
Andrew Pantuso edited this page Aug 11, 2022 · 1 revision

Problematic configuration:

1. At least one container of one deployment in the latest bundle's CSV is missing Memory/CPU Requests

# latest bundle CSV
spec:
  install:
    deployments:
    - spec:
        template:
          spec:
            containers:
            - resources:
                limits:
                  cpu: 1000m
                  memory: 512Mi
              livenessprobe:
                tcpSocket:
                  port: 8080
                initialDelaySeconds: 15
                periodSeconds: 20
              readinessprobe:
                tcpSocket:
                  port: 8080
                initialDelaySeconds: 5
                periodSeconds: 10
...

2. At least one container of one deployment in the latest bundle's CSV is missing Memory/CPU Limits

# latest bundle CSV
spec:
  install:
    deployments:
    - spec:
        template:
          spec:
            containers:
            - resources:
                requests:
                  cpu: 500m
                  memory: 256Mi
              livenessprobe:
                tcpSocket:
                  port: 8080
                initialDelaySeconds: 15
                periodSeconds: 20
              readinessprobe:
                tcpSocket:
                  port: 8080
                initialDelaySeconds: 5
                periodSeconds: 10
...

3. At least one container of one deployment in the latest bundle's CSV is missing a Readiness Probe

# latest bundle CSV
spec:
  install:
    deployments:
    - spec:
        template:
          spec:
            containers:
            - resources:
                requests:
                  cpu: 500m
                  memory: 256Mi
                limits:
                  cpu: 1000m
                  memory: 512Mi
              livenessprobe:
                tcpSocket:
                  port: 8080
                initialDelaySeconds: 15
                periodSeconds: 20
...

4. At least one container of one deployment in the latest bundle's CSV is missing a Liveness Probe

# latest bundle CSV
spec:
  install:
    deployments:
    - spec:
        template:
          spec:
            containers:
            - resources:
                requests:
                  cpu: 500m
                  memory: 256Mi
                limits:
                  cpu: 1000m
                  memory: 512Mi
              readinessprobe:
                tcpSocket:
                  port: 8080
                initialDelaySeconds: 5
                periodSeconds: 10
...

Correct configuration:

1. All Containers of All Deployments in the Latest Bundle's CSV have resource requirements and probes

# latest bundle CSV
spec:
  install:
    deployments:
    - spec:
        template:
          spec:
            containers:
            - resources:
                requests:
                  cpu: 500m
                  memory: 256Mi
                limits:
                  cpu: 1000m
                  memory: 512Mi
              livenessprobe:
                tcpSocket:
                  port: 8080
                initialDelaySeconds: 15
                periodSeconds: 20
              readinessprobe:
                tcpSocket:
                  port: 8080
                initialDelaySeconds: 5
                periodSeconds: 10
...
  • CPU requests/limits defined
  • Memory requests/limits defined
  • ReadinessProbe defined
  • LivenessProbe defined
Clone this wiki locally