add yamls and mods to accept various images
This commit is contained in:
parent
e9825ad01a
commit
b44639dfe0
6 changed files with 133 additions and 18 deletions
48
kvm-rc-windows.yaml
Normal file
48
kvm-rc-windows.yaml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
apiVersion: v1
|
||||
kind: ReplicationController
|
||||
metadata:
|
||||
name: kvm-test-windows
|
||||
labels:
|
||||
k8s-app: kvm-test-windows
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
k8s-app: kvm-test-windows
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
k8s-app: kvm-test-windows
|
||||
name: kvm-test-windows
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 60
|
||||
containers:
|
||||
- image: docker.barakmich.com/barak/k8s-kvm:latest
|
||||
name: kvm-test-windows
|
||||
imagePullPolicy: Always
|
||||
securityContext:
|
||||
privileged: true
|
||||
ports:
|
||||
- containerPort: 2222
|
||||
name: ssh
|
||||
- containerPort: 5901
|
||||
name: vnc
|
||||
env:
|
||||
- name: VM_NAME
|
||||
value: kvmtest
|
||||
- name: VM_MEMORY
|
||||
value: 2G
|
||||
- name: DISK_IMG
|
||||
value: /data/windows.img
|
||||
- name: CD_IMG
|
||||
value: /data/n-msws16.iso
|
||||
args:
|
||||
- -spice port=5901,password=testme
|
||||
- -drive file=/data/virtio-win.iso,media=cdrom
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
nfs:
|
||||
server: "127.0.0.1"
|
||||
path: "/fs/srv/k8skvm/windows"
|
||||
Loading…
Add table
Add a link
Reference in a new issue