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

Commit

Permalink
Merge pull request #88 from armosec/dev
Browse files Browse the repository at this point in the history
Fix rolling update issues
  • Loading branch information
David Wertenteil authored Jul 20, 2022
2 parents 448008b + a904c8d commit d4ae4d9
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/armo-components/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.7.14
version: 1.7.15

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

maintainers:
- name: Ben Hirschberg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
{{ template "account_guid" . }}
{{ template "cluster_name" . }}
apiVersion: apps/v1
kind: Deployment
# statefulset is needed in order to avoid to pods reporting from the same cluster in parallel.
# parallel reporting will cause Kubescape SaaS to miss identify the cluster liveness status
kind: StatefulSet
metadata:
name: {{ .Values.armoCollector.name }}
namespace: {{ .Values.armoNameSpace }}
labels:
app: {{ .Values.armoCollector.name }}
tier: {{ .Values.global.namespaceTier}}
spec:
serviceName: ""
replicas: {{ .Values.armoCollector.replicaCount }}
selector:
matchLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ metadata:
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
spec:
replicas: {{ .Values.armoKubescape.replicaCount }}
revisionHistoryLimit: 2
strategy:
rollingUpdate:
maxSurge: 0%
maxUnavailable: 100%
type: RollingUpdate
selector:
matchLabels:
app.kubernetes.io/name: {{ .Values.armoKubescape.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ metadata:
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
spec:
replicas: {{ .Values.armoNotificationService.replicaCount }}
revisionHistoryLimit: 2
strategy:
rollingUpdate:
maxSurge: 0%
maxUnavailable: 100%
type: RollingUpdate
selector:
matchLabels:
app.kubernetes.io/name: {{ .Values.armoNotificationService.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ metadata:
tier: {{ .Values.global.namespaceTier}}
spec:
replicas: {{ .Values.armoVulnScanner.replicaCount }}
revisionHistoryLimit: 2
strategy:
rollingUpdate:
maxSurge: 0%
maxUnavailable: 100%
type: RollingUpdate
selector:
matchLabels:
app.kubernetes.io/name: {{ .Values.armoVulnScanner.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ metadata:
tier: {{ .Values.global.namespaceTier}}
spec:
replicas: {{ .Values.armoWebsocket.replicaCount }}
revisionHistoryLimit: 2
strategy:
rollingUpdate:
maxSurge: 0%
maxUnavailable: 100%
type: RollingUpdate
selector:
matchLabels:
app.kubernetes.io/name: {{ .Values.armoWebsocket.name }}
Expand Down
2 changes: 1 addition & 1 deletion charts/armo-components/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ armoWebsocket:
image:
# -- source code: https://github.com/armosec/k8s-ca-websocket (private repo)
repository: quay.io/armosec/action-trigger
tag: v0.0.37
tag: v0.0.39
pullPolicy: Always

service:
Expand Down

0 comments on commit d4ae4d9

Please sign in to comment.