[stable/anchore-engine] add nodeSelector support (#3781)

This commit is contained in:
wwojcik
2018-03-08 09:03:57 -08:00
committed by k8s-ci-robot
parent 365da5c194
commit d481671b3c
4 changed files with 43 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: anchore-engine
version: 0.1.3
version: 0.1.4
appVersion: 0.1.6
description: Anchore container analysis and policy evaluation engine service
keywords:
@@ -98,3 +98,15 @@ spec:
failureThreshold: 10
resources:
{{ toYaml .Values.coreConfig.resources | indent 10 }}
{{- if .Values.coreConfig.nodeSelector }}
nodeSelector:
{{ toYaml .Values.coreConfig.nodeSelector | indent 8 }}
{{- end }}
{{- with .Values.coreConfig.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.coreConfig.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
@@ -85,3 +85,15 @@ spec:
{{- end }}
- name: analysis-scratch
{{ toYaml .Values.workerConfig.analysisScratchVolume.details -}}
{{- if .Values.workerConfig.nodeSelector }}
nodeSelector:
{{ toYaml .Values.workerConfig.nodeSelector | indent 8 }}
{{- end }}
{{- with .Values.workerConfig.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.workerConfig.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
+18
View File
@@ -137,6 +137,15 @@ coreConfig:
# cpu: 100m
# memory: 4Gi
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
tolerations: []
affinity: {}
# Configuration for the worker pods that perform image analysis
# There may be many of these workers but best practice is to not have more than one per node since analysis
# is very IO intensive. Use of affinity/anti-affinity rules for scheduling the workers is future work.
@@ -181,3 +190,12 @@ workerConfig:
# requests:
# cpu: 100m
# memory: 2Gi
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
nodeSelector: {}
tolerations: []
affinity: {}