-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmachine-deployment.yaml
More file actions
30 lines (29 loc) · 1.05 KB
/
machine-deployment.yaml
File metadata and controls
30 lines (29 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Sample machine-deploy object
apiVersion: machine.sapcloud.io/v1alpha1
kind: MachineDeployment
metadata:
name: test-machine-deployment
namespace: default
spec:
# paused: true
# rollbackTo:
# revision: 0
replicas: 3 # Number of healthy replicas that should always be healthy
minReadySeconds: 500 # Minimum time to wait for machine to be ready
strategy:
type: RollingUpdate # Strategy for update RollingUpdate/Recreate
rollingUpdate:
maxSurge: 1 # Maximum addition machines that spawned over the desired replicas during update
maxUnavailable: 1 # Maximum unavailable machines that the cluster can tolerate
selector:
matchLabels:
test-label: test-label # Label to match the template (XXXXX)
template:
metadata:
labels:
test-label: test-label # Label to match with selector (XXXXX)
spec:
class:
kind: MachineClass # Machine class template used to create machine, could be AWS/GCP/Azure/Other-cloud-providers
name: test-mc # Name of the machine class
namespace: default