Skip to content

Commit 4272d62

Browse files
committed
update sample manifests
1 parent c6b0a12 commit 4272d62

File tree

3 files changed

+37
-14
lines changed

3 files changed

+37
-14
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ Dockerfile.cross
2626
*~
2727

2828

29-
*_test.go
29+
*_test.go
30+
31+
#
32+
config/samples/secret.yaml

config/samples/controlplane.yaml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@ metadata:
55
spec:
66
kubeadmConfigSpec:
77
clusterConfiguration:
8-
controllerManager:
9-
extraArgs:
10-
enable-hostpath-provisioner: "true"
8+
etcd:
9+
local:
10+
dataDir: /var/lib/etcd
11+
networking:
12+
dnsDomain: cluster.local
13+
serviceSubnet: 10.96.0.0/12
14+
podSubnet: 10.98.0.0/16
1115
initConfiguration:
16+
localAPIEndpoints:
17+
advertiseAddress: 192.168.1.222 # your controlplane endpoint
18+
bindPort: 6443
1219
nodeRegistration:
13-
kubeletExtraArgs:
14-
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
15-
postKubeadmCommands: []
20+
criSocket: unix:///var/run/containerd/containerd.sock
21+
postKubeadmCommands:
22+
- "curl -LO https://dl.k8s.io/release/v1.27.3/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl"
23+
- "chmod +x /usr/lcoal/bin/kubectl"
1624
preKubeadmCommands: []
1725
machineTemplate:
1826
infrastructureRef:
@@ -43,9 +51,12 @@ spec:
4351
user:
4452
user: ubnt
4553
password: ubnt
54+
hardware:
55+
cpu: 4
56+
memory: 8192
4657
network:
4758
ipConfig:
48-
gateway: 192.168.1.1
49-
ip: 192.168.1.222/32
50-
nameServer: 192.168.1.1
59+
gateway: 192.168.1.1 # your gateway address
60+
ip: 192.168.1.222/32 # your controplane endpoint
61+
nameServer: 192.168.1.1 # your dns server address
5162

config/samples/infrastructure_v1beta1_proxmoxcluster.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,18 @@ metadata:
1010
name: proxmoxcluster-sample
1111
spec:
1212
controlPlaneEndpoint:
13-
host: ""
14-
port: 0
15-
credentialsRef:
16-
name: proxmoxcluster-sample
13+
host: 192.168.1.222 # your controlplane endpoint
14+
port: 6443
15+
serverRef:
16+
endpoint: 192.168.1.157:8006 # your proxmox api endpoint
17+
credentialsRef:
18+
name: proxmoxcluster-sample
19+
namespace: default
20+
nodeRefs:
21+
- name: mynode
22+
credentialsRef:
23+
name: proxmoxcluster-sample
24+
namespace: default
1725
storage:
1826
name: proxmoxcluster-sample
27+
path: ""

0 commit comments

Comments
 (0)