-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(k8s): Add a k8s for the taskworker deployment (#114)
This adds a k8s file for deploying the taskworker image. It also makes a few QoL improvements: - Replace SimpleTaskWorker with ConfigurableTaskWorker - Add more logging to the worker - Add a backoff to the worker, so that if there are no messages it doesn't spam logs - Update the taskbroker image - Fix a bug in the worker where it wouldn't process tasks fetched in the update
- Loading branch information
Showing
5 changed files
with
53 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: taskworker | ||
labels: | ||
app: taskworker | ||
spec: | ||
replicas: 8 | ||
selector: | ||
matchLabels: | ||
app: taskworker | ||
template: | ||
metadata: | ||
labels: | ||
app: taskworker | ||
spec: | ||
containers: | ||
- name: taskworker-container | ||
image: us-central1-docker.pkg.dev/sentryio/taskworker/image@sha256:3ba1c93419eb1cb2a6fc40028f6fac1085b7d5d9956aaae1d9f7b827a5de9291 | ||
env: | ||
- name: SENTRY_TASKWORKER_GRPC_HOST | ||
value: "taskbroker-service" | ||
- name: SENTRY_TASKWORKER_GRPC_PORT | ||
value: "50051" | ||
- name: SENTRY_TASKWORKER_NAMESPACE | ||
value: "test" | ||
- name: SENTRY_TASKWORKER_FAILURE_RATE | ||
value: "0.0" | ||
- name: SENTRY_TASKWORKER_TIMEOUT_RATE | ||
value: "0.0" | ||
ports: | ||
- containerPort: 8686 |
This file contains 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
This file contains 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
This file contains 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