high-garage-86992
10/04/2022, 8:42 PMcra.yaml
will be applied in k8s via the resourcequota
on the project-domain namespace. Is that not the case?
After updating cluster-resources-attribute
, I'm seeing following mismatch:
flytectl get cluster-resource-attribute -p flytesnacks -d development
returns
{
"project": "flytesnacks",
"domain": "development",
"attributes": {
"projectQuotaCpu": "10",
"projectQuotaMemory": "14G"
}
}
but
kubectl -n flytesnacks-development get resourcequotas
returns
NAME AGE REQUEST LIMIT
project-quota 142m limits.cpu: 0/4, limits.memory: 0/3000Mi
acceptable-policeman-57188
high-garage-86992
10/06/2022, 1:09 PMattributes:
projectQuotaCpu: "10"
projectQuotaMemory: "14G"
domain: development
project: flytesnacks
And then applying with flytectl update cluster-resource-attribute --attrFile cra.yaml
acceptable-policeman-57188
flytectl sandbox start
or flytectl demo start
?high-garage-86992
10/06/2022, 5:36 PMflytectl sandbox start
acceptable-policeman-57188
high-garage-86992
10/06/2022, 5:57 PMsyncresouces
pod is status ready. It's log shows an error, but I think it's from when the cluster started not from when I updated the cra.
time="2022-10-06T17:42:59Z" level=info msg="Using config file: [/etc/flyte/config/cluster_resources.yaml /etc/flyte/config/db.yaml /etc/flyte/config/domain.yaml]"
2022/10/06 17:42:59 /go/src/github.com/flyteorg/flyteadmin/pkg/repositories/gormimpl/project_repo.go:80 ERROR: relation "projects" does not exist (SQLSTATE 42P01)
[0.455ms] [rows:0] SELECT * FROM "projects" WHERE state <> 1 ORDER BY created_at desc
{"json":{},"level":"warning","msg":"Failed cluster resource creation loop with: cannot query with specified table attributes: relation \"projects\" does not exist","ts":"2022-10-06T17:42:59Z"}
acceptable-policeman-57188
high-garage-86992
10/06/2022, 6:03 PM2022-10-06 17:42:24.344 UTC [1] LOG: database system is ready to accept connections
2022-10-06 17:42:52.020 UTC [74] FATAL: database "datacatalog" does not exist
2022-10-06 17:42:59.099 UTC [78] ERROR: relation "projects" does not exist at character 15
2022-10-06 17:42:59.099 UTC [78] STATEMENT: SELECT * FROM "projects" WHERE state <> $1 ORDER BY created_at desc
acceptable-policeman-57188
acceptable-policeman-57188
high-garage-86992
10/06/2022, 6:06 PMhigh-garage-86992
10/06/2022, 9:06 PMrollout restart
), the flytesnacks-development project-quota
is synced correctly.
If i update the cra again, then those changes don't make it to the project-quota
. Restarting flytedmin again then causes them to sync.