2022-07-03 03:21:41 +02:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: firefox
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: firefox
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: firefox
|
|
|
|
spec:
|
|
|
|
containers:
|
2022-11-15 18:20:44 +01:00
|
|
|
- image: lscr.io/linuxserver/firefox:101.0.1-r0-ls69
|
2022-07-03 03:21:41 +02:00
|
|
|
name: firefox
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: "1200m"
|
|
|
|
memory: "2000Mi"
|
|
|
|
requests:
|
|
|
|
cpu: "300m"
|
|
|
|
memory: "40Mi"
|
|
|
|
env:
|
|
|
|
- name: TZ
|
|
|
|
value: Europe/Oslo
|
|
|
|
- name: PUID
|
|
|
|
value: "1000"
|
|
|
|
- name: PGID
|
|
|
|
value: "1000"
|
2022-11-15 18:34:49 +01:00
|
|
|
- name: S6_VERBOSITY
|
|
|
|
value: "5"
|
2022-07-03 03:21:41 +02:00
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
volumeMounts:
|
|
|
|
- name: vol
|
|
|
|
mountPath: /config
|
|
|
|
- name: dshm
|
|
|
|
mountPath: /dev/shm
|
2022-11-16 09:48:54 +01:00
|
|
|
- mountPath: /custom-cont-init.d
|
2022-11-16 09:46:13 +01:00
|
|
|
name: config
|
|
|
|
readOnly: true
|
2022-07-03 03:21:41 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: vol
|
2022-11-15 18:20:44 +01:00
|
|
|
emptyDir:
|
2022-07-03 03:21:41 +02:00
|
|
|
- name: dshm
|
|
|
|
emptyDir:
|
|
|
|
medium: Memory
|
2022-11-16 09:46:13 +01:00
|
|
|
- name: config
|
|
|
|
configMap:
|
|
|
|
name: firefox-edit
|
|
|
|
items:
|
|
|
|
- key: "settings"
|
|
|
|
path: "edit"
|
2022-07-03 03:21:41 +02:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: firefox-svc
|
|
|
|
labels:
|
|
|
|
app: firefox
|
|
|
|
spec:
|
|
|
|
type: NodePort
|
|
|
|
ports:
|
|
|
|
- port: 3000
|
|
|
|
targetPort: 3000
|
|
|
|
nodePort: 30104
|
|
|
|
selector:
|
|
|
|
app: firefox
|
2022-11-16 09:46:13 +01:00
|
|
|
---
|
|
|
|
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
|