Quick Start¶
Get started with 5-Spot in minutes.
Prerequisites¶
- Kubernetes cluster (1.27+)
- kubectl configured
- Cluster API (CAPI) installed
Installation¶
1. Apply the CRD¶
kubectl apply -f https://raw.githubusercontent.com/finos/5-spot/main/deploy/crds/scheduledmachine.yaml
2. Deploy the Operator¶
3. Verify Installation¶
Create Your First ScheduledMachine¶
Create a file named my-scheduled-machine.yaml:
apiVersion: capi.5spot.io/v1alpha1
kind: ScheduledMachine
metadata:
name: my-first-scheduled-machine
namespace: default
spec:
schedule:
daysOfWeek:
- mon-fri
hoursOfDay:
- 9-17
timezone: UTC
enabled: true
machine:
address: 192.168.1.100
user: admin
port: 22
files: []
bootstrapRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
name: worker-bootstrap-config
namespace: default
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: MachineTemplate
name: worker-machine-template
namespace: default
clusterName: my-cluster
priority: 50
gracefulShutdownTimeout: 5m
Apply it:
Check Status¶
Next Steps¶
- Prerequisites - Detailed requirements
- Installing CRDs - Manual CRD installation
- Deploying Operator - Production deployment
- Concepts - Understand how 5-Spot works