Rename entry point file appropriately
Change-Id: I266cc07a18c68d82a78758784cbd6a9db547fc6b
This commit is contained in:
parent
e9b9182f7f
commit
6d249ac2fa
@ -79,7 +79,7 @@ At a high level, it works like this:
|
||||
ConfigMap mounts with the same name and turning them into an ISO
|
||||
presented to the guest.
|
||||
|
||||
The startvm entry-point supports several environment variables:
|
||||
The startvm.sh entry-point supports several environment variables:
|
||||
|
||||
* `IMG_SOURCE` which is an http or https URL that contains a qcow2
|
||||
image. It can also be a full path to a local file baked into the
|
||||
|
@ -79,7 +79,7 @@ At a high level, it works like this:
|
||||
ConfigMap mounts with the same name and turning them into an ISO
|
||||
presented to the guest.
|
||||
|
||||
The startvm entry-point supports several environment variables:
|
||||
The startvm.sh entry-point supports several environment variables:
|
||||
|
||||
* `IMG_SOURCE` which is an http or https URL that contains a qcow2
|
||||
image. It can also be a full path to a local file baked into the
|
||||
|
@ -14,8 +14,8 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: configmap-generic-startvm
|
||||
data:
|
||||
startvm: |
|
||||
{{ tuple "bin/_startvm.txt" . | include "template" | indent 4 }}
|
||||
startvm.sh: |
|
||||
{{ tuple "bin/_startvm.sh.tpl" . | include "template" | indent 4 }}
|
||||
|
||||
---
|
||||
|
||||
|
@ -41,7 +41,7 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
command:
|
||||
- /usr/local/bin/startvm
|
||||
- /startvm.sh
|
||||
{{- if $vm.netconfig.ports }}
|
||||
ports:
|
||||
{{- range $for, $port := $vm.netconfig.ports }}
|
||||
@ -55,8 +55,8 @@ spec:
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: volume-startvm
|
||||
mountPath: /usr/local/bin/startvm
|
||||
subPath: startvm
|
||||
mountPath: /startvm.sh
|
||||
subPath: startvm.sh
|
||||
- name: image
|
||||
mountPath: /image
|
||||
- name: dev
|
||||
@ -73,7 +73,7 @@ spec:
|
||||
- name: volume-startvm
|
||||
configMap:
|
||||
name: configmap-generic-startvm
|
||||
defaultMode: 0755
|
||||
defaultMode: 0555
|
||||
- name: image
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ $name }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user