-
Notifications
You must be signed in to change notification settings - Fork 4
/
kubernetes-app-rocket-chat.yml
57 lines (56 loc) · 1.48 KB
/
kubernetes-app-rocket-chat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
- hosts: master
tasks:
- name: Create Rocket Chat Replication Controller.
kubernetes:
endpoint: "{{ apiserver_endpoint }}"
state: present
model:
apiVersion: v1
kind: ReplicationController
metadata:
name: "rocket-chat-rc"
namespace: default
spec:
replicas: 1
imagePullPolicy: IfNotPresent
selector:
app: "rocket-chat"
template:
metadata:
labels:
app: "rocket-chat"
spec:
containers:
- name: "mongo"
image: mongo
ports:
- containerPort: 27017
- name: "rocket-chat"
image: rocket.chat
env:
- name: MONGO_URL
value: mongodb://127.0.0.1:27017/rocketchat
ports:
- containerPort: 3000
restartPolicy: Always
- name: Create Rocket Chat Service
kubernetes:
endpoint: "{{ apiserver_endpoint }}"
state: present
model:
apiVersion: v1
kind: Service
metadata:
name: "rocket-chat-svc"
namespace: default
labels:
app: "rocket-chat"
spec:
type: NodePort
ports:
- port: 8080
targetPort: 3000
protocol: TCP
nodePort: 30180
selector:
app: "rocket-chat"