Compare commits

...

9 Commits

Author SHA1 Message Date
Martin Cholewa
1b5ed30d10 fix name 2025-10-09 17:45:54 +02:00
Martin Cholewa
e3b65dda61 fix name 2025-10-09 17:42:21 +02:00
Martin Cholewa
4797d66e0d 3rd node 2025-10-09 17:41:01 +02:00
Martin Cholewa
e3df74ab34 fix ssh 2025-10-09 10:25:51 +02:00
Martin Cholewa
95e439f406 242 second node 2025-10-09 09:35:38 +02:00
Martin Cholewa
f7855b0483 fix id and ip 2025-10-09 09:28:12 +02:00
Martin Cholewa
e72066e9a7 fixing name 2025-10-09 09:23:44 +02:00
Martin Cholewa
906cb4628c adding second k8s node 2025-10-09 09:22:27 +02:00
Martin Cholewa
51079bc226 adding documentation 2025-10-09 09:16:27 +02:00
5 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
name: Create VM at proxmox
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploying VM to Proxmox
uses: appleboy/ssh-action@v1.2.0
with:
host: 192.168.11.102
username: root
password: ${{ secrets.PASSWORD }}
port: 22
script: |
pveversion
qm stop 242
qm destroy 242

View File

@@ -0,0 +1,33 @@
name: DEPLOY VM at proxmox
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploying VM to Proxmox
uses: appleboy/ssh-action@v1.2.0
with:
host: 192.168.11.102
username: root
password: ${{ secrets.PASSWORD }}
port: 22
script: |
pveversion
qm create 242 --name k8s02DEV --memory 12288 --net0 virtio,bridge=vmbr0 --cores 4 --sockets 2 --ostype l26
qm set 242 --bios seabios
qm importdisk 242 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img iSCSIsynologyLVM
qm set 242 --virtio0 iSCSIsynologyLVM:vm-242-disk-0
qm set 242 --ide2 iSCSIsynologyLVM:cloudinit
qm set 242 --boot order=virtio0
qm set 242 --ipconfig0 ip=192.168.11.242/24,gw=192.168.11.1
qm set 242 --ciuser chs --cipassword genius
qm set 242 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZn0A7BiDckpYHS8qgphNHc7hpx4/Ml1iQ4KI1FTtpa Ansible key")
qm set 242 --agent enabled=1
qm resize 242 virtio0 +30G
qm start 242

View File

@@ -0,0 +1,22 @@
name: Create VM at proxmox
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploying VM to Proxmox
uses: appleboy/ssh-action@v1.2.0
with:
host: 192.168.11.102
username: root
password: ${{ secrets.PASSWORD }}
port: 22
script: |
pveversion
qm stop 243
qm destroy 243

View File

@@ -0,0 +1,33 @@
name: DEPLOY VM at proxmox
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploying VM to Proxmox
uses: appleboy/ssh-action@v1.2.0
with:
host: 192.168.11.102
username: root
password: ${{ secrets.PASSWORD }}
port: 22
script: |
pveversion
qm create 243 --name k8s03DEV --memory 12288 --net0 virtio,bridge=vmbr0 --cores 4 --sockets 2 --ostype l26
qm set 243 --bios seabios
qm importdisk 243 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img iSCSIsynologyLVM
qm set 243 --virtio0 iSCSIsynologyLVM:vm-243-disk-0
qm set 243 --ide2 iSCSIsynologyLVM:cloudinit
qm set 243 --boot order=virtio0
qm set 243 --ipconfig0 ip=192.168.11.243/24,gw=192.168.11.1
qm set 243 --ciuser chs --cipassword genius
qm set 243 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZn0A7BiDckpYHS8qgphNHc7hpx4/Ml1iQ4KI1FTtpa Ansible key")
qm set 243 --agent enabled=1
qm resize 243 virtio0 +30G
qm start 243

View File

@@ -1,4 +1,5 @@
## Autmatic Instalation check 140 static ip:
First shot of deplyment via bash script
```
qm create 140 --name cloudINIT140 --memory 2048 --net0 virtio,bridge=vmbr0 --cores 2 --sockets 1 --ostype l26
qm set 140 --bios seabios
@@ -11,4 +12,21 @@ qm set 140 --ciuser chs --cipassword genius
qm set 140 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAE39D/Dep3EHMWXB6wiMTL0My1SlMZVk0Y80jEv7LOb xchose@freya.local")
qm start 140
qm resize 140 virtio0 +30G
```
## Second shot install to iSCSI synology disk:
First shot of deplyment via bash script
```
qm create 244 --name k8s01DEV --memory 12288 --net0 virtio,bridge=vmbr0 --cores 4 --sockets 2 --ostype l26
qm set 244 --bios seabios
qm importdisk 244 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img iSCSIsynologyLVM
qm set 244 --virtio0 iSCSIsynologyLVM:vm-244-disk-0
qm set 244 --ide2 iSCSIsynologyLVM:cloudinit
qm set 244 --boot order=virtio0
qm set 244 --ipconfig0 ip=192.168.11.244/24,gw=192.168.11.1
qm set 244 --ciuser chs --cipassword genius
qm set 244 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZn0A7BiDckpYHS8qgphNHc7hpx4/Ml1iQ4KI1FTtpa Ansible key")
qm set 244 --agent enabled=1
qm resize 244 virtio0 +30G
qm start 244
```