Skip to content

Commit dbfe2e3

Browse files
committed
improve helm template
1 parent bad0597 commit dbfe2e3

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

deployment/helm/templates/deployment.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ .Values.service.name }}
5-
namespace: {{ .Values.namespace }}
65
labels:
76
app: {{ .Values.service.name }}
87
spec:
@@ -21,6 +20,14 @@ spec:
2120
imagePullPolicy: {{ .Values.image.pullPolicy }}
2221
ports:
2322
- containerPort: 80
23+
livenessProbe:
24+
httpGet:
25+
path: /
26+
port: 80
27+
readinessProbe:
28+
httpGet:
29+
path: /
30+
port: 80
2431
resources:
2532
requests:
2633
cpu: {{ .Values.resources.requests.cpu }}

deployment/helm/templates/ingress.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ metadata:
55
annotations:
66
nginx.ingress.kubernetes.io/rewrite-target: /gwas/apps/beyond-snps/$2
77
nginx.ingress.kubernetes.io/ssl-redirect: "false"
8-
namespace: {{ .Values.namespace }}
98
spec:
109
rules:
11-
- host:
12-
http:
10+
- http:
1311
paths:
1412
- path: {{.Values.ingress.path}}
1513
backend:

deployment/helm/templates/service.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: {{ .Values.service.name }}
5-
namespace: {{ .Values.namespace }}
65
spec:
7-
type: NodePort
6+
type: ClusterIP
87
selector:
98
app: {{ .Values.service.name }}
109
ports:

deployment/helm/values.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ ingress:
1515
annotations: {}
1616
path: "/apps/beyond-snps(/|$)(.*)"
1717

18-
namespace: gwas
19-
2018
resources:
2119
limits:
2220
cpu: 250m

0 commit comments

Comments
 (0)