37 lines
830 B
YAML
37 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
|