generated from phoenix-oss/tenant-tpl
combines dv and template yaml
This commit is contained in:
parent
f6894ece74
commit
a8f9431e05
3 changed files with 30 additions and 49 deletions
|
@ -1,15 +0,0 @@
|
||||||
apiVersion: cdi.kubevirt.io/v1beta1
|
|
||||||
kind: DataVolume
|
|
||||||
metadata:
|
|
||||||
name: windows-server-datavolume
|
|
||||||
namespace: ${TENANT_NAMESPACE}
|
|
||||||
spec:
|
|
||||||
source:
|
|
||||||
http:
|
|
||||||
url: "https://nginx-demo.apps.ai-2.kvant.cloud/win2022.qcow2"
|
|
||||||
pvc:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 120Gi
|
|
|
@ -4,18 +4,16 @@ metadata:
|
||||||
name: windows-server-2022-small
|
name: windows-server-2022-small
|
||||||
namespace: ${TENANT_NAMESPACE}
|
namespace: ${TENANT_NAMESPACE}
|
||||||
annotations:
|
annotations:
|
||||||
openshift.io/display-name: "Windows Server 2022 VM"
|
description: "Windows Server 2022 Standard VM
|
||||||
openshift.io/documentation-url: "https://docs.microsoft.com/en-us/windows-server/"
|
openshift.io/display-name: Windows Server 2022
|
||||||
description: "Template for deploying a Windows Server 2022 Virtual Machine on OpenShift with KubeVirt."
|
openshift.io/provider-display-name: Phoenix Systems AG
|
||||||
tags: virtualmachine,windows,server,2022
|
tags: virtualmachine,windows,2022
|
||||||
objects:
|
objects:
|
||||||
- apiVersion: kubevirt.io/v1
|
- apiVersion: kubevirt.io/v1
|
||||||
kind: VirtualMachine
|
kind: VirtualMachine
|
||||||
metadata:
|
metadata:
|
||||||
name: ${VM_NAME}
|
name: ${VM_NAME}
|
||||||
namespace: ${TENANT_NAMESPACE}
|
namespace: ${TENANT_NAMESPACE}
|
||||||
labels:
|
|
||||||
app: windows-server
|
|
||||||
spec:
|
spec:
|
||||||
running: false
|
running: false
|
||||||
template:
|
template:
|
||||||
|
@ -25,26 +23,42 @@ objects:
|
||||||
spec:
|
spec:
|
||||||
domain:
|
domain:
|
||||||
cpu:
|
cpu:
|
||||||
cores: 4
|
cores: 2
|
||||||
|
memory:
|
||||||
|
guest: 4Gi
|
||||||
devices:
|
devices:
|
||||||
disks:
|
disks:
|
||||||
- name: rootdisk
|
- name: rootdisk
|
||||||
disk:
|
disk:
|
||||||
bus: virtio
|
bus: virtio
|
||||||
memory:
|
|
||||||
guest: 8Gi
|
|
||||||
networks:
|
networks:
|
||||||
- name: default
|
- name: default
|
||||||
pod: {}
|
pod: {}
|
||||||
volumes:
|
volumes:
|
||||||
- name: rootdisk
|
- name: rootdisk
|
||||||
persistentVolumeClaim:
|
dataVolume:
|
||||||
claimName: windows-server-datavolume
|
name: ${VM_NAME}-datavolume
|
||||||
|
- apiVersion: cdi.kubevirt.io/v1beta1
|
||||||
|
kind: DataVolume
|
||||||
|
metadata:
|
||||||
|
name: ${VM_NAME}-datavolume
|
||||||
|
namespace: ${NAMESPACE}
|
||||||
|
spec:
|
||||||
|
source:
|
||||||
|
http:
|
||||||
|
url: ${IMAGE_URL}
|
||||||
|
pvc:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: ${PVC_SIZE}
|
||||||
parameters:
|
parameters:
|
||||||
- name: windows_server_2022_small
|
- name: IMAGE_URL
|
||||||
description: Name of the Virtual Machine
|
description: URL to your image repository
|
||||||
required: true
|
required: true
|
||||||
- name: NAMESPACE
|
value: https://nginx.demo.pub.ai-2.kvant.cloud.apps.ai-2.kvant.cloud/win2022.qcow2
|
||||||
description: Namespace where to deploy
|
- name: PVC_SIZE
|
||||||
|
description: PVC size (GiB)
|
||||||
required: true
|
required: true
|
||||||
value: ${TENANT_NAMESPACE}
|
value: 120Gi
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: &app dv
|
|
||||||
namespace: ${TENANT_NAMESPACE}
|
|
||||||
spec:
|
|
||||||
commonMetadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: *app
|
|
||||||
path: ./templates/windowsserver/dv
|
|
||||||
prune: true
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
name: tenant-repos
|
|
||||||
wait: false
|
|
||||||
interval: 30m
|
|
||||||
retryInterval: 1m
|
|
||||||
timeout: 5m
|
|
Loading…
Add table
Add a link
Reference in a new issue