mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 02:19:28 +00:00
examples: Add CoreOS alpha single node PXE example
This commit is contained in:
@@ -3,3 +3,4 @@ Godeps/
|
||||
vendor/
|
||||
assets/
|
||||
vagrant/
|
||||
*.aci
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -29,4 +29,3 @@ _testmain.go
|
||||
bin/
|
||||
assets/
|
||||
*.aci
|
||||
trustdb.gpg
|
||||
@@ -7,7 +7,8 @@ These examples show declarative configurations for network booting libvirt VMs i
|
||||
|------------|-------------|----------------|----------------|
|
||||
| etcd | Cluster with 3 etcd nodes, 2 proxies | [reference](https://coreos.com/os/docs/latest/cluster-architectures.html) | beta/899.6.0 |
|
||||
| Kubernetes | Kubernetes cluster with 1 master, 1 worker, 1 dedicated etcd node | [reference](https://github.com/coreos/coreos-kubernetes) | beta/899.6.0 |
|
||||
| etcd on disk | 2-stage Ignition: Install CoreOS, provision etcd cluster | [reference](https://coreos.com/os/docs/latest/installing-to-disk.html) | alpha/962.0.0,935.0.0 |
|
||||
| Disk install w etcd | 2-stage Ignition: Install CoreOS, provision etcd cluster | [reference](https://coreos.com/os/docs/latest/installing-to-disk.html) | alpha/962.0.0,935.0.0 |
|
||||
| alpha-pxe | PXE CoreOS alpha node, uses configured SSH keys | | alpha/962.0.0 |
|
||||
|
||||
## Experimental
|
||||
|
||||
|
||||
7
examples/alpha-pxe.yaml
Normal file
7
examples/alpha-pxe.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
api_version: v1alpha1
|
||||
groups:
|
||||
- name: PXE CoreOS alpha
|
||||
spec: alpha-pxe
|
||||
metadata:
|
||||
ssh_authorized_keys:
|
||||
11
examples/ignition/ssh.yaml
Normal file
11
examples/ignition/ssh.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
ignition_version: 1
|
||||
{{ if .ssh_authorized_keys }}
|
||||
passwd:
|
||||
users:
|
||||
- name: core
|
||||
ssh_authorized_keys:
|
||||
{{ range $element := .ssh_authorized_keys }}
|
||||
- {{$element}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
14
examples/specs/alpha-pxe/spec.json
Normal file
14
examples/specs/alpha-pxe/spec.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"id": "alpha-pxe",
|
||||
"boot": {
|
||||
"kernel": "/assets/coreos/962.0.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/962.0.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"cmdline": {
|
||||
"coreos.config.url": "http://bootcfg.foo:8080/ignition?uuid=${uuid}&mac=${net0/mac:hexhyp}",
|
||||
"coreos.autologin": "",
|
||||
"coreos.first_boot": ""
|
||||
}
|
||||
},
|
||||
"cloud_id": "",
|
||||
"ignition_id": "ssh.yaml"
|
||||
}
|
||||
Reference in New Issue
Block a user