hudctrl: Update for v0.2.0
Version 0.2.0 of the HUD Controller is stateful. It requires writable storage for its configuration file, as it updates the file when display settings and screen URLs are changed. While we're making changes, let's move it to its own namespace.dch-webhooks-secrets
parent
1d199a0e75
commit
8440c2a486
|
@ -1,5 +1,29 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: hudctrl
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: hudctrl
|
||||||
|
namespace: hudctrl
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: hudctrl
|
||||||
|
app.kubernetes.io/name: hudctrl
|
||||||
|
app.kubernetes.io/instance: hudctrl
|
||||||
|
app.kubernetes.io/part-of: hudctrl
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Mi
|
||||||
|
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: hudctrl
|
app.kubernetes.io/component: hudctrl
|
||||||
|
@ -7,7 +31,9 @@ metadata:
|
||||||
app.kubernetes.io/instance: hudctrl
|
app.kubernetes.io/instance: hudctrl
|
||||||
app.kubernetes.io/part-of: hudctrl
|
app.kubernetes.io/part-of: hudctrl
|
||||||
name: hudctrl
|
name: hudctrl
|
||||||
|
namespace: hudctrl
|
||||||
spec:
|
spec:
|
||||||
|
serviceName: hudctrl
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/component: hudctrl
|
app.kubernetes.io/component: hudctrl
|
||||||
|
@ -21,21 +47,21 @@ spec:
|
||||||
app.kubernetes.io/instance: hudctrl
|
app.kubernetes.io/instance: hudctrl
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: registry.pyrocufflink.blue/hudctrl:latest
|
- image: git.pyrocufflink.blue/containerimages/hudctrl:latest
|
||||||
name: hudctrl
|
name: hudctrl
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
env:
|
env:
|
||||||
- name: HUDCTRL_URLS_FILE
|
- name: HUDCTRL_CONFIG_PATH
|
||||||
value: /run/hudctrl/config/urls.json
|
value: /run/hudctrl/config.json
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /run/hudctrl/config
|
- mountPath: /run/hudctrl
|
||||||
name: config-vol
|
name: config-vol
|
||||||
volumes:
|
volumes:
|
||||||
- name: config-vol
|
- name: config-vol
|
||||||
configMap:
|
persistentVolumeClaim:
|
||||||
name: hudctrl-urls
|
claimName: hudctrl
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -47,6 +73,7 @@ metadata:
|
||||||
app.kubernetes.io/instance: hudctrl
|
app.kubernetes.io/instance: hudctrl
|
||||||
app.kubernetes.io/part-of: hudctrl
|
app.kubernetes.io/part-of: hudctrl
|
||||||
name: hudctrl
|
name: hudctrl
|
||||||
|
namespace: hudctrl
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
|
@ -64,6 +91,7 @@ apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: hudctrl
|
name: hudctrl
|
||||||
|
namespace: hudctrl
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||||
spec:
|
spec:
|
||||||
|
|
Loading…
Reference in New Issue