Files
2024-06-19 14:27:57 +01:00

111 lines
2.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: nginx
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.network/docker-public: "true"
io.kompose.service: nginx
spec:
containers:
- name: bitwarden-nginx
#image: bitwarden/nginx:2023.1.0
image: bitwarden/nginx:2024.5.0
envFrom:
- configMapRef:
name: uid.env
ports:
- containerPort: 5000
name: port5000
- containerPort: 8080
name: nginx-http
- containerPort: 8443
name: nginx-https
resources: {}
volumeMounts:
- name: bitwarden-nginx
mountPath: /etc/bitwarden/nginx
- name: bitwarden-letsencrypt
mountPath: /etc/letsencrypt
- name: bitwarden-ssl
mountPath: /etc/ssl
- name: bitwarden-logs
mountPath: /var/log/nginx
subPath: nginx
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: nginx
namespace: bitwarden
spec:
ports:
- name: port5000
port: 5000
targetPort: port5000
protocol: TCP
- name: http
port: 8080
targetPort: nginx-http
protocol: TCP
- name: https
port: 8443
targetPort: nginx-https
protocol: TCP
selector:
io.kompose.service: nginx