Hey <@ULVA73B9P> :How to override EKS resources vi...
# ask-marvin
s
Hey @Marvin :How to override EKS resources via deployment "Infrastructure overrides" section
m
To override EKS resources via the "Infrastructure overrides" section during deployment, you would typically specify an infrastructure block when creating a deployment. This block will be used to specify the infrastructure and runtime environment for each flow. For more detailed information, I recommend checking out the following resources: 1. Kubernetes Deployment Guide 2. Infrastructure Concepts 3. Deploying Flows Tutorial Please note that these documents are part of the Prefect documentation, which is a workflow orchestration tool. If you're using a different tool or platform, the process might be different.
s
@Marvin: can you give me an example list command to overwrite cpu and memory in EKS
m
To override CPU and memory in EKS, you can set resource limits in the pod specification. Here's a basic example:
Copy code
yaml
apiVersion: v1
kind: Pod
metadata:
  name: my-pod
spec:
  containers:
  - name: my-container
    image: my-image
    resources:
      limits:
        cpu: "1"
        memory: "1Gi"
      requests:
        cpu: "0.5"
        memory: "500Mi"
In this example, the
limits
block specifies the maximum amount of CPU and memory that the container can use. The
requests
block specifies the amount of CPU and memory that the container is guaranteed. Please note that the values for CPU and memory should be adjusted according to your specific needs. For more detailed information, you can refer to the following resources: 1. Basic Pod CPU and Memory Management :: Amazon EKS Workshop - GitHub Pages 2. Memory and vCPU considerations for AWS Batch on Amazon EKS 3. eks — AWS CLI 1.30.3 Command Reference