diff --git a/ubuntu-vm-standard/datadisk.yaml b/ubuntu-vm-standard/datadisk.yaml new file mode 100644 index 0000000..df02419 --- /dev/null +++ b/ubuntu-vm-standard/datadisk.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: vm-datadisk +spec: + storageClassName: ibm-spectrum-scale-fileset + volumeMode: Block + accessModes: + - ReadWriteMany + resources: + requests: + storage: 400Gi diff --git a/ubuntu-vm-standard/lb.yaml b/ubuntu-vm-standard/lb.yaml new file mode 100644 index 0000000..f2b54c2 --- /dev/null +++ b/ubuntu-vm-standard/lb.yaml @@ -0,0 +1,29 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: windows-lb + namespace: ${TENANT_NAMESPACE} + labels: + app.kubernetes.io/component: windows-vm-standard +spec: + type: LoadBalancer + ports: + - port: 8080 + name: http + targetPort: 8080 + protocol: TCP + - port: 443 + name: https + targetPort: 443 + protocol: TCP + - port: 65022 + name: ssh + targetPort: 22 + protocol: TCP + - port: 3389 + name: rdp + targetPort: 3389 + protocol: TCP + selector: + kubevirt.io/domain: windows-vm-standard diff --git a/ubuntu-vm-standard/server.yaml b/ubuntu-vm-standard/server.yaml new file mode 100644 index 0000000..ad6de61 --- /dev/null +++ b/ubuntu-vm-standard/server.yaml @@ -0,0 +1,71 @@ +apiVersion: kubevirt.io/v1 +kind: VirtualMachine +metadata: + name: windows-vm-standard + namespace: ${TENANT_NAMESPACE} +spec: + dataVolumeTemplates: + - metadata: + name: windows-rootdisk + spec: + source: + http: + url: http://nginx.demo.svc.cluster.local:8080/windows-server-2022-uefi-ns.qcow2 + storage: + resources: + requests: + storage: 30Gi + runStrategy: Always + template: + metadata: + labels: + kubevirt.io/domain: windows-vm-standard + spec: + domain: + cpu: + cores: 4 + memory: + guest: 8Gi + devices: + rng: {} + networkInterfaceMultiqueue: true + interfaces: + - name: default + masquerade: {} + ports: + - port: 8080 + - port: 443 + - port: 22 + - port: 3389 + disks: + - disk: + bus: scsi + name: rootdisk + - disk: + bus: scsi + name: datadisk + - disk: + bus: scsi + name: cloudinitdisk + resources: + requests: + memory: 8Gi + cpu: 4 + limits: + memory: 8Gi + cpu: 4 + networks: + - name: default + pod: {} + terminationGracePeriodSeconds: 180 + volumes: + - name: rootdisk + dataVolume: + name: windows-rootdisk + - name: datadisk + persistentVolumeClaim: + claimName: windows-datadisk + #- name: cloudinitdisk + # cloudInitNoCloud: + # secretRef: + # name: windows-cloud-init