7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-29 12:20:49 +00:00

Add rabbitmq to k8s

Close #124.
This commit is contained in:
Régis Behmo 2019-01-14 09:16:44 +01:00
parent fee5b8aa72
commit f8a401cab9
3 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rabbitmq
spec:
replicas: 1
selector:
matchLabels:
app: rabbitmq
template:
metadata:
labels:
app: rabbitmq
spec:
containers:
- name: rabbitmq
image: rabbitmq:3.6.10
ports:
- containerPort: 5672
volumeMounts:
- mountPath: /var/lib/rabbitmq
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: rabbitmq

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: rabbitmq
spec:
type: NodePort
ports:
- port: 5672
protocol: TCP
selector:
app: rabbitmq

View File

@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: rabbitmq
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi