# ask-ai

Sage Elliott

02/09/2024, 7:17 PM
@Glime during a local node setup I'm getting this error: Error from server (NotFound): error when creating "local-flyte-resources.yaml": namespaces "flyte" not found


02/09/2024, 7:17 PM
Based on the error message you're encountering, it seems that the Kubernetes namespace "flyte" does not exist in your local cluster, which is required for deploying Flyte resources. To resolve this issue, you need to create the "flyte" namespace before applying your
file. Here's how you can do it: Step 1: Create the Namespace You can create the namespace by running the following command in your terminal:
Copy code
kubectl create namespace flyte
This command creates a new namespace named "flyte" in your Kubernetes cluster. Step 2: Apply Your Configuration After creating the namespace, you can proceed with applying your
file by running:
Copy code
kubectl apply -f local-flyte-resources.yaml -n flyte
This command applies your configuration to the "flyte" namespace, which should resolve the "NotFound" error you were facing. Additional Information • Ensure that your Kubernetes cluster is running and that you have
installed and configured to communicate with your cluster. • If you're setting up Flyte for the first time or experimenting, consider using the Flyte sandbox environment, which simplifies the setup process. More information can be found in the Flyte documentation. Remember, the namespace must exist before you can deploy resources into it. This step is crucial for organizing and isolating resources within Kubernetes. Sources • The solution is derived from the context provided, specifically from the basic Kubernetes operation of creating namespaces and deploying resources to them. Further details on managing namespaces in Kubernetes can be found in the official Kubernetes documentation: • For more detailed instructions on setting up Flyte, including using the sandbox environment, refer to the official Flyte documentation: