Skip to content

Commit

Permalink
feat: adding resources into values
Browse files Browse the repository at this point in the history
  • Loading branch information
deimosfr committed May 6, 2018
1 parent dcc0742 commit 54989c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 1 addition & 6 deletions kubernetes/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ spec:
{{- end}}
{{ end }}
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 200m
memory: 128Mi
{{ toYaml .Values.traefikConfig.resources | indent 10 }}
ports:
- name: http
hostPort: 80
Expand Down
8 changes: 8 additions & 0 deletions kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ traefikNodeSelector:
node-role.kubernetes.io/node: "true"

traefikImageVersion: v1.6.0-rc6-alpine
traefikConfig:
resources:
limits:
cpu: 400m
memory: 256Mi
requests:
cpu: 200m
memory: 128Mi

# Traefik config
traefikConfigK8sEndpoint: "http://localhost:8080"
Expand Down

0 comments on commit 54989c8

Please sign in to comment.