careful-piano-35677
09/29/2023, 12:15 PMpyflyte register
, it throws error saying,
RPC Failed, with Status: StatusCode.INVALID_ARGUMENT
details: Requested MEMORY default [20Gi] is greater than current limit set in the platform configuration [2Gi]. Please contact Flyte Admins to change these limits or consult the configuration
Debug string UNKNOWN:Error received from peer ipv4:127.0.0.1:8089 {grpc_message:"Requested MEMORY default [20Gi] is greater than current limit set in the platform configuration [2Gi]. Please contact Flyte Admins to change these limits or consult the configuration", grpc_status:3, created_time:"2023-09-29T17:36:51.296741384+05:30"}
seems like there was a request limit in platform config, so I've updated the values.yaml
file which contains the override values when installing via helm install "" --values "values.yaml"
to,
configuration:
database:
username: postgres
host: postgres.flyte.svc.cluster.local
dbname: flyteadmin
storage:
type: minio
metadataContainer: ""
userDataContainer: ""
provider: s3
providerConfig:
s3:
region: "us-east-1" #Irrelevant for local but still needed
authType: ""
endpoint: "<http://minio.flyte.svc.cluster.local:9000>"
accessKey: ""
secretKey: ""
disableSSL: "true"
secure: "false"
inlineSecretRef: flyte-binary-inline-config-secret
inline:
plugins:
k8s:
inject-finalizer: true
default-env-vars:
- FLYTE_AWS_ENDPOINT: "<http://minio.flyte.svc.cluster.local:9000>"
- FLYTE_AWS_ACCESS_KEY_ID: ""
- FLYTE_AWS_SECRET_ACCESS_KEY: ""
deployment:
resources:
limits:
cpu: 64
gpu: 16
memory: 32Gi
requests:
cpu: 8
gpu: 4
memory: 16Gi
serviceAccount:
create: true
got the values.yaml
and deployment steps
from @average-finland-92144’s flyte-the-hard-way , now how can I update the request limit of the deployment to my desired range!? Need help with the configuration settings.average-finland-92144
09/29/2023, 1:08 PMinline
section of the values file, as indicated here:
https://github.com/davidmirror-ops/flyte-the-hard-way/blob/82fcb0ca1524f837df348b71058dfa6ea39160a4/docs/on-premises/local-values.yaml#L30-L35careful-piano-35677
09/29/2023, 1:30 PMurl unreachable
where the url is pointing to the previously used bucket name.
Since this method didn't worked I used this file as reference and updated the local-values.yaml
.average-finland-92144
09/29/2023, 1:40 PMflyte-binary
configmap?careful-piano-35677
09/29/2023, 1:56 PMvalues.yaml
which is used when we install the flyte-binary
using helm, so
configuration:
database:
username: postgres
host: postgres.flyte.svc.cluster.local
dbname: flyteadmin
storage:
type: minio
metadataContainer: my-s3-bucket
userDataContainer: my-s3-bucket
provider: s3
providerConfig:
s3:
region: "us-east-1" #Irrelevant for local but still needed
authType: "accesskey"
endpoint: "<http://minio.flyte.svc.cluster.local:9000>"
accessKey: ""
secretKey: ""
disableSSL: "true"
secure: "false"
logging:
level: 7
plugins:
kubernetes:
enabled: true
inlineSecretRef: flyte-binary-inline-config-secret
configuration
inline:
plugins:
k8s:
inject-finalizer: true
default-env-vars:
- FLYTE_AWS_ENDPOINT: "<http://minio.flyte.svc.cluster.local:9000>"
- FLYTE_AWS_ACCESS_KEY_ID: ""
- FLYTE_AWS_SECRET_ACCESS_KEY: "" #Use the same value as the MINIO_ROOT_PASSWORD
task_resources:
limits:
cpu: 64
gpu: 16
memory: 32Gi
defaults:
cpu: 8
gpu: 4
memory: 16Gi
serviceAccount:
create: true
or do you mean the config.yaml
which contains the endpoint details and used by pyflyte
or flytectl
when registering or running workflows, if so,
admin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///localhost:8089
insecure: true
authType: Pkce
console:
endpoint: <http://localhost:8088>
logger:
show-source: true
level: 7
average-finland-92144
09/29/2023, 2:01 PMkubectl get cm -n flyte
Whatever you add to the `values`file, Helm renders it, validate it and ends up being applied to a configmap. I just can't remember if it's flyte-binary-config
. Then, if you do a kubectl describe cm <configmap-name> -n flyte
you'll see the actual config that the Flyte Pod is consumingcareful-piano-35677
09/29/2023, 5:09 PM