core-deployments/paste/manifest.yaml

88 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2024-10-04 19:45:15 +02:00
---
apiVersion: v1
kind: Namespace
metadata:
name: paste
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: paste-pvc
namespace: paste
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 8Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: paste-deployment
namespace: paste
labels:
app: paste
spec:
replicas: 1
selector:
matchLabels:
app: paste
template:
metadata:
labels:
app: paste
spec:
securityContext:
fsGroup: 82
containers:
2024-10-07 09:19:39 +02:00
- name: paste
image: privatebin/nginx-fpm-alpine
ports:
- containerPort: 8080
volumeMounts:
- mountPath: "/srv/data"
name: paste-volume
2024-10-04 19:45:15 +02:00
volumes:
2024-10-07 09:19:39 +02:00
- name: paste-volume
persistentVolumeClaim:
claimName: paste-pvc
2024-10-04 19:45:15 +02:00
---
apiVersion: v1
kind: Service
metadata:
name: paste-service
namespace: paste
spec:
selector:
app: paste
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
name: paste-ingress
namespace: paste
spec:
rules:
2024-10-07 09:19:39 +02:00
- host: "paste.apps.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: paste-service
port:
number: 80
2024-10-04 19:45:15 +02:00
tls:
2024-10-07 09:19:39 +02:00
- hosts:
- paste.apps.yolokube.de
secretName: paste-tls-key