generated from phoenix-oss/tenant-tpl
50 lines
No EOL
1.4 KiB
YAML
50 lines
No EOL
1.4 KiB
YAML
apiVersion: template.openshift.io/v1
|
|
kind: Template
|
|
metadata:
|
|
name: windows-server-2022-small
|
|
namespace: ${TENANT_NAMESPACE}
|
|
annotations:
|
|
openshift.io/display-name: "Windows Server 2022 VM"
|
|
openshift.io/documentation-url: "https://docs.microsoft.com/en-us/windows-server/"
|
|
description: "Template for deploying a Windows Server 2022 Virtual Machine on OpenShift with KubeVirt."
|
|
tags: virtualmachine,windows,server,2022
|
|
objects:
|
|
- apiVersion: kubevirt.io/v1
|
|
kind: VirtualMachine
|
|
metadata:
|
|
name: ${VM_NAME}
|
|
namespace: ${TENANT_NAMESPACE}
|
|
labels:
|
|
app: windows-server
|
|
spec:
|
|
running: false
|
|
template:
|
|
metadata:
|
|
labels:
|
|
kubevirt.io/domain: ${VM_NAME}
|
|
spec:
|
|
domain:
|
|
cpu:
|
|
cores: 4
|
|
devices:
|
|
disks:
|
|
- name: rootdisk
|
|
disk:
|
|
bus: virtio
|
|
memory:
|
|
guest: 8Gi
|
|
networks:
|
|
- name: default
|
|
pod: {}
|
|
volumes:
|
|
- name: rootdisk
|
|
persistentVolumeClaim:
|
|
claimName: windows-server-datavolume
|
|
parameters:
|
|
- name: windows_server_2022_small
|
|
description: Name of the Virtual Machine
|
|
required: true
|
|
- name: NAMESPACE
|
|
description: Namespace where to deploy
|
|
required: true
|
|
value: ${TENANT_NAMESPACE} |