12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: firefox
- spec:
- selector:
- matchLabels:
- app.kubernetes.io/name: firefox
- app.kubernetes.io/part-of: firefox
- template:
- metadata:
- annotations:
- wavy.squat.ai/enable: "true"
- labels:
- app.kubernetes.io/name: firefox
- app.kubernetes.io/part-of: firefox
- spec:
- initContainers:
- - name: chmod-tmp
- image: nixery.dev/shell/coreutils
- command:
- - chmod
- - "1777"
- - /tmp
- volumeMounts:
- - mountPath: /tmp
- subPath: tmp
- name: tmp
- resources:
- limits:
- cpu: 10m
- memory: 10Mi
- requests:
- cpu: 10m
- memory: 10Mi
- securityContext:
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- containers:
- - image: nixery.dev/firefox/fontconfig
- name: firefox
- command:
- - firefox
- resources:
- limits:
- cpu: 2000m
- memory: 2048Mi
- env:
- - name: HOME
- value: /tmp
- securityContext:
- runAsUser: 1000
- runAsGroup: 998
- volumeMounts:
- - mountPath: /dev/shm
- name: shm
- - mountPath: /run
- name: tmp
- subPath: run
- - mountPath: /tmp
- name: tmp
- subPath: tmp
- volumes:
- - name: shm
- emptyDir:
- medium: Memory
- sizeLimit: 512Mi
- - name: tmp
- emptyDir:
- sizeLimit: 100M
|