Skip to content

Commit

Permalink
Merge pull request #3590 from jshmchenxi/add-extra-pod-spec-user-plac…
Browse files Browse the repository at this point in the history
…eholder

Support extra pod spec for user placeholder pods
  • Loading branch information
consideRatio authored Dec 17, 2024
2 parents c508dc9 + adf2321 commit 262097b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,7 @@ spec:
securityContext:
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- with .Values.scheduling.userPlaceholder.extraPodSpec }}
{{- . | toYaml | nindent 6 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions jupyterhub/values.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,7 @@ properties:
2. proxy.chp.extraPodSpec
3. proxy.traefik.extraPodSpec
4. scheduling.userScheduler.extraPodSpec
5. scheduling.userPlaceholder.extraPodSpec
One real-world use of these settings is to enable host networking. For
example, to configure host networking for the hub pod, add the
Expand Down Expand Up @@ -2648,6 +2649,7 @@ properties:
Unless specified here, the placeholder pods will request the same
resources specified for the real singleuser pods.
containerSecurityContext: *containerSecurityContext-spec
extraPodSpec: *extraPodSpec-spec
corePods:
type: object
additionalProperties: false
Expand Down
1 change: 1 addition & 0 deletions jupyterhub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ scheduling:
seccompProfile:
type: "RuntimeDefault"
resources: {}
extraPodSpec: {}
corePods:
tolerations:
- key: hub.jupyter.org/dedicated
Expand Down
8 changes: 8 additions & 0 deletions tools/templates/lint-and-validate-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,14 @@ scheduling:
revisionHistoryLimit: 1
replicas: 1
resources: *resources
extraPodSpec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
foo: bar
corePods:
tolerations:
- key: mock-taint-key-corePods
Expand Down

0 comments on commit 262097b

Please sign in to comment.