init with s6

This commit is contained in:
Simen Røstvik 2022-11-16 09:46:13 +01:00
parent 49079f0063
commit 4d3ca84743

View File

@ -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