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
|
||||
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
|
||||
description: "Windows Server 2022 Standard VM
|
||||
openshift.io/display-name: Windows Server 2022
|
||||
openshift.io/provider-display-name: Phoenix Systems AG
|
||||
tags: virtualmachine,windows,2022
|
||||
objects:
|
||||
- apiVersion: kubevirt.io/v1
|
||||
kind: VirtualMachine
|
||||
metadata:
|
||||
name: ${VM_NAME}
|
||||
namespace: ${TENANT_NAMESPACE}
|
||||
labels:
|
||||
app: windows-server
|
||||
spec:
|
||||
running: false
|
||||
template:
|
||||
|
@ -25,26 +23,42 @@ objects:
|
|||
spec:
|
||||
domain:
|
||||
cpu:
|
||||
cores: 4
|
||||
cores: 2
|
||||
memory:
|
||||
guest: 4Gi
|
||||
devices:
|
||||
disks:
|
||||
- name: rootdisk
|
||||
disk:
|
||||
bus: virtio
|
||||
memory:
|
||||
guest: 8Gi
|
||||
networks:
|
||||
- name: default
|
||||
pod: {}
|
||||
volumes:
|
||||
- name: rootdisk
|
||||
persistentVolumeClaim:
|
||||
claimName: windows-server-datavolume
|
||||
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:
|
||||
- name: windows_server_2022_small
|
||||
description: Name of the Virtual Machine
|
||||
- name: IMAGE_URL
|
||||
description: URL to your image repository
|
||||
required: true
|
||||
- name: NAMESPACE
|
||||
description: Namespace where to deploy
|
||||
value: https://nginx.demo.pub.ai-2.kvant.cloud.apps.ai-2.kvant.cloud/win2022.qcow2
|
||||
- name: PVC_SIZE
|
||||
description: PVC size (GiB)
|
||||
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