Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

Set resource requests for hub and proxy pods #144

Merged
merged 3 commits into from
Mar 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions helm-chart/templates/hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ spec:
metadata:
labels:
name: hub-pod
{{ if .Values.hub.labels -}}
# Because toYaml + indent is super flaky
{{ range $key, $value := .Values.proxy.labels -}}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
volumes:
- name: config
Expand All @@ -117,6 +123,8 @@ spec:
- mountPath: /srv/jupyterhub
name: hub-db-dir
{{- end }}
resources:
{{ toYaml .Values.hub.resources | indent 12}}
imagePullPolicy: IfNotPresent
env:
# Put this here directly so hub will restart when we
Expand Down
8 changes: 8 additions & 0 deletions helm-chart/templates/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,18 @@ spec:
metadata:
labels:
name: proxy-pod
{{ if .Values.proxy.labels -}}
# Because toYaml + indent is super flaky
{{ range $key, $value := .Values.proxy.labels -}}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
containers:
- name: proxy-container
image: {{ .Values.proxy.image.name }}:{{ .Values.proxy.image.tag }}
resources:
{{ toYaml .Values.proxy.resources | indent 12 }}
env:
- name: CONFIGPROXY_AUTH_TOKEN
valueFrom:
Expand Down
10 changes: 10 additions & 0 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,24 @@ hub:
db:
type: sqlite-pvc
url: null
labels: null
image:
name: yuvipanda/jupyterhub-kubernetes-hub
tag: v0.2
resources:
requests:
cpu: 0.5
memory: 1Gi

proxy:
image:
name: yuvipanda/jupyterhub-kubernetes-proxy
tag: v0.1
resources:
requests:
cpu: 1
memory: 1Gi
labels: null

# Set this explicitly if you want to use a static allocated
# IP as the public LoadBalancer IP. Requires support by
Expand Down