++kubevirt

This commit is contained in:
Nico Schottelius 2021-12-12 22:56:24 +01:00
parent 4ea62fe3d1
commit 1e83e09fa9
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,13 @@
apiVersion: v1
kind: Secret
metadata:
name: secret-postgres-config-plus
annotations:
secret-generator.v1.mittwald.de/autogenerate: dbconfig.database.args.password
stringData:
dbconfig: |
database:
name: psycopg2
args:
user: synapse_user
---

1
kubevirt/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
virtctl*

37
kubevirt/vm.yaml Normal file
View file

@ -0,0 +1,37 @@
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
name: testvm
spec:
running: false
template:
metadata:
labels:
kubevirt.io/size: small
kubevirt.io/domain: testvm
spec:
domain:
devices:
disks:
- disk:
bus: virtio
name: rootfs
- disk:
bus: virtio
name: cloudinit
interfaces:
- name: default
masquerade: {}
resources:
requests:
memory: 64M
networks:
- name: default
pod: {}
volumes:
- name: rootfs
containerDisk:
image: kubevirt/cirros-registry-disk-demo
- name: cloudinit
cloudInitNoCloud:
userDataBase64: SGkuXG4=