58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kiwix
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: kiwix
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: kiwix
|
|
helm.sh/chart: kiwix-4.4.0
|
|
namespace: kiwix
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/name: kiwix
|
|
app.kubernetes.io/instance: kiwix
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: kiwix
|
|
app.kubernetes.io/name: kiwix
|
|
spec:
|
|
enableServiceLinks: false
|
|
serviceAccountName: default
|
|
automountServiceAccountToken: true
|
|
hostIPC: false
|
|
hostNetwork: false
|
|
hostPID: false
|
|
dnsPolicy: ClusterFirst
|
|
containers:
|
|
- args:
|
|
- '*.zim'
|
|
env:
|
|
- name: PORT
|
|
value: "8080"
|
|
image: ghcr.io/kiwix/kiwix-serve:3.8.1
|
|
imagePullPolicy: IfNotPresent
|
|
name: main
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 512Mi
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: media
|
|
readOnly: true
|
|
volumes:
|
|
- name: media
|
|
persistentVolumeClaim:
|
|
claimName: kiwix-nfs-storage
|