forked from kubernetes-sigs/cluster-api-provider-kubemark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubemark-machine-deployment-external-cluster.yaml
66 lines (65 loc) · 1.8 KB
/
kubemark-machine-deployment-external-cluster.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
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
annotations:
cluster.x-k8s.io/cluster-api-autoscaler-node-group-max-size: "5"
cluster.x-k8s.io/cluster-api-autoscaler-node-group-min-size: "1"
name: km-wl-kubemark-external-md-0
namespace: default
spec:
clusterName: km-cp
replicas: 4
selector:
matchLabels:
cluster.x-k8s.io/cluster-name: km-cp
cluster.x-k8s.io/deployment-name: km-wl-kubemark-external-md-0
template:
metadata:
labels:
cluster.x-k8s.io/cluster-name: km-cp
cluster.x-k8s.io/deployment-name: km-wl-kubemark-external-md-0
spec:
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
name: km-wl-kubemark-external-md-0
clusterName: km-cp
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: KubemarkMachineTemplate
name: km-wl-kubemark-external-md-0
version: 1.28.7
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: KubemarkMachineTemplate
metadata:
labels:
cluster.x-k8s.io/cluster-name: km-cp
name: km-wl-kubemark-external-md-0
namespace: default
spec:
template:
spec:
extraMounts:
- name: containerd-sock
containerPath: /run/containerd/containerd.sock
hostPath: /run/containerd/containerd.sock
type: Socket
kubemarkHollowPodClusterSecretRef:
apiVersion: v1
kind: Secret
name: kubemark-cluster-kubeconfig
namespace: capk-system
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
metadata:
name: km-wl-kubemark-external-md-0
namespace: default
spec:
template:
spec:
joinConfiguration:
nodeRegistration:
name: ''