Apply the configuration
furyctl apply makes the cluster the same as the configuration file. The first time, it creates the cluster. After that, it changes the cluster when you change the file.
Before you start
furyctl downloads most of the tools that it needs. For the EKSCluster provider, you also need:
- The AWS CLI.
- OpenVPN, if the configuration file has the
vpnfield.
To make sure that your system has all the dependencies for the cluster in your configuration file, run:
furyctl validate dependencies
Create the cluster
From a system that has access to the resources needed for your cluster (either a pre-existing Kubernetes cluster, a set of pre-existing VMs or bare-metal machines or AWS CLI with a configured profile), navigate to the folder that contains your configuration file and run:
furyctl apply
furyctl will parse the configuration and will execute each phase in the following order: infrastructure -> kubernetes -> distribution -> plugins.
Some modules (Monitoring, Logging, Tracing), by default, need a StorageClass to be already existing inside the Kubernetes cluster in order to dynamically provision their PersistentVolumeClaims. If there is no default StorageClass, the distribution phase skips the components that need one (dr, logging, tracing with Tempo, prometheus-operated, mimir). If a default StorageClass becomes available later in the same furyctl apply, furyctl applies the distribution phase again to install these components.
To be able to install these modules, you can:
-
For components that can use an external S3-compatible bucket (Loki, Tempo, Mimir, Velero, etc.), change the
backendproperty of these packages toexternalEnpointand provide the required credentials. -
Put a CSI of your choice in the
.spec.distribution.customResourcessection of your configuration file. This is the recommended solution. After thedistributionphase,furyctlfinds the defaultStorageClassand applies thedistributionphase again, before thepluginsphase. -
Put a CSI of your choice in the
pluginssection of your configuration file. After thepluginsphase,furyctlwaits up to 2 minutes for a defaultStorageClass. Then it applies thedistributionphase again.You can do this instead if you want more control:
furyctl apply --phase infrastructure # if applicablefuryctl apply --phase kubernetes # if applicablefuryctl apply --phase pluginsfuryctl apply -
Install a CSI of your choice outside of SD before running
furyctl apply.
Apply phase by phase
furyctl apply runs all the phases. To run one phase, use the --phase flag:
furyctl apply --phase infrastructure
furyctl apply --phase kubernetes
furyctl apply --phase distribution
If the infrastructure phase creates a VPN, the --vpn-auto-connect flag connects your machine to it. After the kubernetes phase, set the KUBECONFIG environment variable to the kubeconfig file that furyctl created, or use the --kubeconfig flag.
If the infrastructure is already there, do not fill the infrastructure section of the configuration file, and start from the kubernetes phase:
furyctl apply --start-from kubernetes
Restart from a phase
If the installation or an update stops, you can restart it from a phase or a sub-phase with the --start-from flag. The values are: pre-infrastructure, infrastructure, post-infrastructure, pre-kubernetes, kubernetes, post-kubernetes, pre-distribution, distribution, post-distribution, plugins.
During an upgrade, see Upgrade failures.
Access the cluster
After the first apply, furyctl will write a kubeconfig file inside the same directory where you run it. You can use it to access your cluster with kubectl:
kubectl get nodes --kubeconfig ./kubeconfig
If you don't have the kubeconfig file, for example because you are working in a team that shared with you the configuration file without the kubeconfig, you can retrieve it running:
furyctl get kubeconfig
Change the cluster
To add, remove or change a component of the cluster, edit the configuration file and run furyctl apply again. furyctl applies only the phases that the change needs.
To upgrade the cluster to a new SD version, see Upgrade the cluster.