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.
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 pushImportantPush changes to your Git repository before deploying if the blueprint uses Apache Airflow: git-sync pulls DAGs directly from the pushed branch.
Deploy and verify the blueprint components in sequence:
Apply any required custom Helm repository resources:
> kubectl apply -f blueprints/my-demo-ollama/clusterrepos/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.comIn the SUSE AI Factory Web interface, navigate to Blueprints, select your blueprint, and click Create AIWorkload. Choose the target namespace.
Verify that the pods and PVCs initialize correctly:
> kubectl -n <NAMESPACE> get pods -w > kubectl -n <NAMESPACE> get pvcIf using Apache Airflow, unpause and execute the DAGs:
> kubectl -n <NAMESPACE> port-forward svc/apache-airflow-api-server 8080:8080Forward local ports for any service that needs to communicate with the client or user interface.
To clean up, delete the
AIWorkloadfrom 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