Skip to content

Commit

Permalink
WIP: Managed and debug configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred78290 committed Sep 2, 2024
1 parent a9bdd12 commit 87d9269
Show file tree
Hide file tree
Showing 18 changed files with 650 additions and 2 deletions.
42 changes: 41 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,18 @@
"kind": "build",
"isDefault": true
}
}, {
},
{
"label": "k3s lxd",
"type": "shell",
"command": "${workspaceFolder}/scripts/prepare.sh lxd lxd-dev-k3s",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "k3s vsphere",
"type": "shell",
"command": "${workspaceFolder}/scripts/prepare.sh vsphere vsphere-dev-k3s",
Expand Down Expand Up @@ -133,6 +144,15 @@
}
},
{
"label": "kubeadm lxd",
"type": "shell",
"command": "${workspaceFolder}/scripts/prepare.sh lxd lxd-dev-kubeadm",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}, {
"label": "kubeadm vsphere",
"type": "shell",
"command": "${workspaceFolder}/scripts/prepare.sh vsphere vsphere-dev-kubeadm",
Expand Down Expand Up @@ -192,6 +212,16 @@
"isDefault": true
}
},
{
"label": "rke2 lxd",
"type": "shell",
"command": "${workspaceFolder}/scripts/prepare.sh lxd lxd-dev-rke2",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "rke2 vsphere",
"type": "shell",
Expand Down Expand Up @@ -252,6 +282,16 @@
"isDefault": true
}
},
{
"label": "microk8s lxd",
"type": "shell",
"command": "${workspaceFolder}/scripts/prepare.sh lxd lxd-dev-microk8s",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "microk8s vsphere",
"type": "shell",
Expand Down
28 changes: 28 additions & 0 deletions artifacts/examples/lxd/k3s/managed-addr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-k3s-managed-02"
spec:
nodegroup: lxd-dev-k3s
controlPlane: false
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: false
address: 10.129.134.14
netmask: 255.255.255.0
routes:
- to: default
via: 10.129.134.1
metric: 100
- network: "lxdbr1"
dhcp: true
57 changes: 57 additions & 0 deletions artifacts/examples/lxd/k3s/managed-control-plane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-k3s-master-02"
spec:
nodegroup: lxd-dev-k3s
controlPlane: true
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: false
address: 10.129.134.11
netmask: 255.255.255.0
routes:
- to: default
via: 192.168.2.254
metric: 100
- network: "lxdbr1"
dhcp: true
---
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-k3s-master-03"
spec:
nodegroup: lxd-dev-k3s
controlPlane: true
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: false
address: 10.129.134.12
netmask: 255.255.255.0
routes:
- to: default
via: 10.129.134.1
metric: 100
- network: "lxdbr1"
dhcp: true
22 changes: 22 additions & 0 deletions artifacts/examples/lxd/k3s/managed-dhcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-k3s-managed-01"
spec:
nodegroup: lxd-dev-k3s
controlPlane: false
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: true
- network: "lxdbr1"
dhcp: true
45 changes: 45 additions & 0 deletions artifacts/examples/lxd/k3s/managed-nodes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-k3s-managed-01"
spec:
nodegroup: lxd-dev-k3s
controlPlane: false
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
vmware:
- network: "lxdbr0"
dhcp: true
- network: "lxdbr1"
dhcp: true
---
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-k3s-managed-02"
spec:
nodegroup: lxd-dev-k3s
controlPlane: false
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: true
- network: "lxdbr1"
dhcp: true
28 changes: 28 additions & 0 deletions artifacts/examples/lxd/kubeadm/managed-addr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-kubeadm-managed-02"
spec:
nodegroup: lxd-dev-kubeadm
controlPlane: false
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: false
address: 10.129.134.14
netmask: 255.255.255.0
routes:
- to: default
via: 10.129.134.1
metric: 100
- network: "lxdbr1"
dhcp: true
57 changes: 57 additions & 0 deletions artifacts/examples/lxd/kubeadm/managed-control-plane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-kubeadm-master-02"
spec:
nodegroup: lxd-dev-kubeadm
controlPlane: true
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: false
address: 10.129.134.11
netmask: 255.255.255.0
routes:
- to: default
via: 192.168.2.254
metric: 100
- network: "lxdbr1"
dhcp: true
---
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-kubeadm-master-03"
spec:
nodegroup: lxd-dev-kubeadm
controlPlane: true
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: false
address: 10.129.134.12
netmask: 255.255.255.0
routes:
- to: default
via: 10.129.134.1
metric: 100
- network: "lxdbr1"
dhcp: true
22 changes: 22 additions & 0 deletions artifacts/examples/lxd/kubeadm/managed-dhcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-kubeadm-managed-01"
spec:
nodegroup: lxd-dev-kubeadm
controlPlane: false
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: true
- network: "lxdbr1"
dhcp: true
45 changes: 45 additions & 0 deletions artifacts/examples/lxd/kubeadm/managed-nodes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-kubeadm-managed-01"
spec:
nodegroup: lxd-dev-kubeadm
controlPlane: false
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: true
- network: "lxdbr1"
dhcp: true
---
apiVersion: "nodemanager.aldunelabs.com/v1alpha2"
kind: "ManagedNode"
metadata:
name: "lxd-dev-kubeadm-managed-02"
spec:
nodegroup: lxd-dev-kubeadm
controlPlane: false
allowDeployment: true
instanceType: small
diskSizeInMB: 10240
labels:
- demo-label.acme.com=demo
- sample-label.acme.com=sample
annotations:
- demo-annotation.acme.com=demo
- sample-annotation.acme.com=sample
network:
lxd:
- network: "lxdbr0"
dhcp: true
- network: "lxdbr1"
dhcp: true
Loading

0 comments on commit 87d9269

Please sign in to comment.