Skip to content

Commit

Permalink
enterprise-gateway affinity setting (spotinst#15)
Browse files Browse the repository at this point in the history
adds an affinity value that can be overridden by user to control enterprise-gateway placement
  • Loading branch information
Nate Franzen authored Mar 12, 2021
1 parent be03455 commit 5c964a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/enterprise-gateway/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: enterprise-gateway
description: A helm chart to deploy Jupyter Enterprise Gateway
version: 2.4.0
version: 2.5.0
apiVersion: v1
icon: https://avatars1.githubusercontent.com/u/7388996?s=200&v=4
home: https://jupyter.org/enterprise_gateway
Expand Down
2 changes: 2 additions & 0 deletions charts/enterprise-gateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
app: enterprise-gateway
component: enterprise-gateway
spec:
affinity:
{{- .Values.affinity | toYaml | nindent 8 }}
# Created by this chart.
serviceAccountName: enterprise-gateway-sa
{{- if .Values.kernelspecs.image }}
Expand Down
3 changes: 3 additions & 0 deletions charts/enterprise-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ mirrorWorkingDirs: false
k8sMasterPublicIP:
# create and require a secret token, supplied by client in an "Authorization: token" header
authTokenEnabled: true
# node affinity
affinity: {}

kernel:
# Kernel cluster role created by this chart.
Expand All @@ -39,6 +41,7 @@ kernel:
# kernel service account name
serviceAccount: kernel-sa


kernelspecs:
# Optional custom data image containing kernelspecs to use.
image:
Expand Down

0 comments on commit 5c964a4

Please sign in to comment.