init with s6

This commit is contained in:
Simen Røstvik 2022-11-16 09:46:13 +01:00
parent da5fcd2e25
commit 23efb14386
No known key found for this signature in database

View File

@ -39,15 +39,9 @@ spec:
mountPath: /config mountPath: /config
- name: dshm - name: dshm
mountPath: /dev/shm mountPath: /dev/shm
initContainers: - mountPath: /custom
- name: init-xrdp name: config
image: busybox:1.28 readOnly: true
command:
[
"sh",
"-c",
"sed -i 's/;ListenAddress.*/ListenAddress=127.0.0.1/' /etc/xrdp/sesman.ini",
]
volumes: volumes:
- name: vol - name: vol
@ -55,6 +49,12 @@ spec:
- name: dshm - name: dshm
emptyDir: emptyDir:
medium: Memory medium: Memory
- name: config
configMap:
name: firefox-edit
items:
- key: "settings"
path: "edit"
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
@ -70,3 +70,14 @@ spec:
nodePort: 30104 nodePort: 30104
selector: selector:
app: firefox 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