privateBin/02-deployments.yaml
Guillaume B.B. Van Hemmen d162d7651d #0000 - Add Kubernetes manifests for PrivateBin deployment
Introduced Kubernetes YAML configurations for deploying PrivateBin. This includes namespace, PVC, deployment, service, ingress, and a utility pod for data restoration. Updated README with instructions and added an MIT license file.
2024-12-28 23:34:57 +01:00

36 lines
830 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
namespace: privatebin
name: app
spec:
replicas: 1
selector:
matchLabels:
name: app
template:
metadata:
labels:
name: app
instance: app-prod
component: frontend
part-of: privateBin
managed-by: k8s-yaml
spec:
containers:
- name: app
image: ghcr.io/privatebin/nginx-fpm-alpine:stable
ports:
- containerPort: 8080
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
volumeMounts:
- mountPath: /srv/data
name: privatebin-data
volumes:
- name: privatebin-data
persistentVolumeClaim:
claimName: privatebin-data