UNCLASSIFIED

Commit 5ff5c82e authored by Ryan Garcia's avatar Ryan Garcia
Browse files

Merge branch 'add-resource-limit-request' into 'main'

add resource template for twistlock

See merge request !27
parents b9bdd4e2 4b6afe1e
Pipeline #410067 failed with stages
in 2 minutes and 32 seconds
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
--- ---
## [0.0.6-bb.2] - 2021-08-06
### Added
- Add Resource limit and request.
## [0.0.6-bb.1] - 2021-07-21 ## [0.0.6-bb.1] - 2021-07-21
### Added ### Added
......
apiVersion: v2 apiVersion: v2
name: twistlock name: twistlock
version: 0.0.6-bb.1 version: 0.0.6-bb.2
appVersion: 21.04.412 appVersion: 21.04.412
dependencies: dependencies:
- name: gluon - name: gluon
......
...@@ -40,6 +40,8 @@ spec: ...@@ -40,6 +40,8 @@ spec:
containers: containers:
- name: twistlock-console - name: twistlock-console
image: {{ .Values.console.image.repository }}:{{ .Values.console.image.tag }} image: {{ .Values.console.image.repository }}:{{ .Values.console.image.tag }}
resources:
{{ toYaml .Values.resources | nindent 10 }}
ports: ports:
- name: mgmt-https - name: mgmt-https
containerPort: 8083 containerPort: 8083
...@@ -47,8 +49,7 @@ spec: ...@@ -47,8 +49,7 @@ 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"
...@@ -87,3 +88,4 @@ spec: ...@@ -87,3 +88,4 @@ spec:
- name: syslog-socket - name: syslog-socket
hostPath: hostPath:
path: "/dev/log" path: "/dev/log"
...@@ -63,11 +63,11 @@ tolerations: ...@@ -63,11 +63,11 @@ tolerations:
# effect: "NoSchedule" # effect: "NoSchedule"
resources: resources:
limits: {} limits:
# memory: 256Mi memory: 1Gi
# cpu: 100m cpu: 250m
requests: {} requests:
# memory: 256Mi memory: 512Mi
# cpu: 100m cpu: 250m
openshift: false openshift: false
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