shy-evening-51366
07/05/2023, 2:33 PMflytectl demo startmem=6Gifreezing-boots-56761
fancy-plumber-70674
07/06/2023, 6:50 AMfancy-plumber-70674
07/06/2023, 6:50 AMshy-evening-51366
07/07/2023, 8:11 AMkubectl top pod -n tmp-developmentshy-evening-51366
07/07/2023, 8:21 AMFlyteWorkflowKind:  FlyteWorkflow
Execution Config:
  Environment Variables:  <nil>
  Interruptible:          <nil>
  Max Parallelism:        25
  Overwrite Cache:        false
  Recovery Execution:
  Task Plugin Impls:
  Task Resources:
    Limits:
      CPU:                2
      Ephemeral Storage:  0
      GPU:                1
      Memory:             1Gi
      Storage:            0
    Requests:
      CPU:                2
      Ephemeral Storage:  0
      GPU:                0
      Memory:             200Mi
      Storage:            0
Execution Id:
  Domain:   development
  Name:     fc4eefd4fe2614c0987f
  Project:  tmp1Gi@dynamic@task(limits=Resources(mem="6Gi"))
def run_task()
   # do stuff
@dynamic(limits=Resources(mem="500Mi"))
def base_workflow(config: Config):
   for i in list:
      run_task()
@workflow
def wf(config: Config):
   base_workflow(config=config)shy-evening-51366
07/07/2023, 8:43 AMflytectl update cluster-resource-attribute --attrFile cra.yamlcra.yamlattributes:
    projectQuotaCpu: "1000"
    projectQuotaMemory: 8Gi
domain: development
project: tmpshy-evening-51366
07/07/2023, 9:06 AMtask_resources:
  defaults:
    cpu: 100m
    memory: 200Mi
    storage: 100M
  limits:
    cpu: 500m
    gpu: 1
    memory: 8Gi
    storage: 10G❯ flytectl demo start --config /Users/{user}/.flyte/config-sandbox.yaml
Error:
strict mode is on but received keys [map[task_resources:{}]] to decode with no config assigned to receive them: failed strict mode check
ERRO[0000]shy-evening-51366
07/07/2023, 9:27 AMflyte-sandbox-configdata:
  000-core.yaml: |
    ...
    task_resources:
      defaults:
        cpu: 500m
        memory: 1Gi
      limits:
        cpu: 2
        memory: 8Gi
        gpu: 5
    cluster_resources:
      customData:
      - production:
        - projectQuotaCpu:
            value: "8"
        - projectQuotaMemory:
            value: "16Gi"
      - staging:
        - projectQuotaCpu:
            value: "8"
        - projectQuotaMemory:
            value: "16Gi"
      - development:
        - projectQuotaCpu:
            value: "8"
        - projectQuotaMemory:
            value: "16Gi"
      ...
    ...
    flyte:
      admin:
        disableClusterResourceManager: true
        ...shy-evening-51366
07/07/2023, 9:28 AMflytectl demo startfancy-plumber-70674
07/07/2023, 9:29 AMfreezing-boots-56761
freezing-boots-56761
tall-lock-23197
strict mode is on but received keys [map[task_resources:{}]] to decode with no config assigned to receive them: failed strict mode check
ERRO[0000]shy-evening-51366
07/07/2023, 2:07 PM~/.flyte/sandbox/config.yaml# gets current configmap and store locally
kubectl get cm -n flyte flyte-sandbox-config -o=yaml > configmap-flyte-sandbox-config.yaml
# updates configmap with new values from local file 000-core.yaml
yq eval '.data."000-core.yaml" = "'"$(< ./flyte/000-core.yaml)"'"' configmap-flyte-sandbox-config.yaml > updated-configmap-flyte-sandbox-config.yaml 
kubectl -n flyte apply -f updated-configmap-flyte-sandbox-config.yaml
# restart flyte pods to use new values
kubectl delete pods -l <http://app.kubernetes.io/name=flyte-sandbox|app.kubernetes.io/name=flyte-sandbox> -n flyte
# cleanup
rm configmap-flyte-sandbox-config.yaml
rm updated-configmap-flyte-sandbox-config.yamlshy-evening-51366
07/07/2023, 2:09 PM000-core.yamladmin:
  endpoint: localhost:8089
  insecure: true
catalog-cache:
  endpoint: localhost:8081
  insecure: true
  type: datacatalog
task_resources:
  defaults:
    cpu: 500m
    memory: 1Gi
  limits:
    cpu: 2
    memory: 8Gi
    gpu: 5
cluster_resources:
  customData:
  - production:
    - projectQuotaCpu:
        value: 8
    - projectQuotaMemory:
        value: 16Gi
  - staging:
    - projectQuotaCpu:
        value: 8
    - projectQuotaMemory:
        value: 16Gi
  - development:
    - projectQuotaCpu:
        value: 8
    - projectQuotaMemory:
        value: 16Gi
  standaloneDeployment: false
  templatePath: /etc/flyte/cluster-resource-templates
logger:
  show-source: true
  level: 6
propeller:
  create-flyteworkflow-crd: true
webhook:
  certDir: /var/run/flyte/certs
  localCert: true
  secretName: flyte-sandbox-webhook-secret
  serviceName: flyte-sandbox-webhook
  servicePort: 443
flyte:
  admin:
    disableClusterResourceManager: true
    disableScheduler: false
    disabled: false
    seedProjects:
    - flytesnacks
  dataCatalog:
    disabled: false
  propeller:
    disableWebhook: false
    disabled: falsefreezing-boots-56761
freezing-boots-56761
freezing-boots-56761
freezing-boots-56761
> cat ~/.flyte/sandbox/config.yaml
task_resources:
  defaults:
    cpu: 500m
    memory: 1Gi
  limits:
    cpu: 2
    memory: 8Gi
    gpu: 5> kubectl exec -it flyte-sandbox-79fc858b47-mj5w9 -- cat /etc/flyte/config.d/999-extra-config.yaml
Defaulted container "flyte" out of: flyte, flyteagent, wait-for-db (init)
task_resources:
  defaults:
    cpu: 500m
    memory: 1Gi
  limits:
    cpu: 2
    memory: 8Gi
    gpu: 5freezing-boots-56761
shy-evening-51366
07/07/2023, 6:08 PMflytectl demo reloadstrict mode ...~/.flyte/sandbox-config.yaml~/.flyte/sandbox/kubeconfigshy-evening-51366
07/07/2023, 6:08 PMfreezing-boots-56761
~/.flyte/sandbox/config.yamlfreezing-boots-56761
flytectlflyteshy-evening-51366
07/07/2023, 6:09 PMshy-evening-51366
07/07/2023, 6:21 PMshy-evening-51366
07/07/2023, 6:21 PMshy-evening-51366
07/07/2023, 6:23 PMshy-evening-51366
07/07/2023, 6:24 PMfreezing-boots-56761
freezing-boots-56761
