mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
roundcube nginx
This commit is contained in:
45
roundcube/roundcubenginx-deployment.yaml
Normal file
45
roundcube/roundcubenginx-deployment.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: roundcubenginx
|
||||
namespace: roundcube
|
||||
labels:
|
||||
service: roundcubenginx
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
service: roundcubenginx
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
service: roundcubenginx
|
||||
spec:
|
||||
containers:
|
||||
- name: roundcubenginx
|
||||
image: nginx:alpine
|
||||
imagePullPolicy: ""
|
||||
env:
|
||||
- name: NGINX_HOST
|
||||
value: localhost
|
||||
- name: NGINX_PHP_CGI
|
||||
value: roundcubemail:9000
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: www-data
|
||||
mountPath: /var/www/html
|
||||
- name: nginx-config
|
||||
mountPath: /etc/nginx/conf.d/default.conf
|
||||
subPath: default.conf
|
||||
restartPolicy: Always
|
||||
serviceAccountName: ""
|
||||
volumes:
|
||||
- name: www-data
|
||||
persistentVolumeClaim:
|
||||
claimName: roundcubemail-www-pvc
|
||||
- name: nginx-config
|
||||
configMap:
|
||||
name: roundcubenginx-config
|
||||
Reference in New Issue
Block a user