fix and add remove
This commit is contained in:
		
							
								
								
									
										22
									
								
								.gitea/workflows/k8s01DEV244_DELETE.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.gitea/workflows/k8s01DEV244_DELETE.yaml
									
									
									
									
									
										Normal 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 244
 | 
			
		||||
            qm destroy 244
 | 
			
		||||
@@ -18,7 +18,7 @@ jobs:
 | 
			
		||||
          port: 22
 | 
			
		||||
          script: |
 | 
			
		||||
            pveversion
 | 
			
		||||
            qm create 244 --name k8sDEV --memory 12288 --net0 virtio,bridge=vmbr0 --cores 4 --sockets 2 --ostype l26
 | 
			
		||||
            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:244/vm-244-disk-0.raw
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user