This repository was archived by the owner on Feb 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +27
-16
lines changed Expand file tree Collapse file tree 4 files changed +27
-16
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,7 @@ root = true
44indent_style = space
55
66[* .java ]
7- indent_size = 4
7+ indent_size = 4
8+
9+ [* .sh ]
10+ end_of_line = lf
Original file line number Diff line number Diff line change @@ -82,13 +82,21 @@ spec:
8282 app.kubernetes.io/name : {{ include "mystuff.name.back" . }}
8383 app.kubernetes.io/instance : {{ .Release.Name }}
8484 spec :
85+ initContainers :
86+ - name : wait-for-db
87+ image : busybox:1.28
88+ command : ['sh', '-c', 'until nslookup {{ include "mystuff.name.neo4j" . }}; do echo waiting for data base; sleep 2; done;']
8589 containers :
8690 - name : {{ .Chart.Name }}
8791 image : " {{ .Values.images.back.repository }}:{{ .Values.images.back.tag }}"
8892 imagePullPolicy : {{ .Values.images.back.pullPolicy }}
8993 env :
9094 - name : spring.data.neo4j.uri
9195 value : http://neo4j:{{ .Values.neo4j.neo4jPassword }}@{{ include "mystuff.name.neo4j" . }}:80
96+ - name : " server.tomcat.accesslog.enabled"
97+ value : " true"
98+ - name : " server.tomcat.accesslog.directory"
99+ value : " /logs"
92100 ports :
93101 - name : back
94102 containerPort : 9000
@@ -97,18 +105,18 @@ spec:
97105 httpGet :
98106 path : /health
99107 port : 9000
100- initialDelaySeconds : 40
101- timeoutSeconds : 2
102- periodSeconds : 3
103- failureThreshold : 2
108+ initialDelaySeconds : 60
109+ timeoutSeconds : 5
110+ periodSeconds : 5
111+ failureThreshold : 10
104112 livenessProbe :
105113 httpGet :
106114 path : /health
107115 port : 9000
108- initialDelaySeconds : 100
109- timeoutSeconds : 2
110- periodSeconds : 8
111- failureThreshold : 1
116+ initialDelaySeconds : 60
117+ timeoutSeconds : 5
118+ periodSeconds : 5
119+ failureThreshold : 10
112120 {{- with .Values.nodeSelector }}
113121 nodeSelector :
114122 {{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- helm upgrade mystuff .
2+ helm upgrade mystuff .
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ replicaCount: 2
77images :
88 web :
99 repository : webtree/mystuff
10- tag : latest
11- pullPolicy : IfNotPresent
10+ tag : web- latest
11+ pullPolicy : Always
1212 back :
1313 repository : webtree/mystuff
14- tag : latest
15- pullPolicy : IfNotPresent
14+ tag : back- latest
15+ pullPolicy : Always
1616
1717nameOverride : " "
1818fullnameOverride : " "
@@ -54,7 +54,7 @@ ingress:
5454 # memory: 128Mi
5555
5656nodeSelector :
57- " node-role.kubernetes.io/type " : backend
57+ " node-role.kubernetes.io/backend " :
5858
5959tolerations : []
6060
6868 enabled : true
6969 size : 1Gi
7070 authEnabled : true
71- replicaCount : 1
71+ replicaCount : 1
You can’t perform that action at this time.
0 commit comments