Repository navigation
executors: Document scaling native Kubernetes executors across pods and nodes - #2182
Draft
marcleblanc2 wants to merge 4 commits into
Draft
marcleblanc2 wants to merge 4 commits into
marcleblanc2 wants to merge 4 commits into
Conversation
…nd nodes The page said to run one executor per deployment and never add replicas, and that the executor clones repositories into a shared workspace; both date from the removed multi-pod job mode. Describe how job pods clone their own workspace, add the Secret permission, explain scaling with replicas, the Kubernetes API client limit, and job ephemeral-storage requests, and list the Kubernetes settings that cap job pods per node. Add the new executor settings to the configuration reference and remove EXECUTOR_KUBERNETES_PERSISTENCE_VOLUME_NAME. Amp-Thread-ID: https://ampcode.com/threads/T-01a20ade-0ba8-7364-b673-ac2197c102c9 Co-authored-by: Amp <amp@ampcode.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Contributor
Amp-Thread-ID: https://ampcode.com/threads/T-01a20ade-0ba8-7364-b673-ac2197c102c9 Co-authored-by: Amp <amp@ampcode.com>
…pods On the EKS test cluster, a ResourceQuota held job pods back with 'exceeded quota' while their jobs kept executor slots, and a namespace enforcing the restricted Pod Security Standard rejected the executor and job pods until they set security contexts. Also documents the two job security context variables the executor already reads. Amp-Thread-ID: https://ampcode.com/threads/T-01a20ade-0ba8-7364-b673-ac2197c102c9 Co-authored-by: Amp <amp@ampcode.com>
…y contexts Amp-Thread-ID: https://ampcode.com/threads/T-01a20ade-0ba8-7364-b673-ac2197c102c9 Co-authored-by: Amp <amp@ampcode.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The native Kubernetes executor pages say to run one executor per deployment and never add replicas, and that the executor clones repositories into a shared workspace. Both date from the removed multi-pod job mode. Today:
SKIP LOCKEDSo several executor pods can serve the same queues.
Solution
deploy-executors-kubernetes.mdx:secretspermission to the RBAC table.maximumNumJobsmaxPods, pod IP addresses (VPC CNI), requests, image pulls, API Priority and Fairness,ResourceQuotawith the Job controller's retry delay, and therestrictedPod Security Standardexecutors-config.mdx:EXECUTOR_KUBERNETES_CLIENT_QPS/_BURSTandEXECUTOR_KUBERNETES_RESOURCE_{REQUEST,LIMIT}_EPHEMERAL_STORAGE.KUBERNETES_EXECUTOR_POD_SECURITY_CONTEXTandKUBERNETES_EXECUTOR_CONTAINER_SECURITY_CONTEXT, which the executor already reads.EXECUTOR_KUBERNETES_PERSISTENCE_VOLUME_NAME.Merge timing
This documents behavior from unreleased PRs. Merge it after they ship:
executor.replicas,kubernetesClient,ephemeralStorage, job security contexts, and YAML-list tolerations and affinityAmp threads