Function server_forge::containerization::setup_kubernetes
source · pub fn setup_kubernetes(
rollback: &RollbackManager,
) -> Result<(), Box<dyn Error>>
Expand description
Sets up Kubernetes on the system.
This function installs Kubernetes tools (kubectl and minikube), configures them, and ensures they’re ready for use. It creates a snapshot before installation for potential rollback.
§Arguments
rollback
- A reference to theRollbackManager
for creating snapshots
§Returns
Returns Ok(())
if Kubernetes is set up successfully, or an error if setup fails.