|Index|Creating SUSE AI Factory Blueprints|How do I publish and run a blueprint?
Applies to SUSE AI Factory

9 How do I publish and run a blueprint?

After creating and documenting your SUSE AI Factory blueprint, commit the files to your repository, register the custom resource on the cluster, and launch the workload from the Web interface.

  1. Commit the blueprint files to a Git repository. For partner blueprints, use the SUSE partner-blueprints repository.

    git add blueprints/my-demo-ollama
    git commit -m "Add My Demo (Ollama, CPU) blueprint"
    git push
    Important
    Important

    Push changes to your Git repository before deploying if the blueprint uses Apache Airflow: git-sync pulls DAGs directly from the pushed branch.

  2. Deploy and verify the blueprint components in sequence:

    1. Apply any required custom Helm repository resources:

      > kubectl apply -f blueprints/my-demo-ollama/clusterrepos/
    2. Register the blueprint resource on the cluster:

      > kubectl apply -f blueprints/my-demo-ollama/my-demo-ollama-1-0-0.yaml
      > kubectl get blueprints.ai-factory.suse.com
    3. In the SUSE AI Factory Web interface, navigate to Blueprints, select your blueprint, and click Create AIWorkload. Choose the target namespace.

    4. Verify that the pods and PVCs initialize correctly:

      > kubectl -n <NAMESPACE> get pods -w
      > kubectl -n <NAMESPACE> get pvc
    5. If using Apache Airflow, unpause and execute the DAGs:

      > kubectl -n <NAMESPACE> port-forward svc/apache-airflow-api-server 8080:8080
    6. Forward local ports for any service that needs to communicate with the client or user interface.

  3. To clean up, delete the AIWorkload from the SUSE AI Factory Web interface, then delete the blueprint custom resource:

    > kubectl delete -f blueprints/my-demo-ollama/my-demo-ollama-1-0-0.yaml