Argo/Deployments.ol/firefox.yaml
Simen Røstvik 2c74c0bf53
Start again
2022-11-11 11:31:50 +01:00

82 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: firefox
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: firefox
template:
metadata:
labels:
app: firefox
spec:
containers:
- image: ghcr.io/linuxserver/firefox:version-94.0-r0
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"
ports:
- containerPort: 3000
volumeMounts:
- name: vol
mountPath: /config
- name: dshm
mountPath: /dev/shm
- name: dri
mountPath: /dev/dri
volumes:
- name: vol
persistentVolumeClaim:
claimName: firefox-pvc
- name: dshm
emptyDir:
medium: Memory
- name: dri
hostPath:
path: /dev/dri
---
apiVersion: v1
kind: Service
metadata:
name: firefox-svc
labels:
app: firefox
spec:
type: NodePort
ports:
- port: 3000
targetPort: 3000
nodePort: 30104
selector:
app: firefox
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: firefox-pvc
labels:
app: firefox
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 4Gi