Support cloudInit in CRD.
This commit is contained in:
parent
499c1822fd
commit
b255f0e946
4 changed files with 62 additions and 1 deletions
30
dev-example/test-vm-shell.yaml
Normal file
30
dev-example/test-vm-shell.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: test-vm-shell
|
||||
namespace: vmop-dev
|
||||
spec:
|
||||
volumes:
|
||||
- name: test-vm-system-disk
|
||||
persistentVolumeClaim:
|
||||
claimName: system-disk-test-vm-0
|
||||
- name: vmop-image-repository
|
||||
persistentVolumeClaim:
|
||||
claimName: vmop-image-repository
|
||||
containers:
|
||||
- name: test-vm-shell
|
||||
image: archlinux/archlinux
|
||||
args:
|
||||
- bash
|
||||
imagePullPolicy: Always
|
||||
stdin: true
|
||||
stdinOnce: true
|
||||
tty: true
|
||||
volumeDevices:
|
||||
- name: test-vm-system-disk
|
||||
devicePath: /dev/test-vm-system-disk
|
||||
volumeMounts:
|
||||
- name: vmop-image-repository
|
||||
mountPath: /var/local/vmop-image-repository
|
||||
securityContext:
|
||||
privileged: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue