Skip to content

Commit 01bc79a

Browse files
committed
Tidy deployment file
1 parent 5826774 commit 01bc79a

File tree

1 file changed

+4
-99
lines changed

1 file changed

+4
-99
lines changed

kubernetes/deployment.yaml

+4-99
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ spec:
1212
replicas: 1
1313
template:
1414
spec:
15-
#affinity:
16-
# podAffinity:
17-
# requiredDuringSchedulingIgnoredDuringExecution:
18-
# - labelSelector:
19-
# matchLabels:
20-
# app: git-cron
21-
# topologyKey: "kubernetes.io/hostname"
2215
metadata:
2316
labels:
2417
app: git-repo
@@ -28,39 +21,12 @@ spec:
2821
image: grimbough/code.bioc-gitlist:0.1.1
2922
imagePullPolicy: "Always"
3023
volumeMounts:
31-
#- mountPath: "/var/git"
32-
# name: git-repo
3324
- mountPath: "/var/git"
3425
name: git-repo-iscsi
3526
ports:
3627
- name: http
3728
containerPort: 8080
3829
protocol: TCP
39-
#livenessProbe:
40-
# failureThreshold: 6
41-
# httpGet:
42-
# path: /
43-
# port: http
44-
# initialDelaySeconds: 30
45-
# timeoutSeconds: 15
46-
#readinessProbe:
47-
# httpGet:
48-
# path: /
49-
# port: http
50-
# initialDelaySeconds: 30
51-
# periodSeconds: 15
52-
# timeoutSeconds: 15
53-
#env:
54-
#- name : DB_USER
55-
# value: xwiki
56-
#- name : DB_PASSWORD
57-
# value: bj%ksFh!gdb76Dhd
58-
#- name : DB_HOST
59-
# value: itswiki-postgresql
60-
#- name : JAVA_OPTS
61-
# value: "-Xmx5048m -Xms5048m"
62-
#- name : CATALINA_OPTS
63-
# value: "-Xmx5048m -Xms5048m"
6430
resources:
6531
limits:
6632
cpu: 1
@@ -72,9 +38,6 @@ spec:
7238
- name: git-repo-iscsi
7339
persistentVolumeClaim:
7440
claimName: bioc-code-iscsi-pvc
75-
#- name: git-repo
76-
# persistentVolumeClaim:
77-
# claimName: bioc-code-tools-pvc
7841
---
7942
apiVersion: apps/v1
8043
kind: Deployment
@@ -114,32 +77,6 @@ spec:
11477
- name: http
11578
containerPort: 8080
11679
protocol: TCP
117-
#livenessProbe:
118-
# failureThreshold: 6
119-
# httpGet:
120-
# host: git-repo
121-
# path: /
122-
# port: http
123-
# initialDelaySeconds: 30
124-
# timeoutSeconds: 15
125-
#readinessProbe:
126-
# httpGet:
127-
# path: /
128-
# port: http
129-
# initialDelaySeconds: 30
130-
# periodSeconds: 15
131-
# timeoutSeconds: 15
132-
#env:
133-
#- name : DB_USER
134-
# value: xwiki
135-
#- name : DB_PASSWORD
136-
# value: bj%ksFh!gdb76Dhd
137-
#- name : DB_HOST
138-
# value: itswiki-postgresql
139-
#- name : JAVA_OPTS
140-
# value: "-Xmx5048m -Xms5048m"
141-
#- name : CATALINA_OPTS
142-
# value: "-Xmx5048m -Xms5048m"
14380
resources:
14481
limits:
14582
cpu: 1
@@ -172,14 +109,7 @@ spec:
172109
metadata:
173110
labels:
174111
app: code-home
175-
spec:
176-
#affinity:
177-
# podAffinity:
178-
# requiredDuringSchedulingIgnoredDuringExecution:
179-
# - labelSelector:
180-
# matchLabels:
181-
# app: git-repo
182-
# topologyKey: "kubernetes.io/hostname"
112+
spec:
183113
containers:
184114
- name: code-home
185115
image: grimbough/code.bioc-home:0.1.1
@@ -188,35 +118,10 @@ spec:
188118
- name: http
189119
containerPort: 8080
190120
protocol: TCP
191-
#livenessProbe:
192-
# failureThreshold: 6
193-
# httpGet:
194-
# path: /
195-
# port: http
196-
# initialDelaySeconds: 30
197-
# timeoutSeconds: 15
198-
#readinessProbe:
199-
# httpGet:
200-
# path: /
201-
# port: http
202-
# initialDelaySeconds: 30
203-
# periodSeconds: 15
204-
# timeoutSeconds: 15
205-
#env:
206-
#- name : DB_USER
207-
# value: xwiki
208-
#- name : DB_PASSWORD
209-
# value: bj%ksFh!gdb76Dhd
210-
#- name : DB_HOST
211-
# value: itswiki-postgresql
212-
#- name : JAVA_OPTS
213-
# value: "-Xmx5048m -Xms5048m"
214-
#- name : CATALINA_OPTS
215-
# value: "-Xmx5048m -Xms5048m"
216121
resources:
217122
limits:
218123
cpu: 1
219-
memory: 2Gi
220-
requests:
221-
cpu: 700m
222124
memory: 1Gi
125+
requests:
126+
cpu: 500m
127+
memory: 256Mi

0 commit comments

Comments
 (0)