Added roundcube service
This commit is contained in:
parent
e08fa608bb
commit
e6364996fb
@ -5,6 +5,8 @@ resources:
|
||||
- dovecot-volume.yaml
|
||||
- postfix-deployment.yaml
|
||||
- postfix-svc.yaml
|
||||
- roundcube-deployment.yaml
|
||||
- roundcube-svc.yaml
|
||||
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
41
kustomize/roundcube-deployment.yaml
Normal file
41
kustomize/roundcube-deployment.yaml
Normal file
@ -0,0 +1,41 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: roundcube
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: roundcube
|
||||
tier: frontend
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: roundcube
|
||||
tier: frontend
|
||||
spec:
|
||||
containers:
|
||||
- name: roundcube
|
||||
image: roundcube/roundcubemail:latest
|
||||
env:
|
||||
- name: ROUNDCUBEMAIL_DEFAULT_HOST
|
||||
value: dovecot-imap
|
||||
- name: ROUNDCUBEMAIL_SMTP_SERVER
|
||||
value: postfix-msa
|
||||
- name: ROUNDCUBEMAIL_DB_TYPE
|
||||
value: sqlite
|
||||
volumeMounts:
|
||||
- name: roundcube-persistent-storage
|
||||
mountPath: /var/roundcube
|
||||
resources:
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: roundcube
|
||||
volumes:
|
||||
- name: roundcube-persistent-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: roundcube-pv-claim
|
14
kustomize/roundcube-svc.yaml
Normal file
14
kustomize/roundcube-svc.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: roundcube
|
||||
labels:
|
||||
app: roundcube
|
||||
spec:
|
||||
selector:
|
||||
app: roundcube
|
||||
tier: frontend
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- nodePort: 8082
|
||||
port: 80
|
Loading…
Reference in New Issue
Block a user