Skip to content

Instantly share code, notes, and snippets.

@varesa
Last active March 26, 2023 19:09
Show Gist options
  • Save varesa/f2d9ea088bd68461639424e13352b4b7 to your computer and use it in GitHub Desktop.
Save varesa/f2d9ea088bd68461639424e13352b4b7 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: helloworld
spec: {}
apiVersion: cluster-virt.acl.fi/v1beta
kind: Network
metadata:
name: main
namespace: helloworld
spec:
dhcp:
cidr: 10.4.131.0/24
dns_server: 10.10.10.10
domain_name: null
lease_time: 3600
router: 10.4.131.1
routers:
- address: 10.4.131.1/24
name: networking/core
apiVersion: cluster-virt.acl.fi/v1beta
kind: Volume
metadata:
name: test-vm1-root
namespace: helloworld
spec:
size: 10G
template: fedora-coreos-37.20230303.3.0-openstack.x86_64
apiVersion: cluster-virt.acl.fi/v1beta2
kind: VirtualMachine
metadata:
name: test-vm1
namespace: helloworld
spec:
cpus: 2
memory: 4G
volumes:
- name: test-vm1-root
networks:
- name: main
userdata: fcos-ssh
apiVersion: v1
kind: ConfigMap
metadata:
name: fcos-ssh
namespace: helloworld
data:
userdata: |
{
"ignition": {
"version": "3.3.0"
},
"passwd": {
"users": [
{
"name": "core",
"sshAuthorizedKeys": [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA05sdc/e7Momfqxt0wcsainDsi8tIlyMvjIugTteoTU esa@desktop"
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment