-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executors: add native k8s executors #279
Conversation
Here's an example I created a dedicated node with the label executor:
queueName: batches
nodeSelector:
sourcegraph-executors: "true"
env:
EXECUTOR_FRONTEND_URL:
value: "http://sourcegraph-frontend:30080"
# -- The shared secret configured in the Sourcegraph instance site config under executors.accessToken. Required.
EXECUTOR_FRONTEND_PASSWORD:
value: "hunter2hunter2hunter2hunter2"
# -- The name of the queue to pull jobs from to. Possible values: batches and codeintel. Required.
EXECUTOR_QUEUE_NAME:
value: "batches"
EXECUTOR_MAXIMUM_NUM_JOBS:
value: "10"
SRC_LOG_LEVEL:
value: info
SRC_LOG_FORMAT:
value: condensed
SRC_TRACE_LOG:
value: "false"
EXECUTOR_KUBERNETES_RESOURCE_REQUEST_MEMORY:
value: 1Gi
# For local deployments the host is 'host.docker.internal' and this needs to be true
EXECUTOR_DOCKER_ADD_HOST_GATEWAY:
value: "false"
# Useful for debugging.
EXECUTOR_KUBERNETES_NAMESPACE:
value: sourcegraph
KUBERNETES_KEEP_JOBS:
value: "true"
EXECUTOR_KEEP_WORKSPACES:
value: "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall makes sense (first time I am seeing this syntax). The only change is that we do not need the private docker registry for the native k8s options. Since that doesn't do anything with docker directly but relies on kubernetes to do the creating of pods/containers
charts/sourcegraph-executor/k8s/templates/docker-daemon.ConfigMap.yaml
Outdated
Show resolved
Hide resolved
charts/sourcegraph-executor/k8s/templates/executor.Deployment.yaml
Outdated
Show resolved
Hide resolved
charts/sourcegraph-executor/k8s/templates/executor.Deployment.yaml
Outdated
Show resolved
Hide resolved
charts/sourcegraph-executor/k8s/templates/executor.Rolebinding.yaml
Outdated
Show resolved
Hide resolved
charts/sourcegraph-executor/k8s/templates/private-docker-registry.Deployment.yaml
Outdated
Show resolved
Hide resolved
charts/sourcegraph-executor/k8s/templates/private-docker-registry.PersistentVolumeClaim.yaml
Outdated
Show resolved
Hide resolved
charts/sourcegraph-executor/k8s/templates/private-docker-registry.Service.yaml
Outdated
Show resolved
Hide resolved
@Piszmog resolved the issues, I think it's a-okay for merging now |
Hey @sanderginn
Additionally in this PR both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one more minor change
@jac thanks for that catch 👍 I've also changed the names of the charts. I've suffixed them with the implementation. This means that the |
I'm not sure how many customers have it deployed either. |
👍 thanks. Added a changelog |
Description
This PR adds a chart for deploying native k8s executors. It also polishes the dind implementation.
Checklist
Test plan