Skip to content
This repository was archived by the owner on Sep 15, 2022. It is now read-only.

Commit d4ae4d9

Browse files
author
David Wertenteil
authored
Merge pull request #88 from armosec/dev
Fix rolling update issues
2 parents 448008b + a904c8d commit d4ae4d9

File tree

7 files changed

+31
-4
lines changed

7 files changed

+31
-4
lines changed

charts/armo-components/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ type: application
88
# This is the chart version. This version number should be incremented each time you make changes
99
# to the chart and its templates, including the app version.
1010
# Versions are expected to follow Semantic Versioning (https://semver.org/)
11-
version: 1.7.14
11+
version: 1.7.15
1212

1313
# This is the version number of the application being deployed. This version number should be
1414
# incremented each time you make changes to the application. Versions are not expected to
1515
# follow Semantic Versioning. They should reflect the version the application is using.
1616
# It is recommended to use it with quotes.
17-
appVersion: "v1.7.14"
17+
appVersion: "v1.7.15"
1818

1919
maintainers:
2020
- name: Ben Hirschberg

charts/armo-components/templates/armo-collector-deployment.yaml renamed to charts/armo-components/templates/armo-collector-statefulset.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
{{ template "account_guid" . }}
33
{{ template "cluster_name" . }}
44
apiVersion: apps/v1
5-
kind: Deployment
5+
# statefulset is needed in order to avoid to pods reporting from the same cluster in parallel.
6+
# parallel reporting will cause Kubescape SaaS to miss identify the cluster liveness status
7+
kind: StatefulSet
68
metadata:
79
name: {{ .Values.armoCollector.name }}
810
namespace: {{ .Values.armoNameSpace }}
911
labels:
1012
app: {{ .Values.armoCollector.name }}
1113
tier: {{ .Values.global.namespaceTier}}
1214
spec:
15+
serviceName: ""
1316
replicas: {{ .Values.armoCollector.replicaCount }}
1417
selector:
1518
matchLabels:

charts/armo-components/templates/armo-kubescape-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ metadata:
1111
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
1212
spec:
1313
replicas: {{ .Values.armoKubescape.replicaCount }}
14+
revisionHistoryLimit: 2
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 0%
18+
maxUnavailable: 100%
19+
type: RollingUpdate
1420
selector:
1521
matchLabels:
1622
app.kubernetes.io/name: {{ .Values.armoKubescape.name }}

charts/armo-components/templates/armo-notification-service-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ metadata:
1010
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
1111
spec:
1212
replicas: {{ .Values.armoNotificationService.replicaCount }}
13+
revisionHistoryLimit: 2
14+
strategy:
15+
rollingUpdate:
16+
maxSurge: 0%
17+
maxUnavailable: 100%
18+
type: RollingUpdate
1319
selector:
1420
matchLabels:
1521
app.kubernetes.io/name: {{ .Values.armoNotificationService.name }}

charts/armo-components/templates/armo-vuln-scanner-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ metadata:
1111
tier: {{ .Values.global.namespaceTier}}
1212
spec:
1313
replicas: {{ .Values.armoVulnScanner.replicaCount }}
14+
revisionHistoryLimit: 2
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 0%
18+
maxUnavailable: 100%
19+
type: RollingUpdate
1420
selector:
1521
matchLabels:
1622
app.kubernetes.io/name: {{ .Values.armoVulnScanner.name }}

charts/armo-components/templates/armo-websocket-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ metadata:
99
tier: {{ .Values.global.namespaceTier}}
1010
spec:
1111
replicas: {{ .Values.armoWebsocket.replicaCount }}
12+
revisionHistoryLimit: 2
13+
strategy:
14+
rollingUpdate:
15+
maxSurge: 0%
16+
maxUnavailable: 100%
17+
type: RollingUpdate
1218
selector:
1319
matchLabels:
1420
app.kubernetes.io/name: {{ .Values.armoWebsocket.name }}

charts/armo-components/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ armoWebsocket:
217217
image:
218218
# -- source code: https://github.com/armosec/k8s-ca-websocket (private repo)
219219
repository: quay.io/armosec/action-trigger
220-
tag: v0.0.37
220+
tag: v0.0.39
221221
pullPolicy: Always
222222

223223
service:

0 commit comments

Comments
 (0)