Skip to content

Commit

Permalink
update sample manifests for worker machine
Browse files Browse the repository at this point in the history
  • Loading branch information
sp-yduck committed Jul 1, 2023
1 parent 808466d commit 7ea8ca5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
12 changes: 4 additions & 8 deletions config/samples/bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ kind: KubeadmConfig
metadata:
name: proxmoxmachine-sample
spec:
initConfiguration:
nodeRegistration:
kubeletExtraArgs:
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
clusterConfiguration:
controllerManager:
extraArgs:
enable-hostpath-provisioner: "true"
postKubeadmCommands:
- "curl -L https://dl.k8s.io/release/v1.27.3/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl"
- "chmod +x /usr/local/bin/kubectl"
- "reboot now"
17 changes: 15 additions & 2 deletions config/samples/infrastructure_v1beta1_proxmoxmachine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,18 @@ metadata:
app.kubernetes.io/created-by: cluster-api-provider-proxmox
name: proxmoxmachine-sample
spec:
providerID: ""
failureDomain: ""
image:
url: https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64-disk-kvm.img
cloudInit:
user:
user: ubnt
password: ubnt
hardware:
cpu: 2
memory: 4096
network:
ipConfig:
gateway: 192.168.1.1 # your gateway address
ip: 192.168.1.223/32 # your controplane endpoint
nameServer: 192.168.1.1 # your dns server address

4 changes: 2 additions & 2 deletions config/samples/machine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Machine
metadata:
name: proxmoxmachine-sample
labels:
# cluster.x-k8s.io/control-plane: true
cluster.x-k8s.io/cluster-name: proxmoxcluster-sample
spec:
clusterName: proxmoxcluster-sample
Expand All @@ -15,4 +14,5 @@ spec:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfig
name: proxmoxmachine-sample
name: proxmoxmachine-sample
version: v1.26.5

0 comments on commit 7ea8ca5

Please sign in to comment.