Skip to content

Commit

Permalink
cluster-class: polish all templates
Browse files Browse the repository at this point in the history
  • Loading branch information
65278 committed Apr 2, 2024
1 parent 1a922be commit 9c8bcd3
Show file tree
Hide file tree
Showing 9 changed files with 9,200 additions and 75 deletions.
50 changes: 25 additions & 25 deletions examples/cluster-calico.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ spec:
value:
machineSpec:
controlPlane:
network:
default:
bridge: vmbr0
network:
default:
bridge: vmbr0
# additionalDevices:
# - name: net1
# model: virtio
Expand Down Expand Up @@ -90,28 +90,28 @@ spec:
network:
default:
bridge: vmbr0
# additionalDevices:
# - name: net1
# model: virtio
# ipv4PoolRef:
# name: shared-inclusteripv4pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# ipv6PoolRef:
# name: shared-inclusteripv6pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# bridge: vmbr1
# vrfs:
# - name: vrf-ext
# interfaces:
# - net1
# table: 500
# routingPolicy:
# - from: 192.0.2.0/24
# numSockets: 1
# numCores: 2
# memoryMiB: 2048
# additionalDevices:
# - name: net1
# model: virtio
# ipv4PoolRef:
# name: shared-inclusteripv4pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# ipv6PoolRef:
# name: shared-inclusteripv6pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# bridge: vmbr1
# vrfs:
# - name: vrf-ext
# interfaces:
# - net1
# table: 500
# routingPolicy:
# - from: 192.0.2.0/24
# numSockets: 1
# numCores: 2
# memoryMiB: 2048
sourceNode: pve1
templateID: 100
sshAuthorizedKeys:
Expand Down
50 changes: 25 additions & 25 deletions examples/cluster-cilium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ spec:
value:
machineSpec:
controlPlane:
network:
default:
bridge: vmbr0
network:
default:
bridge: vmbr0
# additionalDevices:
# - name: net1
# model: virtio
Expand Down Expand Up @@ -90,28 +90,28 @@ spec:
network:
default:
bridge: vmbr0
# additionalDevices:
# - name: net1
# model: virtio
# ipv4PoolRef:
# name: shared-inclusteripv4pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# ipv6PoolRef:
# name: shared-inclusteripv6pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# bridge: vmbr1
# vrfs:
# - name: vrf-ext
# interfaces:
# - net1
# table: 500
# routingPolicy:
# - from: 192.0.2.0/24
# numSockets: 1
# numCores: 2
# memoryMiB: 2048
# additionalDevices:
# - name: net1
# model: virtio
# ipv4PoolRef:
# name: shared-inclusteripv4pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# ipv6PoolRef:
# name: shared-inclusteripv6pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# bridge: vmbr1
# vrfs:
# - name: vrf-ext
# interfaces:
# - net1
# table: 500
# routingPolicy:
# - from: 192.0.2.0/24
# numSockets: 1
# numCores: 2
# memoryMiB: 2048
sourceNode: pve1
templateID: 100
sshAuthorizedKeys:
Expand Down
50 changes: 25 additions & 25 deletions examples/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ spec:
value:
machineSpec:
controlPlane:
network:
default:
bridge: vmbr0
network:
default:
bridge: vmbr0
# additionalDevices:
# - name: net1
# model: virtio
Expand Down Expand Up @@ -90,28 +90,28 @@ spec:
network:
default:
bridge: vmbr0
# additionalDevices:
# - name: net1
# model: virtio
# ipv4PoolRef:
# name: shared-inclusteripv4pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# ipv6PoolRef:
# name: shared-inclusteripv6pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# bridge: vmbr1
# vrfs:
# - name: vrf-ext
# interfaces:
# - net1
# table: 500
# routingPolicy:
# - from: 192.0.2.0/24
# numSockets: 1
# numCores: 2
# memoryMiB: 2048
# additionalDevices:
# - name: net1
# model: virtio
# ipv4PoolRef:
# name: shared-inclusteripv4pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# ipv6PoolRef:
# name: shared-inclusteripv6pool
# apiGroup: ipam.cluster.x-k8s.io
# kind: GlobalInClusterIPPool
# bridge: vmbr1
# vrfs:
# - name: vrf-ext
# interfaces:
# - net1
# table: 500
# routingPolicy:
# - from: 192.0.2.0/24
# numSockets: 1
# numCores: 2
# memoryMiB: 2048
sourceNode: pve1
templateID: 100
sshAuthorizedKeys:
Expand Down
11 changes: 11 additions & 0 deletions templates/cluster-class-calico.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: ProxmoxMachineTemplate
name: proxmox-clusterclass-v0.1.0-workertemplate
metadata:
labels:
node-role.kubernetes.io/node: ""
machineHealthCheck:
maxUnhealthy: 33%
nodeStartupTimeout: 15m
Expand All @@ -69,6 +72,10 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: ProxmoxMachineTemplate
name: proxmox-clusterclass-v0.1.0-loadbalancer-template
metadata:
labels:
node-role.kubernetes.io/load-balancer: ""
node-role.kubernetes.io/node: ""
machineHealthCheck:
maxUnhealthy: 33%
nodeStartupTimeout: 15m
Expand Down Expand Up @@ -961,6 +968,10 @@ spec:
nodeRegistration:
kubeletExtraArgs:
provider-id: "proxmox://'{{ ds.meta_data.instance_id }}'"
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/load-balancer
value: ""
---
apiVersion: addons.cluster.x-k8s.io/v1beta1
kind: ClusterResourceSet
Expand Down
11 changes: 11 additions & 0 deletions templates/cluster-class-cilium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: ProxmoxMachineTemplate
name: proxmox-clusterclass-v0.1.0-workertemplate
metadata:
labels:
node-role.kubernetes.io/node: ""
machineHealthCheck:
maxUnhealthy: 33%
nodeStartupTimeout: 15m
Expand All @@ -69,6 +72,10 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: ProxmoxMachineTemplate
name: proxmox-clusterclass-v0.1.0-loadbalancer-template
metadata:
labels:
node-role.kubernetes.io/load-balancer: ""
node-role.kubernetes.io/node: ""
machineHealthCheck:
maxUnhealthy: 33%
nodeStartupTimeout: 15m
Expand Down Expand Up @@ -961,6 +968,10 @@ spec:
nodeRegistration:
kubeletExtraArgs:
provider-id: "proxmox://'{{ ds.meta_data.instance_id }}'"
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/load-balancer
value: ""
---
apiVersion: addons.cluster.x-k8s.io/v1beta1
kind: ClusterResourceSet
Expand Down
7 changes: 7 additions & 0 deletions templates/cluster-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: ProxmoxMachineTemplate
name: proxmox-clusterclass-v0.1.0-workertemplate
metadata:
labels:
node-role.kubernetes.io/node: ""
namingStrategy:
template: "{{ .cluster.name }}-worker-{{ .random }}"
- class: proxmox-loadbalancer
Expand All @@ -49,6 +52,10 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: ProxmoxMachineTemplate
name: proxmox-clusterclass-v0.1.0-loadbalancer-template
metadata:
labels:
node-role.kubernetes.io/load-balancer: ""
node-role.kubernetes.io/node: ""
namingStrategy:
template: "{{ .cluster.name }}-loadbalancer-{{ .random }}"
variables:
Expand Down
Loading

0 comments on commit 9c8bcd3

Please sign in to comment.