infra/specs/nginx/nginx-deployk8s.yaml
2025-02-01 19:01:13 +01:00

65 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
kompose.cmd: kompose convert
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.service: nginx
name: nginx
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
io.kompose.service: nginx
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.network/nginx-default: "true"
io.kompose.service: nginx
spec:
containers:
- image: gjc21/nginx-proxy-manager:latest
imagePullPolicy: Always
name: nginx
ports:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 81
hostPort: 81
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/letsencrypt
name: nginx-claim0
- mountPath: /data
name: nginx-claim1
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /media/kube/nginx/letsencrypt
type: ""
name: nginx-claim0
- hostPath:
path: /media/kube/nginx/data
type: ""
name: nginx-claim1