From 4d3ca84743112e568d64807c5ad5eed45b7a383a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20R=C3=B8stvik?= Date: Wed, 16 Nov 2022 09:46:13 +0100 Subject: [PATCH] init with s6 --- Deployments/firefox.yaml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/Deployments/firefox.yaml b/Deployments/firefox.yaml index e145d47..b6a8772 100644 --- a/Deployments/firefox.yaml +++ b/Deployments/firefox.yaml @@ -39,15 +39,9 @@ spec: mountPath: /config - name: dshm mountPath: /dev/shm - initContainers: - - name: init-xrdp - image: busybox:1.28 - command: - [ - "sh", - "-c", - "sed -i 's/;ListenAddress.*/ListenAddress=127.0.0.1/' /etc/xrdp/sesman.ini", - ] + - mountPath: /custom + name: config + readOnly: true volumes: - name: vol @@ -55,6 +49,12 @@ spec: - name: dshm emptyDir: medium: Memory + - name: config + configMap: + name: firefox-edit + items: + - key: "settings" + path: "edit" --- apiVersion: v1 kind: Service @@ -70,3 +70,14 @@ spec: nodePort: 30104 selector: app: firefox +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: firefox-edit +data: + settings: | + #!/usr/bin/with-contenv bash + #shellcheck shell=bash + + sed -i 's/;ListenAddress.*/ListenAddress=127.0.0.1/' /etc/xrdp/sesman.ini