This repository contains a script for setting up a test instance of a Kubernetes cluster using Multipass. This setup is intended for those who wish to experiment with Kubernetes in a sandbox environment on their local machines.
For detailed information on securing your Kubernetes cluster, refer to the Kubernetes Security Guide available at Kubernetes Security Guide. This guide provides comprehensive coverage on best practices for securing Kubernetes deployments.
To use the script, follow these steps:
- Ensure you have Multipass installed on your machine. If not, you can download it from Multipass official website.
- Ensure you have kubectl installed on your machine. If not, you can find installation instruction in offical documentation.
- Clone this repository to your local machine.
- Navigate to the cloned repository in your terminal (
cd kubernetes-security-guide
) - Run the script using the command
./bootstrap-kubernetes.sh
(or.\bootstrap-kubernetes.ps1
for Windows).
If you would like to revert changes made by the script (delete the created virtual machines), you can use the cleanup.sh
(or cleanup.ps1
) script.
If you have suggestions for improving the setup script or if you encounter any issues, please feel free to open an issue or submit a pull request.