Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kind: ConfigMap
apiVersion: v1
metadata:
name: configmap-lab-centos-vm-01
namespace: lab-ns-31
data:
hostname: lab-centos-vm-01
user-data: |
I2Nsb3VkLWNvbmZpZwp1c2VyczoKICAtIG5hbWU6IGRlbW8KICAgIHNoZWxsOiAvYmluL2Jhc2gK
ICAgIHN1ZG86IEFMTD0oQUxMKSBOT1BBU1NXRDpBTEwKY2hwYXNzd2Q6CiAgICBsaXN0OiB8CiAg
ICAgIGRlbW86Vk13YXJlMSEKICAgIGV4cGlyZTogZmFsc2UKc3NoX3B3YXV0aDogeWVzCnJ1bmNt
ZDoKICAtIHRpbWVkYXRlY3RsIHNldC10aW1lem9uZSBBc2lhL1Rva3lvCgo=
---
kind: VirtualMachine
apiVersion: vmoperator.vmware.com/v1alpha1
metadata:
name: lab-centos-vm-01
namespace: lab-ns-31
labels:
demo: vm-service-01
spec:
imageName: centos-stream-8-vmservice-v1alpha1-1619529007339
className: best-effort-xsmall
powerState: poweredOn
storageClass: vm-storage-policy-wcp
networkInterfaces:
- networkType: nsx-t
vmMetadata:
configMapName: configmap-lab-centos-vm-01
transport: OvfEnv
---
kind: VirtualMachineService
apiVersion: vmoperator.vmware.com/v1alpha1
metadata:
name: svc-lab-centos-vm-01
namespace: lab-ns-31
spec:
type: LoadBalancer
ports:
- name: ssh
port: 22
protocol: TCP
targetPort: 22
selector:
demo: vm-service-01
@gowatana

This comment has been minimized.

Copy link
Owner Author

@gowatana gowatana commented May 9, 2021

下記の投稿むけ。

vSphere with Tanzu の VM Service を試してみる。(vSphere 7.0 U2a)
https://vm.gowatana.jp/entry/2021/05/09/140905

@gowatana

This comment has been minimized.

Copy link
Owner Author

@gowatana gowatana commented May 9, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment