mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
examples: Update Container Linux to stable 1576.4.0
* Use Docker 17.09 by default in Kubernetes clusters
This commit is contained in:
@@ -39,8 +39,8 @@ GET http://matchbox.foo/ipxe?label=value
|
||||
|
||||
```
|
||||
#!ipxe
|
||||
kernel /assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz coreos.config.url=http://matchbox.foo:8080/ignition?uuid=${uuid}&mac=${mac:hexhyp} coreos.first_boot=1 coreos.autologin
|
||||
initrd /assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz
|
||||
kernel /assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz coreos.config.url=http://matchbox.foo:8080/ignition?uuid=${uuid}&mac=${mac:hexhyp} coreos.first_boot=1 coreos.autologin
|
||||
initrd /assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz
|
||||
boot
|
||||
```
|
||||
|
||||
@@ -67,9 +67,9 @@ default=0
|
||||
timeout=1
|
||||
menuentry "CoreOS" {
|
||||
echo "Loading kernel"
|
||||
linuxefi "(http;matchbox.foo:8080)/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz" "coreos.autologin" "coreos.config.url=http://matchbox.foo:8080/ignition" "coreos.first_boot"
|
||||
linuxefi "(http;matchbox.foo:8080)/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz" "coreos.autologin" "coreos.config.url=http://matchbox.foo:8080/ignition" "coreos.first_boot"
|
||||
echo "Loading initrd"
|
||||
initrdefi "(http;matchbox.foo:8080)/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"
|
||||
initrdefi "(http;matchbox.foo:8080)/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -231,7 +231,7 @@ If you need to serve static assets (e.g. kernel, initrd), `matchbox` can serve a
|
||||
```
|
||||
matchbox.foo/assets/
|
||||
└── coreos
|
||||
└── 1520.8.0
|
||||
└── 1576.4.0
|
||||
├── coreos_production_pxe.vmlinuz
|
||||
└── coreos_production_pxe_image.cpio.gz
|
||||
└── 1153.0.0
|
||||
|
||||
@@ -30,7 +30,7 @@ The [examples](../examples) statically assign IP addresses to libvirt client VMs
|
||||
Download the CoreOS Container Linux image assets referenced in the target [profile](../examples/profiles).
|
||||
|
||||
```sh
|
||||
$ ./scripts/get-coreos stable 1520.8.0 ./examples/assets
|
||||
$ ./scripts/get-coreos stable 1576.4.0 ./examples/assets
|
||||
```
|
||||
|
||||
Add your SSH public key to each machine group definition [as shown](../examples/README.md#ssh-keys).
|
||||
|
||||
@@ -218,7 +218,7 @@ Certificate chain
|
||||
Download a recent Container Linux [release](https://coreos.com/releases/) with signatures.
|
||||
|
||||
```sh
|
||||
$ ./scripts/get-coreos stable 1520.8.0 . # note the "." 3rd argument
|
||||
$ ./scripts/get-coreos stable 1576.4.0 . # note the "." 3rd argument
|
||||
```
|
||||
|
||||
Move the images to `/var/lib/matchbox/assets`,
|
||||
@@ -230,7 +230,7 @@ $ sudo cp -r coreos /var/lib/matchbox/assets
|
||||
```
|
||||
/var/lib/matchbox/assets/
|
||||
├── coreos
|
||||
│ └── 1520.8.0
|
||||
│ └── 1576.4.0
|
||||
│ ├── CoreOS_Image_Signing_Key.asc
|
||||
│ ├── coreos_production_image.bin.bz2
|
||||
│ ├── coreos_production_image.bin.bz2.sig
|
||||
@@ -243,7 +243,7 @@ $ sudo cp -r coreos /var/lib/matchbox/assets
|
||||
and verify the images are acessible.
|
||||
|
||||
```sh
|
||||
$ curl http://matchbox.example.com:8080/assets/coreos/1520.8.0/
|
||||
$ curl http://matchbox.example.com:8080/assets/coreos/1576.4.0/
|
||||
<pre>...
|
||||
```
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ $ cd matchbox
|
||||
Download CoreOS Container Linux image assets referenced by the `etcd3` [example](../examples) to `examples/assets`.
|
||||
|
||||
```sh
|
||||
$ ./scripts/get-coreos stable 1520.8.0 ./examples/assets
|
||||
$ ./scripts/get-coreos stable 1576.4.0 ./examples/assets
|
||||
```
|
||||
|
||||
For development convenience, add `/etc/hosts` entries for nodes so they may be referenced by name.
|
||||
|
||||
@@ -30,7 +30,7 @@ $ cd matchbox
|
||||
Download CoreOS Container Linux image assets referenced by the `etcd3` [example](../examples) to `examples/assets`.
|
||||
|
||||
```sh
|
||||
$ ./scripts/get-coreos stable 1520.8.0 ./examples/assets
|
||||
$ ./scripts/get-coreos stable 1576.4.0 ./examples/assets
|
||||
```
|
||||
|
||||
## Network
|
||||
|
||||
@@ -64,8 +64,8 @@ Profiles reference an Ignition config, Cloud-Config, and/or generic config by na
|
||||
"ignition_id": "etcd.yaml",
|
||||
"generic_id": "some-service.cfg",
|
||||
"boot": {
|
||||
"kernel": "/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"kernel": "/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"args": [
|
||||
"coreos.config.url=http://matchbox.foo:8080/ignition?uuid=${uuid}&mac=${mac:hexhyp}",
|
||||
"coreos.first_boot=yes",
|
||||
|
||||
@@ -22,13 +22,13 @@ These examples mount raw Matchbox objects into a Matchbox server's `/var/lib/mat
|
||||
|
||||
| Name | Description | CoreOS Container Linux Version | FS | Docs |
|
||||
|------------|-------------|----------------|----|-----------|
|
||||
| simple | CoreOS Container Linux with autologin, using iPXE | stable/1520.8.0 | RAM | [reference](https://coreos.com/os/docs/latest/booting-with-ipxe.html) |
|
||||
| simple-install | CoreOS Container Linux Install, using iPXE | stable/1520.8.0 | RAM | [reference](https://coreos.com/os/docs/latest/booting-with-ipxe.html) |
|
||||
| grub | CoreOS Container Linux via GRUB2 Netboot | stable/1520.8.0 | RAM | NA |
|
||||
| etcd3 | PXE boot a 3-node etcd3 cluster with proxies | stable/1520.8.0 | RAM | None |
|
||||
| etcd3-install | Install a 3-node etcd3 cluster to disk | stable/1520.8.0 | Disk | None |
|
||||
| bootkube | PXE boot a 3-node Kubernetes v1.8.4 cluster | stable/1520.8.0 | Disk | [tutorial](../Documentation/bootkube.md) |
|
||||
| bootkube-install | Install a 3-node Kubernetes v1.8.4 cluster | stable/1520.8.0 | Disk | [tutorial](../Documentation/bootkube.md) |
|
||||
| simple | CoreOS Container Linux with autologin, using iPXE | stable/1576.4.0 | RAM | [reference](https://coreos.com/os/docs/latest/booting-with-ipxe.html) |
|
||||
| simple-install | CoreOS Container Linux Install, using iPXE | stable/1576.4.0 | RAM | [reference](https://coreos.com/os/docs/latest/booting-with-ipxe.html) |
|
||||
| grub | CoreOS Container Linux via GRUB2 Netboot | stable/1576.4.0 | RAM | NA |
|
||||
| etcd3 | PXE boot a 3-node etcd3 cluster with proxies | stable/1576.4.0 | RAM | None |
|
||||
| etcd3-install | Install a 3-node etcd3 cluster to disk | stable/1576.4.0 | Disk | None |
|
||||
| bootkube | PXE boot a 3-node Kubernetes v1.8.4 cluster | stable/1576.4.0 | Disk | [tutorial](../Documentation/bootkube.md) |
|
||||
| bootkube-install | Install a 3-node Kubernetes v1.8.4 cluster | stable/1576.4.0 | Disk | [tutorial](../Documentation/bootkube.md) |
|
||||
|
||||
### Customization
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"profile": "install-reboot",
|
||||
"metadata": {
|
||||
"coreos_channel": "stable",
|
||||
"coreos_version": "1520.8.0",
|
||||
"coreos_version": "1576.4.0",
|
||||
"ignition_endpoint": "http://matchbox.example.com:8080/ignition",
|
||||
"baseurl": "http://matchbox.example.com:8080/assets/coreos"
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"profile": "install-reboot",
|
||||
"metadata": {
|
||||
"coreos_channel": "stable",
|
||||
"coreos_version": "1520.8.0",
|
||||
"coreos_version": "1576.4.0",
|
||||
"ignition_endpoint": "http://matchbox.example.com:8080/ignition",
|
||||
"baseurl": "http://matchbox.example.com:8080/assets/coreos"
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"profile": "simple-install",
|
||||
"metadata": {
|
||||
"coreos_channel": "stable",
|
||||
"coreos_version": "1520.8.0",
|
||||
"coreos_version": "1576.4.0",
|
||||
"ignition_endpoint": "http://matchbox.example.com:8080/ignition",
|
||||
"baseurl": "http://matchbox.example.com:8080/assets/coreos"
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"id": "bootkube-controller",
|
||||
"name": "bootkube Ready Controller",
|
||||
"boot": {
|
||||
"kernel": "/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"kernel": "/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"args": [
|
||||
"initrd=coreos_production_pxe_image.cpio.gz",
|
||||
"root=/dev/sda1",
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"id": "bootkube-worker",
|
||||
"name": "bootkube Ready Worker",
|
||||
"boot": {
|
||||
"kernel": "/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"kernel": "/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"args": [
|
||||
"initrd=coreos_production_pxe_image.cpio.gz",
|
||||
"root=/dev/sda1",
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"id": "etcd3-gateway",
|
||||
"name": "etcd3-gateway",
|
||||
"boot": {
|
||||
"kernel": "/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"kernel": "/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"args": [
|
||||
"initrd=coreos_production_pxe_image.cpio.gz",
|
||||
"coreos.config.url=http://matchbox.example.com:8080/ignition?uuid=${uuid}&mac=${mac:hexhyp}",
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"id": "etcd3",
|
||||
"name": "etcd3",
|
||||
"boot": {
|
||||
"kernel": "/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"kernel": "/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"args": [
|
||||
"initrd=coreos_production_pxe_image.cpio.gz",
|
||||
"coreos.config.url=http://matchbox.example.com:8080/ignition?uuid=${uuid}&mac=${mac:hexhyp}",
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"id": "grub",
|
||||
"name": "CoreOS Container Linux via GRUB2",
|
||||
"boot": {
|
||||
"kernel": "(http;matchbox.example.com:8080)/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["(http;matchbox.example.com:8080)/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"kernel": "(http;matchbox.example.com:8080)/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["(http;matchbox.example.com:8080)/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"args": [
|
||||
"coreos.config.url=http://matchbox.example.com:8080/ignition",
|
||||
"coreos.first_boot=yes",
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"id": "install-reboot",
|
||||
"name": "Install CoreOS Container Linux and Reboot",
|
||||
"boot": {
|
||||
"kernel": "/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"kernel": "/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"args": [
|
||||
"initrd=coreos_production_pxe_image.cpio.gz",
|
||||
"coreos.config.url=http://matchbox.example.com:8080/ignition?uuid=${uuid}&mac=${mac:hexhyp}",
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"id": "simple-install",
|
||||
"name": "Simple CoreOS Container Linux Alpha Install",
|
||||
"boot": {
|
||||
"kernel": "/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"kernel": "/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": ["/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"],
|
||||
"args": [
|
||||
"initrd=coreos_production_pxe_image.cpio.gz",
|
||||
"coreos.config.url=http://matchbox.example.com:8080/ignition?uuid=${uuid}&mac=${mac:hexhyp}",
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
"id": "simple",
|
||||
"name": "Simple CoreOS Container Linux Alpha",
|
||||
"boot": {
|
||||
"kernel": "/assets/coreos/1520.8.0/coreos_production_pxe.vmlinuz",
|
||||
"kernel": "/assets/coreos/1576.4.0/coreos_production_pxe.vmlinuz",
|
||||
"initrd": [
|
||||
"/assets/coreos/1520.8.0/coreos_production_pxe_image.cpio.gz"
|
||||
"/assets/coreos/1576.4.0/coreos_production_pxe_image.cpio.gz"
|
||||
],
|
||||
"args": [
|
||||
"initrd=coreos_production_pxe_image.cpio.gz",
|
||||
|
||||
@@ -35,7 +35,7 @@ matchbox_rpc_endpoint = "matchbox.example.com:8081"
|
||||
ssh_authorized_key = "ADD ME"
|
||||
|
||||
cluster_name = "demo"
|
||||
container_linux_version = "1520.8.0"
|
||||
container_linux_version = "1576.4.0"
|
||||
container_linux_channel = "stable"
|
||||
```
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ matchbox_rpc_endpoint = "matchbox.example.com:8081"
|
||||
# ssh_authorized_key = "ADD ME"
|
||||
|
||||
cluster_name = "example"
|
||||
container_linux_version = "1520.8.0"
|
||||
container_linux_version = "1576.4.0"
|
||||
container_linux_channel = "stable"
|
||||
|
||||
# Machines
|
||||
|
||||
@@ -3,7 +3,7 @@ matchbox_rpc_endpoint = "matchbox.example.com:8081"
|
||||
# ssh_authorized_key = "ADD ME"
|
||||
|
||||
cluster_name = "example"
|
||||
container_linux_version = "1520.8.0"
|
||||
container_linux_version = "1576.4.0"
|
||||
container_linux_channel = "stable"
|
||||
|
||||
# Machines
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
module "profiles" {
|
||||
source = "../modules/profiles"
|
||||
matchbox_http_endpoint = "${var.matchbox_http_endpoint}"
|
||||
container_linux_version = "1520.8.0"
|
||||
container_linux_version = "1576.4.0"
|
||||
container_linux_channel = "stable"
|
||||
install_disk = "${var.install_disk}"
|
||||
container_linux_oem = "${var.container_linux_oem}"
|
||||
|
||||
@@ -15,7 +15,7 @@ ASSETS_DIR="${ASSETS_DIR:-$PWD/examples/assets}"
|
||||
CONFIG_DIR="${CONFIG_DIR:-$PWD/examples/etc/matchbox}"
|
||||
|
||||
COREOS_CHANNEL=stable
|
||||
COREOS_VERSION=1520.8.0
|
||||
COREOS_VERSION=1576.4.0
|
||||
MATCHBOX_ARGS=""
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
|
||||
@@ -9,7 +9,7 @@ set -eou pipefail
|
||||
GPG=${GPG:-/usr/bin/gpg}
|
||||
|
||||
CHANNEL=${1:-"stable"}
|
||||
VERSION=${2:-"1520.8.0"}
|
||||
VERSION=${2:-"1576.4.0"}
|
||||
DEST_DIR=${3:-"$PWD/examples/assets"}
|
||||
OEM_ID=${OEM_ID:-""}
|
||||
DEST=$DEST_DIR/coreos/$VERSION
|
||||
|
||||
@@ -3,7 +3,7 @@ matchbox_rpc_endpoint = "matchbox.example.com:8081"
|
||||
ssh_authorized_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPQFdwVLr+alsWIgYRz9OdqDhnx9jjuFbkdSdpqq4gd9uZApYlivMDD4UgjFazQpezx8DiNhu9ym7i6LgAcdwi+10hE4L9yoJv9uBgbBxOAd65znqLqF91NtV4mlKP5YfJtR7Ehs+pTB+IIC+o5veDbPn+BYgDMJ2x7Osbn1/gFSDken/yoOFbYbRMGMfVEQYjJzC4r/qCKH0bl/xuVNLxf9FkWSTCcQFKGOndwuGITDkshD4r2Kk8gUddXPxoahBv33/2QH0CY5zbKYjhgN6I6WtwO+O1uJwtNeV1AGhYjurdd60qggNwx+W7623uK3nIXvJd3hzDO8u5oa53/tIL fake-test-key"
|
||||
|
||||
cluster_name = "example"
|
||||
container_linux_version = "1520.8.0"
|
||||
container_linux_version = "1576.4.0"
|
||||
container_linux_channel = "stable"
|
||||
|
||||
# Machines
|
||||
|
||||
Reference in New Issue
Block a user