Skip to content

Commit 4fa5464

Browse files
committed
Added kubernetes deployment files
Remove the file includes/zulip-puppet-config
1 parent c5ea462 commit 4fa5464

File tree

5 files changed

+138
-8
lines changed

5 files changed

+138
-8
lines changed

.dockerignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ README
66
README.md
77
TODO
88
TODO.md
9-
includes/postgresql-9.3-tsearch-extras
10-
includes/zulip-puppet-config
11-
docker-compose.yml
9+
kubernetes/
1210
scripts/
11+
docker-compose.yml

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
docker-compose-dev.yml
2+
kubernetes/*-dev.yml

includes/zulip-puppet-config

-5
This file was deleted.

kubernetes/zulip-rc.yml

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
apiVersion: v1
2+
kind: ReplicationController
3+
metadata:
4+
name: zulip-v1.3.6
5+
namespace: default
6+
labels:
7+
version: v1.3.6
8+
app: zulip
9+
spec:
10+
replicas: 1
11+
selector:
12+
version: v1.3.6
13+
app: gitlab
14+
template:
15+
metadata:
16+
labels:
17+
version: v1.3.6
18+
app: gitlab
19+
spec:
20+
containers:
21+
- name: redis
22+
image: docker.io/sameersbn/redis:latest
23+
resources:
24+
limits:
25+
cpu: 50m
26+
volumeMounts:
27+
- name: redis-persistent-storage
28+
mountPath: /var/lib/redis
29+
- name: memcached
30+
image: quay.io/sameersbn/memcached:latest
31+
resources:
32+
limits:
33+
cpu: 75m
34+
memory: 768Mi
35+
- name: postgresql
36+
image: quay.io/galexrt/zulip-postgresql-tsearchextras:latest
37+
resources:
38+
limits:
39+
cpu: 50m
40+
memory: 768Mi
41+
env:
42+
- name: DB_NAME
43+
value: zulip
44+
- name: DB_USER
45+
value: zulip
46+
- name: DB_PASS
47+
value: zulip
48+
volumeMounts:
49+
- name: postgresql-persistent-storage
50+
mountPath: /var/lib/postgresql
51+
- name: zulip
52+
image: quay.io/galexrt/zulip:3.1.6
53+
resources:
54+
limits:
55+
cpu: 95m
56+
memory: 1536Mi
57+
env:
58+
- name: DB_HOST
59+
value: "database"
60+
- name: MEMCACHED_HOST
61+
value: "memcached"
62+
- name: REDIS_HOST
63+
value: "redis"
64+
- name: RABBITMQ_HOST
65+
value: "rabbitmq"
66+
- name: ZULIP_USER_EMAIL
67+
68+
- name: ZULIP_USER_DOMAIN
69+
value: "zerbytes.net"
70+
- name: ZULIP_AUTHENTICATION_BACKENDS_EmailAuthBackend
71+
value: "EmailAuthBackend"
72+
- name: ZULIP_SECRETS_email_password
73+
value: "12345"
74+
- name: ZULIP_SECRETS_rabbitmq_password
75+
value:"zulip"
76+
- name: ZULIP_SETTINGS_EXTERNAL_HOST
77+
value: "localhost"
78+
- name: ZULIP_SETTINGS_ZULIP_ADMINISTRATOR
79+
80+
- name: ZULIP_SETTINGS_ADMIN_DOMAIN
81+
value: "zerbytes.net"
82+
- name: ZULIP_SETTINGS_NOREPLY_EMAIL_ADDRESS
83+
84+
- name: ZULIP_SETTINGS_DEFAULT_FROM_EMAIL
85+
value: "Zulip <[email protected]>"
86+
- name: ZULIP_SETTINGS_EMAIL_HOST
87+
value: "smtp.example.com"
88+
- name: ZULIP_SETTINGS_EMAIL_HOST_USER
89+
90+
ports:
91+
- containerPort: 80
92+
name: http
93+
protocol: TCP
94+
- containerPort: 443
95+
name: https
96+
protocol: TCP
97+
volumeMounts:
98+
- name: zulip-persistent-storage
99+
mountPath: /data
100+
# livenessProbe:
101+
# httpGet:
102+
# path: /login
103+
# port: 443
104+
# scheme: HTTP
105+
# initialDelaySeconds: 120
106+
# timeoutSeconds: 12
107+
volumes:
108+
- name: redis-persistent-storage
109+
hostPath:
110+
path: /opt/docker/zulip/redis
111+
- name: postgresql-persistent-storage
112+
hostPath:
113+
path: /opt/docker/zulip/postgresql
114+
- name: zulip-persistent-storage
115+
hostPath:
116+
path: /opt/docker/zulip/zulip

kubernetes/zulip-svc.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: zulip
5+
namespace: default
6+
labels:
7+
app: zulip
8+
spec:
9+
selector:
10+
app: zulip
11+
ports:
12+
- name: http
13+
port: 80
14+
targetPort: 80
15+
protocol: TCP
16+
- name: https
17+
port: 443
18+
targetPort: 443
19+
protocol: TCP

0 commit comments

Comments
 (0)