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.
This commit is contained in:
@@ -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
|
||||
kind: Deployment
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/component: hudctrl
|
||||
@@ -7,7 +31,9 @@ metadata:
|
||||
app.kubernetes.io/instance: hudctrl
|
||||
app.kubernetes.io/part-of: hudctrl
|
||||
name: hudctrl
|
||||
namespace: hudctrl
|
||||
spec:
|
||||
serviceName: hudctrl
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/component: hudctrl
|
||||
@@ -21,21 +47,21 @@ spec:
|
||||
app.kubernetes.io/instance: hudctrl
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.pyrocufflink.blue/hudctrl:latest
|
||||
- image: git.pyrocufflink.blue/containerimages/hudctrl:latest
|
||||
name: hudctrl
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
env:
|
||||
- name: HUDCTRL_URLS_FILE
|
||||
value: /run/hudctrl/config/urls.json
|
||||
- name: HUDCTRL_CONFIG_PATH
|
||||
value: /run/hudctrl/config.json
|
||||
volumeMounts:
|
||||
- mountPath: /run/hudctrl/config
|
||||
- mountPath: /run/hudctrl
|
||||
name: config-vol
|
||||
volumes:
|
||||
- name: config-vol
|
||||
configMap:
|
||||
name: hudctrl-urls
|
||||
persistentVolumeClaim:
|
||||
claimName: hudctrl
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
@@ -47,6 +73,7 @@ metadata:
|
||||
app.kubernetes.io/instance: hudctrl
|
||||
app.kubernetes.io/part-of: hudctrl
|
||||
name: hudctrl
|
||||
namespace: hudctrl
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
@@ -64,6 +91,7 @@ apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: hudctrl
|
||||
namespace: hudctrl
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||
spec:
|
||||
|
||||
Reference in New Issue
Block a user