Understanding Assets¶
Assets are preconfigured building blocks that simplify workload creation and enable sharing of standardized configurations across teams. This section walks you through creating and using the four main asset types in Run:AI.
What are Assets?¶
Assets allow you to: - Standardize Configurations: Create reusable templates for environments and resources - Simplify Workload Creation: Reduce complexity for end users - Share Resources: Enable teams to use consistent setups - Maintain Control: Define scope and permissions for asset usage
Asset Types¶
Run:AI supports four main asset types:
- Environments: Container images, tools, and runtime configurations
- Compute Resources: GPU, CPU, and memory specifications
- Data Sources: Storage connections for datasets and model artifacts
- Credentials: Secure access to services and sensitive data
Prerequisites¶
Before creating assets, ensure you have: - Admin or asset creation permissions in your project - Access to the Run:AI user interface - Understanding of your workload requirements
Using Assets in Workloads¶
Once you've created assets, you can use them when creating workloads:
1. Create a Workload with Assets¶
- Navigate to Workload manager → Workloads
- Click "+ NEW WORKLOAD"
- Select your workload type
2. Apply Your Assets¶
Environment Selection: - Choose your custom environment from the dropdown
Compute Resources: - Select your predefined compute resource
Data Sources: - Mount your PVC and Git data sources
Credentials (if needed): - Reference any credentials for secure access
3. Verify Asset Usage¶
Once your workload is running:
# Check mounted data sources
ls -la /mnt/datasets
ls -la /mnt/sample-data
# Verify environment variables from credentials
echo $WANDB_API_KEY
Best Practices¶
Asset Organization¶
-
Naming Conventions: Use descriptive, consistent names
-
Scope Management:
- Use Project scope for team-specific assets
-
Use Cluster scope for organization-wide resources
-
Documentation: Always add meaningful descriptions to your assets
Security Considerations¶
- Credential Management:
- Never store credentials in plain text
- Use appropriate scoping to limit access
-
Regularly rotate sensitive credentials
-
Data Access:
- Ensure data sources have proper access controls
- Use read-only mounts when write access isn't needed
Troubleshooting¶
Common Issues¶
Asset Not Visible: - Check asset scope matches your project access - Verify you have proper permissions
Mount Failures:
# Check PVC status
kubectl get pvc -n runai-<project-name>
# Verify storage class availability
kubectl get storageclass
Image Access Issues:
Next Steps¶
Now that you understand assets:
- Create your first assets using the detailed guides for each type
- Experiment with different asset combinations in workloads
- Share assets with team members for collaboration
- Optimize resource allocations based on actual usage
Related Guides¶
- Interactive Workload - Use assets in Jupyter environments
- Training Workload - Apply assets to training jobs
- GPU Fractions - Optimize compute resource usage