Skip to content

Commit 7ea8ca5

Browse files
committed
update sample manifests for worker machine
1 parent 808466d commit 7ea8ca5

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

config/samples/bootstrap.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ kind: KubeadmConfig
33
metadata:
44
name: proxmoxmachine-sample
55
spec:
6-
initConfiguration:
7-
nodeRegistration:
8-
kubeletExtraArgs:
9-
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
10-
clusterConfiguration:
11-
controllerManager:
12-
extraArgs:
13-
enable-hostpath-provisioner: "true"
6+
postKubeadmCommands:
7+
- "curl -L https://dl.k8s.io/release/v1.27.3/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl"
8+
- "chmod +x /usr/local/bin/kubectl"
9+
- "reboot now"

config/samples/infrastructure_v1beta1_proxmoxmachine.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,18 @@ metadata:
99
app.kubernetes.io/created-by: cluster-api-provider-proxmox
1010
name: proxmoxmachine-sample
1111
spec:
12-
providerID: ""
13-
failureDomain: ""
12+
image:
13+
url: https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64-disk-kvm.img
14+
cloudInit:
15+
user:
16+
user: ubnt
17+
password: ubnt
18+
hardware:
19+
cpu: 2
20+
memory: 4096
21+
network:
22+
ipConfig:
23+
gateway: 192.168.1.1 # your gateway address
24+
ip: 192.168.1.223/32 # your controplane endpoint
25+
nameServer: 192.168.1.1 # your dns server address
26+

config/samples/machine.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ kind: Machine
33
metadata:
44
name: proxmoxmachine-sample
55
labels:
6-
# cluster.x-k8s.io/control-plane: true
76
cluster.x-k8s.io/cluster-name: proxmoxcluster-sample
87
spec:
98
clusterName: proxmoxcluster-sample
@@ -15,4 +14,5 @@ spec:
1514
configRef:
1615
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
1716
kind: KubeadmConfig
18-
name: proxmoxmachine-sample
17+
name: proxmoxmachine-sample
18+
version: v1.26.5

0 commit comments

Comments
 (0)