tigera / operator

Kubernetes operator for installing Calico and Calico Enterprise
Apache License 2.0
187 stars 141 forks source link

add resource req/limits for es-gateway #3612

Open vara2504 opened 4 days ago

vara2504 commented 4 days ago

https://tigera.atlassian.net/browse/EV-5425

vara@vara:~/bzprofiles/Clusters/tc_esgateway$ k get deployment.apps/tigera-secure-es-gateway -n tigera-elasticsearch -o yaml|grep -A 7 -B 1 resources
                  f:timeoutSeconds: {}
                f:resources:
                  .: {}
                  f:limits:
                    .: {}
                    f:cpu: {}
                    f:memory: {}
                  f:requests:
                    .: {}
--
          timeoutSeconds: 5
        resources:
          limits:
            cpu: 150m
            memory: 500Mi
          requests:
            cpu: 20m
            memory: 50Mi
        securityContext:
vara@vara:~/bzprofiles/Clusters/tc_esgateway$ kubectl patch logstorage tigera-secure  --type=merge --patch='{"spec": {"esGatewayDeployment":{"spec": {"template": {"spec": {"containers":[{"name":"tigera-secure-es-gateway","resources":{"limits":{"cpu":"350m", "memory":"300Mi"},"requests":{"cpu":"30m", "memory":"30Mi"}}}]}}}}}}'
logstorage.operator.tigera.io/tigera-secure patched
vara@vara:~/bzprofiles/Clusters/tc_esgateway$ k get deployment.apps/tigera-secure-es-gateway -n tigera-elasticsearch -o yaml|grep -A 7 -B 1 resources
                  f:timeoutSeconds: {}
                f:resources:
                  .: {}
                  f:limits:
                    .: {}
                    f:cpu: {}
                    f:memory: {}
                  f:requests:
                    .: {}
--
          timeoutSeconds: 5
        resources:
          limits:
            cpu: 350m
            memory: 300Mi
          requests:
            cpu: 30m
            memory: 30Mi
        securityContext:

Description

For PR author

For PR reviewers

A note for code reviewers - all pull requests must have the following: