Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/crowdsec/templates/agent-daemonSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ metadata:
{{ toYaml .Values.agent.daemonsetAnnotations | trim | indent 4 }}
{{- end }}
spec:
{{- if .Values.agent.daemonsetStrategy }}
updateStrategy: {{- toYaml .Values.agent.daemonsetStrategy | nindent 4 }}
{{- end }}
selector:
matchLabels:
k8s-app: {{ .Release.Name }}
Expand Down
4 changes: 3 additions & 1 deletion charts/crowdsec/templates/agent-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ metadata:
{{ toYaml .Values.agent.deploymentAnnotations | trim | indent 4 }}
{{- end }}
spec:
{{- if .Values.agent.deploymentStrategy }}
strategy: {{- toYaml .Values.agent.deploymentStrategy | nindent 4 }}
{{- end }}
replicas: {{ .Values.agent.replicas }}
strategy: {{- toYaml .Values.agent.strategy | nindent 4 }}
selector:
matchLabels:
k8s-app: {{ .Release.Name }}
Expand Down
12 changes: 9 additions & 3 deletions charts/crowdsec/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,16 @@ agent:
# -- replicas for agent if isDeployment is set to true
## @param agent.replicas Number of replicas when deploying as a Deployment
replicas: 1
# -- strategy for agent if isDeployment is set to true
## @param agent.strategy [object] Deployment strategy when `isDeployment` is true
strategy:
# -- strategy for agent deployment updates if isDeployment is set to true
## @param agent.deploymentStrategy [object] Update strategy for the agent Deployment when `isDeployment` is true
deploymentStrategy:
type: Recreate
# -- strategy for agent daemonset updates
## @param agent.daemonsetStrategy [object] Update strategy for the agent DaemonSet
daemonsetStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%

# -- add your custom ports here, by default we expose port 6060 for metrics if metrics is enabled
## @param agent.ports [array] Custom container ports to expose (default: metrics port 6060 if enabled)
Expand Down