dazzling-advantage-95256
08/07/2023, 2:17 PMflyteadmin:
initialProjects:
- flytePOC
After that I started to see the following error in the syncresources
{"json":{},"level":"error","msg":"Failed cluster resource creation loop with: Failed to create kubernetes object from config template [aa_namespace.yaml] for namespace [flytePOC-development] with err: Namespace \"flytePOC-development\" is invalid: metadata.name: Invalid value: \"flytePOC-development\": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character ....
so to undo this I just uninstalled the deployment
helm uninstall
and removed the initialProjects setting from the original value.yaml file.
The problem is that even after removing this, a fresh helm install...
still produces this error. What is the resource that needs to be deleted manually to remove the error? since I can't figure out from the error message
(btw, I think that this is the issue, but it might be also something else)average-finland-92144
08/07/2023, 2:26 PMhelm install
operation?
Typically, the only Flyte resource that is left after a helm uninstall
operation is a MutatingWebhookConfiguration
kubectl get mutatingwebhookconfiguration
dazzling-advantage-95256
08/07/2023, 2:27 PMhelm install -n flyte -f values-eks.yaml --create-namespace flyte flyteorg/flyte-core
average-finland-92144
08/07/2023, 2:28 PMMutatingWebhookConfiguration
that refers to Flyte and try againdazzling-advantage-95256
08/07/2023, 2:28 PMdazzling-advantage-95256
08/07/2023, 2:29 PMflyteexamples-development Active 23m
flyteexamples-production Active 23m
flyteexamples-staging Active 23m
flytesnacks-development Active 23m
flytesnacks-production Active 23m
flytesnacks-staging Active 23m
flytetester-development Active 23m
flytetester-production Active 23m
flytetester-staging Active 23m
+ the flyte one. I'll also delete thoseaverage-finland-92144
08/07/2023, 2:30 PMdazzling-advantage-95256
08/07/2023, 2:31 PMhelm repo add flyteorg <https://flyteorg.github.io/flyte>
dazzling-advantage-95256
08/07/2023, 2:31 PMdazzling-advantage-95256
08/07/2023, 2:33 PMaverage-finland-92144
08/07/2023, 2:34 PMaverage-finland-92144
08/07/2023, 2:35 PMflyte-core
chart.
Those namespaces got created because this default setting:
initialProjects:
- flytesnacks
- flytetester
- flyteexamples
average-finland-92144
08/07/2023, 2:35 PMflytesnacks
dazzling-advantage-95256
08/07/2023, 2:35 PMdazzling-advantage-95256
08/07/2023, 2:42 PMaverage-finland-92144
08/07/2023, 2:45 PMkubectl get all --all-namespaces
dazzling-advantage-95256
08/07/2023, 2:47 PMNAMESPACE NAME READY STATUS RESTARTS AGE
flyte pod/datacatalog-59dcf9f974-l69k7 1/1 Running 0 4m48s
flyte pod/flyte-pod-webhook-568769565f-774jr 1/1 Running 0 4m48s
flyte pod/flyteadmin-6cb7759fcb-xd5sj 0/1 Init:CrashLoopBackOff 5 (80s ago) 4m48s
flyte pod/flyteconsole-784d7f5969-wc9lj 1/1 Running 0 4m48s
flyte pod/flytepropeller-76f8bd454d-79xcp 1/1 Running 0 4m48s
flyte pod/flytescheduler-689c576d79-j6nrf 0/1 Init:CrashLoopBackOff 5 (109s ago) 4m48s
flyte pod/syncresources-855bcbc6c9-m7r2j 1/1 Running 0 4m48s
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
flyte service/datacatalog NodePort xxxx <none> 8089:32501/TCP,88:32339/TCP,89:32465/TCP 4m49s
flyte service/flyte-pod-webhook ClusterIP xxxx <none> 443/TCP 4m49s
flyte service/flyteadmin ClusterIP xxxx <none> 80/TCP,81/TCP,87/TCP,10254/TCP 4m49s
flyte service/flyteconsole ClusterIP xxxx <none> 80/TCP 4m49s
NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE
flyte deployment.apps/datacatalog 1/1 1 1 4m50s
flyte deployment.apps/flyte-pod-webhook 1/1 1 1 4m50s
flyte deployment.apps/flyteadmin 0/1 1 0 4m50s
flyte deployment.apps/flyteconsole 1/1 1 1 4m50s
flyte deployment.apps/flytepropeller 1/1 1 1 4m50s
flyte deployment.apps/flytescheduler 0/1 1 0 4m50s
flyte deployment.apps/syncresources 1/1 1 1 4m50s
NAMESPACE NAME DESIRED CURRENT READY AGE
flyte replicaset.apps/datacatalog-59dcf9f974 1 1 1 4m50s
flyte replicaset.apps/flyte-pod-webhook-568769565f 1 1 1 4m50s
flyte replicaset.apps/flyteadmin-6cb7759fcb 1 1 0 4m50s
flyte replicaset.apps/flyteconsole-784d7f5969 1 1 1 4m50s
flyte replicaset.apps/flytepropeller-76f8bd454d 1 1 1 4m50s
flyte replicaset.apps/flytescheduler-689c576d79 1 1 0 4m50s
flyte replicaset.apps/syncresources-855bcbc6c9 1 1 1 4m50s
dazzling-advantage-95256
08/07/2023, 2:48 PMdazzling-advantage-95256
08/07/2023, 2:51 PMBack-off restarting failed container sync-cluster-resources in pod flyteadmin-
so it seems related to the syncresources
service issueaverage-finland-92144
08/07/2023, 2:55 PMkubectl logs syncresources-855bcbc6c9-m7r2j -n flyte
dazzling-advantage-95256
08/07/2023, 2:58 PM{
"json": {},
"level": "error",
"msg": "Failed cluster resource creation loop with: Failed to create kubernetes object from config template [aa_namespace.yaml] for namespace [flytePOC-development] with err: Namespace \"flytePOC-development\" is invalid: metadata.name: Invalid value: \"flytePOC-development\": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?'), Failed to create kubernetes object from config template [aab_default_service_account.yaml] for namespace [flytePOC-development] with err: namespaces \"flytePOC-development\" not found, Failed to create kubernetes object from config template [ab_project_resource_quota.yaml] for namespace [flytePOC-development] with err: namespaces \"flytePOC-development\" not found, Failed to create kubernetes object from config template [aa_namespace.yaml] for namespace [flytePOC-staging] with err: Namespace \"flytePOC-staging\" is invalid: metadata.name: Invalid value: \"flytePOC-staging\": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?'), Failed to create kubernetes object from config template [aab_default_service_account.yaml] for namespace [flytePOC-staging] with err: namespaces \"flytePOC-staging\" not found, Failed to create kubernetes object from config template [ab_project_resource_quota.yaml] for namespace [flytePOC-staging] with err: namespaces \"flytePOC-staging\" not found, Failed to create kubernetes object from config template [aa_namespace.yaml] for namespace [flytePOC-production] with err: Namespace \"flytePOC-production\" is invalid: metadata.name: Invalid value: \"flytePOC-production\": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?'), Failed to create kubernetes object from config template [aab_default_service_account.yaml] for namespace [flytePOC-production] with err: namespaces \"flytePOC-production\" not found, Failed to create kubernetes object from config template [ab_project_resource_quota.yaml] for namespace [flytePOC-production] with err: namespaces \"flytePOC-production\" not found",
"ts": "2023-08-07T14:56:19Z"
}
it gets angry about the creation of namespaces with capital letters, which were the ones I had defined at some point in values-eks.yaml. To ensure that those are gone, I re-downloaded the original file and I am applying that one.dazzling-advantage-95256
08/07/2023, 2:58 PMflyteadmin:
initialProjects:
- flytePOC
but I have removed it again and tried to uninstall and reinstall already a few timesdazzling-advantage-95256
08/07/2023, 3:08 PMdazzling-advantage-95256
08/07/2023, 3:11 PMsyncresources
serviceaverage-finland-92144
08/07/2023, 3:38 PM