-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrei Kvapil <[email protected]>
- Loading branch information
Showing
7 changed files
with
146 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- if .Values.sshKeys }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "virtual-machine.fullname" $ }}-ssh-keys | ||
stringData: | ||
{{- range $k, $v := .Values.sshKeys }} | ||
key{{ $k }}: {{ quote $v }} | ||
{{- end }} | ||
{{- end }} | ||
{{- if .Values.cloudInit }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "virtual-machine.fullname" . }}-cloud-init | ||
stringData: | ||
userdata: | | ||
{{- .Values.cloudInit | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,43 @@ | ||
## @section Common parameters | ||
|
||
## @param external Enable external access from outside the cluster | ||
## @param externalPorts [array] Specify ports to forward from outside the cluster | ||
## @param running Determines if the virtual machine should be running | ||
## @param image The base image for the virtual machine. Allowed values: `ubuntu`, `cirros`, `alpine` and `fedora` | ||
## @param storageClass StorageClass used to store the data | ||
## @param resources.cpu The number of CPU cores allocated to the virtual machine | ||
## @param resources.memory The amount of memory allocated to the virtual machine | ||
## @param resources.disk The size of the disk allocated for the virtual machine | ||
## @param sshPwauth Enable password authentication for SSH. If set to `true`, users can log in using a password | ||
## @param disableRoot Disable root login via SSH. If set to `true`, root login will be disabled | ||
## @param user The username to be used for the virtual machine. Default is `username` | ||
## @param password The default password for the virtual machine | ||
## @param chpasswdExpire Set whether the password should expire | ||
## @param sshKeys List of SSH public keys for authentication. Can be a single key or a list of keys | ||
|
||
external: false | ||
externalPorts: | ||
- 22 | ||
|
||
running: true | ||
image: ubuntu | ||
storageClass: replicated | ||
resources: | ||
cpu: 1 | ||
memory: 1024M | ||
disk: 5Gi | ||
sshPwauth: true | ||
disableRoot: true | ||
user: username | ||
password: hackme | ||
chpasswdExpire: false | ||
sshKeys: | ||
- ssh-rsa ... | ||
- ssh-ed25519 ... | ||
|
||
## @param sshKeys [array] List of SSH public keys for authentication. Can be a single key or a list of keys. | ||
## Example: | ||
## sshKeys: | ||
## - ssh-rsa ... | ||
## - ssh-ed25519 ... | ||
## | ||
sshKeys: [] | ||
|
||
## @param cloudInit cloud-init user data config. See cloud-init documentation for more details. | ||
## - https://cloudinit.readthedocs.io/en/latest/explanation/format.html | ||
## - https://cloudinit.readthedocs.io/en/latest/reference/examples.html | ||
## Example: | ||
## cloudInit: | | ||
## #cloud-config | ||
## password: ubuntu | ||
## chpasswd: { expire: False } | ||
## | ||
cloudInit: | | ||
#cloud-config | ||