kitchen: Add manifest for kitchen screen server

I decided to run the kitchen screen service in Kubernetes rather than on
the Raspberry Pi in the kitchen.  This will hopefully make it a bit more
reliable and easier to update.  It will also make it easier to rebuild
the OS on the Pi, if it ever becomes necessary, since it really only
needs Firefox (and MQTTDPMS) now.
This commit is contained in:
2022-11-05 16:39:22 -05:00
parent 5208902706
commit de054bd68f
3 changed files with 148 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- kitchen.yaml
configMapGenerator:
- name: kitchen
namespace: kitchen
behavior: merge
files:
- config.yaml
secretGenerator:
- name: imagepull-gitea
namespace: kitchen
type: kubernetes.io/dockerconfigjson
files:
- .dockerconfigjson
patches:
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: kitchen
spec:
template:
spec:
imagePullSecrets:
- name: imagepull-gitea
target:
kind: Deployment
labelSelector: app.kubernetes.io/name=kitchen