UNCLASSIFIED

Commit 36b70a35 authored by Ryan Garcia's avatar Ryan Garcia
Browse files

Merge branch 'issue-5' into 'main'

Add Support for Tolerations and Resources in Deployment object

See merge request !18
parents fb6bca31 4b06329a
Pipeline #212066 passed with stages
in 3 minutes and 6 seconds
...@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ...@@ -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 ## [0.0.3-bb.3] - 2021-04-05
### Changed ### Changed
- Affinity values modified to standardize - Affinity values modified to standardize
......
apiVersion: v2 apiVersion: v2
name: twistlock name: twistlock
version: 0.0.3-bb.3 version: 0.0.3-bb.4
appVersion: 20.12.531 appVersion: 20.12.531
...@@ -29,6 +29,10 @@ spec: ...@@ -29,6 +29,10 @@ spec:
nodeSelector: nodeSelector:
{{ toYaml .Values.nodeSelector | nindent 8 }} {{ toYaml .Values.nodeSelector | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | nindent 8 }}
{{- end }}
{{- if .Values.affinity }} {{- if .Values.affinity }}
affinity: affinity:
{{ toYaml .Values.affinity | nindent 8 }} {{ toYaml .Values.affinity | nindent 8 }}
...@@ -43,6 +47,8 @@ spec: ...@@ -43,6 +47,8 @@ spec:
containerPort: 8084 containerPort: 8084
- name: mgmt-http - name: mgmt-http
containerPort: 8081 containerPort: 8081
resources:
{{ toYaml .Values.resources | nindent 10 }}
env: env:
- name: HIGH_AVAILABILITY_ENABLED - name: HIGH_AVAILABILITY_ENABLED
value: "false" value: "false"
......
...@@ -46,3 +46,17 @@ affinity: {} ...@@ -46,3 +46,17 @@ affinity: {}
nodeSelector: {} nodeSelector: {}
# node-type: twistlock" # node-type: twistlock"
tolerations: []
# - key: "key1"
# operator: "Equal"
# value: "value1"
# effect: "NoSchedule"
resources:
limits: {}
# memory: 256Mi
# cpu: 100m
requests: {}
# memory: 256Mi
# cpu: 100m
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment