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
|
ConfigMap mounts with the same name and turning them into an ISO
|
||||||
presented to the guest.
|
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
|
* `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
|
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
|
ConfigMap mounts with the same name and turning them into an ISO
|
||||||
presented to the guest.
|
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
|
* `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
|
image. It can also be a full path to a local file baked into the
|
||||||
|
|
|
@ -14,8 +14,8 @@ kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: configmap-generic-startvm
|
name: configmap-generic-startvm
|
||||||
data:
|
data:
|
||||||
startvm: |
|
startvm.sh: |
|
||||||
{{ tuple "bin/_startvm.txt" . | include "template" | indent 4 }}
|
{{ tuple "bin/_startvm.sh.tpl" . | include "template" | indent 4 }}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
command:
|
command:
|
||||||
- /usr/local/bin/startvm
|
- /startvm.sh
|
||||||
{{- if $vm.netconfig.ports }}
|
{{- if $vm.netconfig.ports }}
|
||||||
ports:
|
ports:
|
||||||
{{- range $for, $port := $vm.netconfig.ports }}
|
{{- range $for, $port := $vm.netconfig.ports }}
|
||||||
|
@ -55,8 +55,8 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: volume-startvm
|
- name: volume-startvm
|
||||||
mountPath: /usr/local/bin/startvm
|
mountPath: /startvm.sh
|
||||||
subPath: startvm
|
subPath: startvm.sh
|
||||||
- name: image
|
- name: image
|
||||||
mountPath: /image
|
mountPath: /image
|
||||||
- name: dev
|
- name: dev
|
||||||
|
@ -73,7 +73,7 @@ spec:
|
||||||
- name: volume-startvm
|
- name: volume-startvm
|
||||||
configMap:
|
configMap:
|
||||||
name: configmap-generic-startvm
|
name: configmap-generic-startvm
|
||||||
defaultMode: 0755
|
defaultMode: 0555
|
||||||
- name: image
|
- name: image
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ $name }}
|
claimName: {{ $name }}
|
||||||
|
|
Loading…
Reference in New Issue