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