Skip to content

Commit ff7112e

Browse files
committed
Improve deployment docs, prep for release v0.9.0
* Update deployment docs to target Fedora CoreOS and Flatcar Linux * Remove redundant systemd units
1 parent 04f1c32 commit ff7112e

File tree

16 files changed

+163
-195
lines changed

16 files changed

+163
-195
lines changed

CHANGES.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ Notable changes between releases.
44

55
## Latest
66

7+
## v0.9.0
8+
9+
* Refresh docs and examples for Fedora CoreOS and Flatcar Linux ([#815](https://github.com/poseidon/matchbox/pull/815), [#816](https://github.com/poseidon/matchbox/pull/816))
10+
* Update Kubernetes manifest examples ([#791](https://github.com/poseidon/matchbox/pull/791), [#817](https://github.com/poseidon/matchbox/pull/817))
711
* Update Matchbox container image publishing ([#795](https://github.com/poseidon/matchbox/pull/795))
812
* Publish Matchbox images from internal infra to Quay (`quay.io/poseidon/matchbox`)
913
* Update Go version from v1.13.4 to v1.14.9
10-
* Update base image from `alpine:3.10` to `alpine:3.12` ([#784](https://github.com/poseidon/matchbox/pull/784))
11-
* Refresh docs and examples for Fedora CoreOS and Flatcar Linux ([#815](https://github.com/poseidon/matchbox/pull/815), [#816](https://github.com/poseidon/matchbox/pull/816))
12-
* Update Kubernetes manifest examples ([#791](https://github.com/poseidon/matchbox/pull/791))
14+
* Update base image from `alpine:3.10` to `alpine:3.12` ([#784](https://github.com/poseidon/matchbox/pull/784))
1315
* Include `contrib/k8s` in release tarballs ([#788](https://github.com/poseidon/matchbox/pull/788))
16+
* Remove outdated systemd units ([#817](https://github.com/poseidon/matchbox/pull/817))
1417
* Remove RPM spec file (Copr publishing stopped in v0.6)
1518

1619
## v0.8.3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
Matchbox can be installed from a binary or a container image.
2020

21-
* Install Matchbox on [Kubernetes](docs/deployment.md#kubernetes), on a [Linux](docs/deployment.md) host, or as a [container](docs/deployment.md#docker)
21+
* Install Matchbox as a [binary](docs/deployment.md#matchbox-binary), as a [container image](docs/deployment.md#container-image), or on [Kubernetes](docs/deployment.md#kubernetes)
2222
* Setup a PXE-enabled [network](docs/network-setup.md)
2323

2424
## Tutorials

contrib/k8s/matchbox-deployment.yaml renamed to contrib/k8s/deployment.yaml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@ spec:
88
rollingUpdate:
99
maxUnavailable: 1
1010
selector:
11-
matchLabels:
12-
name: matchbox
11+
matchLabels:
12+
name: matchbox
1313
template:
1414
metadata:
1515
labels:
1616
name: matchbox
17-
phase: prod
1817
spec:
18+
securityContext:
19+
seccompProfile:
20+
type: RuntimeDefault
1921
containers:
2022
- name: matchbox
21-
image: quay.io/poseidon/matchbox:v0.8.3
23+
image: quay.io/poseidon/matchbox:v0.9.0
2224
env:
2325
- name: MATCHBOX_ADDRESS
2426
value: "0.0.0.0:8080"
@@ -31,20 +33,25 @@ spec:
3133
containerPort: 8080
3234
- name: https
3335
containerPort: 8081
36+
livenessProbe:
37+
initialDelaySeconds: 5
38+
httpGet:
39+
path: /
40+
port: 8080
3441
resources:
3542
requests:
36-
cpu: "50m"
37-
memory: "50Mi"
43+
cpu: 30m
44+
memory: 20Mi
45+
limits:
46+
cpu: 50m
47+
memory: 50Mi
3848
volumeMounts:
3949
- name: config
4050
mountPath: /etc/matchbox
4151
- name: data
4252
mountPath: /var/lib/matchbox
4353
- name: assets
4454
mountPath: /var/lib/matchbox/assets
45-
dnsPolicy: ClusterFirst
46-
restartPolicy: Always
47-
terminationGracePeriodSeconds: 30
4855
volumes:
4956
- name: config
5057
secret:

contrib/k8s/matchbox-ingress.yaml renamed to contrib/k8s/ingress.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@ apiVersion: networking.k8s.io/v1beta1
22
kind: Ingress
33
metadata:
44
name: matchbox
5+
annotations:
6+
nginx.ingress.kubernetes.io/ssl-redirect: "false"
57
spec:
8+
ingressClassName: public
9+
# tls ... optional
610
rules:
711
- host: matchbox.example.com
812
http:
913
paths:
1014
- path: /
15+
pathType: Prefix
1116
backend:
12-
serviceName: matchbox
13-
servicePort: 8080
17+
service:
18+
name: matchbox
19+
port:
20+
number: 8080
1421
---
1522
apiVersion: networking.k8s.io/v1beta1
1623
kind: Ingress
@@ -19,6 +26,7 @@ metadata:
1926
annotations:
2027
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
2128
spec:
29+
ingressClassName: public
2230
tls:
2331
- hosts:
2432
- matchbox-rpc.example.com
@@ -27,6 +35,9 @@ spec:
2735
http:
2836
paths:
2937
- path: /
38+
pathType: Prefix
3039
backend:
31-
serviceName: matchbox
32-
servicePort: 8081
40+
service:
41+
name: matchbox
42+
port:
43+
number: 8081

contrib/k8s/matchbox-service.yaml renamed to contrib/k8s/service.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ spec:
66
type: ClusterIP
77
selector:
88
name: matchbox
9-
phase: prod
109
ports:
1110
- name: http
1211
protocol: TCP

contrib/systemd/matchbox-local.service

Lines changed: 0 additions & 16 deletions
This file was deleted.

contrib/systemd/matchbox-on-coreos.service

Lines changed: 0 additions & 22 deletions
This file was deleted.

contrib/systemd/matchbox.service

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[Unit]
2-
Description=CoreOS matchbox Server
3-
Documentation=https://github.com/coreos/matchbox
2+
Description=Matchbox Server
3+
Documentation=https://github.com/poseidon/matchbox
44

55
[Service]
66
User=matchbox
77
Group=matchbox
88
Environment="MATCHBOX_ADDRESS=0.0.0.0:8080"
9-
ExecStart=/usr/bin/matchbox
9+
ExecStart=/usr/local/bin/matchbox
1010

1111
# systemd.exec
1212
ProtectHome=yes
1313
ProtectSystem=full
1414

1515
[Install]
16-
WantedBy=multi-user.target
16+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)