adding notes, making requests defaults more basic

This commit is contained in:
EJ Etherington
2019-03-22 16:46:02 -07:00
parent ba443c3154
commit 6456c9c28c
4 changed files with 6 additions and 19 deletions

View File

@@ -2,6 +2,8 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
checksum/config: '{{ include (print $.Template.BasePath "/fairwinds.configmap.yaml") . | sha256sum }}'
labels:
app: '{{.Release.Name}}'
chart: '{{.Chart.Name}}-{{.Chart.Version}}'

View File

@@ -2,6 +2,8 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
checksum/config: '{{ include (print $.Template.BasePath "/fairwinds.configmap.yaml") . | sha256sum }}'
labels:
app: '{{.Release.Name}}'
chart: '{{.Chart.Name}}-{{.Chart.Version}}'

View File

@@ -1,15 +0,0 @@
{{- if .Values.config -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: '{{ template "fullname" . }}'
chart: '{{.Chart.Name}}-{{.Chart.Version}}'
heritage: '{{.Release.Service}}'
release: '{{.Release.Name}}'
name: '{{ template "fullname" . }}'
namespace: '{{.Release.Namespace}}'
data:
config.yml: {{- toYaml .Values.config | indent 2 -}}
{{ end }}

View File

@@ -3,11 +3,9 @@ config: |
resources:
requests:
cpu:
min: 0.1
max: 1
require: true
memory:
min: 10m
max: 2000M
require: true
limits:
cpu:
min: 0.1