-
Notifications
You must be signed in to change notification settings - Fork 1
/
hetzner-microk8s-demo.yaml
132 lines (132 loc) · 3.14 KB
/
hetzner-microk8s-demo.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: HetznerCluster
metadata:
name: hetzner-microk8s-demo
namespace: default
spec:
controlPlaneEndpoint:
host: ""
port: 443
controlPlaneLoadBalancer:
region: nbg1
controlPlaneRegions:
- nbg1
hcloudNetwork:
enabled: false
hcloudPlacementGroups:
- name: control-plane
type: spread
- name: md-0
type: spread
hetznerSecretRef:
key:
hcloudToken: hcloud
hetznerRobotPassword: robot-password
hetznerRobotUser: robot-user
name: hetzner
sshKeys:
hcloud:
- name: lraus-cka_sshkey
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: HCloudMachineTemplate
metadata:
name: hetzner-microk8s-demo-control-plane
namespace: default
spec:
template:
spec:
imageName: microk8s-ubuntu-22.04-2023-07-21-1830
placementGroupName: control-plane
type: cpx31
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: HCloudMachineTemplate
metadata:
name: hetzner-microk8s-demo-md-0
namespace: default
spec:
template:
spec:
imageName: microk8s-ubuntu-22.04-2023-07-21-1830
placementGroupName: md-0
type: cpx31
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: hetzner-microk8s-demo
namespace: default
spec:
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: MicroK8sControlPlane
name: hetzner-microk8s-demo-control-plane
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: HetznerCluster
name: hetzner-microk8s-demo
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: MicroK8sConfigTemplate
metadata:
name: hetzner-microk8s-demo-md-0
namespace: default
spec:
template:
spec:
clusterConfiguration:
portCompatibilityRemap: true
initConfiguration:
confinement: classic
riskLevel: edge
---
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: MicroK8sControlPlane
metadata:
name: hetzner-microk8s-demo-control-plane
namespace: default
spec:
controlPlaneConfig:
clusterConfiguration:
portCompatibilityRemap: true
initConfiguration:
IPinIP: true
addons:
- dns
- ingress
confinement: classic
joinTokenTTLInSecs: 9000
riskLevel: edge
machineTemplate:
infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: HCloudMachineTemplate
name: hetzner-microk8s-demo-control-plane
replicas: 1
upgradeStrategy: SmartUpgrade
version: v1.25.0
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
name: hetzner-microk8s-demo-md-0
namespace: default
spec:
clusterName: hetzner-microk8s-demo
replicas: 2
selector:
matchLabels: null
template:
spec:
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: MicroK8sConfigTemplate
name: hetzner-microk8s-demo-md-0
clusterName: hetzner-microk8s-demo
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: HCloudMachineTemplate
name: hetzner-microk8s-demo-md-0
version: 1.25.0