From 4b06329ae4e34a11ec747d80fd52ded4669e39b1 Mon Sep 17 00:00:00 2001 From: tunde Date: Tue, 6 Apr 2021 21:15:59 +0000 Subject: [PATCH] Add Support for Tolerations and Resources in Deployment object --- CHANGELOG.md | 4 ++++ chart/Chart.yaml | 2 +- chart/templates/deployment.yaml | 6 ++++++ chart/values.yaml | 14 ++++++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87805a9..39b9692 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), --- +## [0.0.3-bb.4] - 2021-04-06 +### Added +- Resource and Toleration Values + ## [0.0.3-bb.3] - 2021-04-05 ### Changed - Affinity values modified to standardize diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 6824c66..7e5399a 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: twistlock -version: 0.0.3-bb.3 +version: 0.0.3-bb.4 appVersion: 20.12.531 diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index ff9eb7c..0df696b 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -29,6 +29,10 @@ spec: nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} {{- end }} + {{- if .Values.tolerations }} + tolerations: + {{ toYaml .Values.tolerations | nindent 8 }} + {{- end }} {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | nindent 8 }} @@ -43,6 +47,8 @@ spec: containerPort: 8084 - name: mgmt-http containerPort: 8081 + resources: + {{ toYaml .Values.resources | nindent 10 }} env: - name: HIGH_AVAILABILITY_ENABLED value: "false" diff --git a/chart/values.yaml b/chart/values.yaml index 10b5185..e93950c 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -46,3 +46,17 @@ affinity: {} nodeSelector: {} # node-type: twistlock" + +tolerations: [] + # - key: "key1" + # operator: "Equal" + # value: "value1" + # effect: "NoSchedule" + +resources: + limits: {} + # memory: 256Mi + # cpu: 100m + requests: {} + # memory: 256Mi + # cpu: 100m -- GitLab