-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphoton.yaml
38 lines (38 loc) · 1.03 KB
/
photon.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#example deployment and post customsiation for Photon VM
apiVersion: vmoperator.vmware.com/v1alpha1
kind: VirtualMachine
metadata:
name: photon-vm
namespace: default
annotations:
vmoperator.vmware.com/image-supported-check: disable
spec:
className: guaranteed-small
imageName: packages.vmware.com/photon/4.0/GA/ova/photon-hw11-4.0-1526e30ba0.ova
powerState: poweredOn
networkInterfaces:
- networkName: "VM Network"
ethernetCardType: "vmxnet3"
vmMetadata:
configMapName: user-data-photon
transport: CloudInit
---
apiVersion: v1
kind: ConfigMap
metadata:
name: user-data-photon
namespace: default
data:
user-data: |
#cloud-config
ssh_pwauth: true
users:
- name: root
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: false
passwd: '$6$rounds=4096$g4hhnNzlgGol6ghX$E.Qu.vzMA.qzufAhwI84THkFSTjGCTognWAiSt8uioMKjKDUF1wPtIAiKaSyIaT/JuunlWk8pDetIgYLT81Nr0'
shell: /bin/bash
write_files:
- content: |
VECO VM service says Hello World
path: /helloworld