/
digitalocean-machinedeployment.yaml
60 lines (60 loc) · 1.47 KB
/
digitalocean-machinedeployment.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
apiVersion: v1
kind: Secret
metadata:
# If you change the namespace/name, you must also
# adjust the rbac rules
name: machine-controller-digitalocean
namespace: kube-system
type: Opaque
stringData:
token: << DIGITALOCEAN_TOKEN >>
---
apiVersion: "cluster.k8s.io/v1alpha1"
kind: MachineDeployment
metadata:
name: digitalocean-machinedeployment
namespace: kube-system
spec:
paused: false
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
minReadySeconds: 0
selector:
matchLabels:
foo: bar
template:
metadata:
labels:
foo: bar
spec:
providerSpec:
value:
sshPublicKeys:
- "<< YOUR_PUBLIC_KEY >>"
cloudProvider: "digitalocean"
cloudProviderSpec:
# If empty, can be set via DO_TOKEN env var
token:
secretKeyRef:
namespace: kube-system
name: machine-controller-digitalocean
key: token
region: fra1
size: 2gb
backups: false
ipv6: false
private_networking: true
# Monitoring must be turned off for Flatcar Container Linux
monitoring: false
tags:
- "machine-controller"
# Can be 'ubuntu' or 'centos'
operatingSystem: "ubuntu"
operatingSystemSpec:
disableAutoUpdate: true
versions:
kubelet: 1.29.4