Skip to content

Commit d1245a8

Browse files
release: Added healthPort for Image-Scanner (#289)
* Added healthPort * Update Chart.yaml * Update Chart.yaml
1 parent eae06e8 commit d1245a8

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

charts/security/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ maintainers:
1515
1616
sources:
1717
- https://github.com/devtron-labs/charts
18-
version: 0.1.9
19-
appVersion: "0.1.1"
18+
version: 0.2.0
19+
appVersion: "0.2.0"
2020
dependencies:
2121
- name: clair
2222
version: "0.x.x"

charts/security/templates/image-scanner.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,26 @@ spec:
111111
- name: app
112112
containerPort: 8080
113113
protocol: TCP
114+
livenessProbe:
115+
failureThreshold: 3
116+
httpGet:
117+
path: /health
118+
port: {{ $.Values.imageScanner.healthPort }}
119+
scheme: HTTP
120+
initialDelaySeconds: 20
121+
periodSeconds: 10
122+
successThreshold: 1
123+
timeoutSeconds: 5
124+
readinessProbe:
125+
failureThreshold: 3
126+
httpGet:
127+
path: /health
128+
port: {{ $.Values.imageScanner.healthPort }}
129+
scheme: HTTP
130+
initialDelaySeconds: 20
131+
periodSeconds: 10
132+
successThreshold: 1
133+
timeoutSeconds: 5
114134
env:
115135
- name: DEVTRON_APP_NAME
116136
value: image-scanner

charts/security/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ global:
1111
# imagePullSecrets:
1212
# - name: yoursecret
1313
imageScanner:
14+
healthPort: 8080
1415
configs:
1516
CLAIR_ADDR: clair.devtroncd:6060
1617
CLIENT_ID: client-2

0 commit comments

Comments
 (0)