Containers and Kubernetes¶
Overview¶
RosettaHub provides a unified interface for managing containers, container images, registries, and Kubernetes clusters across cloud providers. In this tutorial you will manage container lifecycles, set up repositories, and work with Kubernetes clusters from the CLI.
Prerequisites¶
- [ ] Completed Getting Started with the CLI
- [ ] At least one cloud account with container service access
- [ ] Default cloud and region configured
Steps¶
Step 1: Manage Containers¶
List, start, stop, and manage containers:
rh container create --label "API Server"
rh container start <containerUid>
rh container stop <containerUid>
rh container reboot <containerUid>
rh container recreate <containerUid>
rh container delete <containerUid>
Check container state:
Commit a container (save its current state as an image):
Step 2: Container Images¶
List and manage container images:
rh container-image ls
rh container-image ls -s # shared images
rh container-image ls -p # public images
Create a container image:
Step 3: Container Repositories¶
Container repositories host your container images (ECR, ACR, GCR):
Step 4: Kubernetes Clusters¶
Create and manage Kubernetes clusters:
Check available Kubernetes versions:
Step 5: Kubernetes Node Groups and Autoscaling¶
Manage node groups:
Create an autoscaler:
Create a dashboard:
Step 6: Share Kubernetes Clusters¶
Step 7: Engine Pools¶
Engine pools define worker node configurations for clusters:
Step 8: Inspect Resources with JSON Output¶
Use JSON output for detailed inspection:
Tip
Use --dry-run when creating clusters to preview the configuration before provisioning.
Next Steps¶
- Creating and Launching Formations — compare VM-based and container workloads
- Automation with Cron Jobs — schedule container operations
Troubleshooting¶
Cannot create Kubernetes cluster
Ensure your cloud account has the required permissions for container services (EKS, AKS, GKE).
Container image not found
Cloud-native images must be registered in RosettaHub first. Use rh container-image create.
What Kubernetes versions are available?
Run rh k8s versions to see all supported versions for your cloud provider.