apiVersion: apps/v1 kind: Deployment metadata: name: humor-units labels: app: humor-units spec: replicas: 1 selector: matchLabels: app: humor-units template: metadata: labels: app: humor-units spec: containers: - name: humor-units image: registry.registry.svc.cluster.local:5000/humor-units:latest imagePullPolicy: Always ports: - containerPort: 3000 env: - name: PORT value: "3000" - name: HOST value: "0.0.0.0" - name: ORIGIN value: "https://humorunits.com" # replace with your domain envFrom: - secretRef: name: humor-units-secrets # SESSION_SECRET, PASSWORD_HASH volumeMounts: - name: data mountPath: /app/data resources: requests: cpu: 50m memory: 128Mi limits: cpu: 500m memory: 256Mi readinessProbe: httpGet: path: / port: 3000 initialDelaySeconds: 5 periodSeconds: 10 livenessProbe: httpGet: path: / port: 3000 initialDelaySeconds: 10 periodSeconds: 30 volumes: - name: data persistentVolumeClaim: claimName: humor-units-data --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: humor-units-data spec: accessModes: - ReadWriteOnce resources: requests: storage: 100Mi