init with s6
This commit is contained in:
parent
49079f0063
commit
4d3ca84743
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user