Commit e203304
authored
feat(rel): add syntactic code intel worker service (#242)
## Description
Add SCIW service to deployment.
---
## Checklist
<!--
Kubernetes, both Kustomize and Helm, and Docker Compose MUST be kept in
sync.
You should not merge a change here without a corresponding change in the
other repositories,
unless it is specific to this deployment type. If uneeded, add link or
explanation of why it is not needed here.
-->
- [ ] Update
[CHANGELOG.md](https://github.com/sourcegraph/deploy-sourcegraph-k8s/blob/main/CHANGELOG.md)
- [ ] Update [K8s Upgrade
notes](https://github.com/sourcegraph/sourcegraph/blob/main/doc/admin/updates/kubernetes.md)
- [ ] Kustomiz-specific changes
- [ ] Update sister repository:
[deploy-sourcegraph-helm](https://github.com/sourcegraph/deploy-sourcegraph-helm)
- [ ] Update sister repository:
[deploy-sourcegraph-docker](https://github.com/sourcegraph/deploy-sourcegraph-docker)
- [ ] Verify all images have a valid tag and SHA256 sum
## Test plan
Verified service is running and healthy:
```
deploy-sourcegraph-k8s 02-18-feat_rel_add_syntactic_code_intel_worker_service * um
❯ k get pods -n ns-sourcegraph
NAME READY STATUS RESTARTS AGE
blobstore-67ddf96c55-j5qlh 1/1 Running 0 9m45s
codeinsights-db-0 2/2 Running 0 9m44s
codeintel-db-0 2/2 Running 0 9m44s
gitserver-0 1/1 Running 2 (8m2s ago) 9m44s
grafana-0 1/1 Running 0 9m44s
indexed-search-0 2/2 Running 0 9m44s
node-exporter-kbwgv 1/1 Running 0 9m44s
pgsql-0 2/2 Running 0 9m44s
precise-code-intel-worker-69c4dd7648-2dqwk 1/1 Running 1 (8m14s ago) 9m45s
prometheus-54f89f9959-dsj44 1/1 Running 0 9m45s
redis-cache-84cc945d5c-rzsbm 2/2 Running 0 9m45s
redis-store-5bbf47654b-vdjjx 2/2 Running 0 9m44s
repo-updater-bbcf9c47d-shghn 1/1 Running 5 (8m37s ago) 9m44s
searcher-0 1/1 Running 0 9m44s
sourcegraph-frontend-765565bbd5-kbvxh 1/1 Running 0 9m44s
sourcegraph-frontend-765565bbd5-l2qq7 1/1 Running 0 9m44s
symbols-0 1/1 Running 0 9m43s
syntactic-code-intel-worker-86b4558fd8-rsg9h 1/1 Running 0 3m16s
syntactic-code-intel-worker-86b4558fd8-t8wcc 1/1 Running 0 3m16s
syntect-server-767b459548-94fxl 1/1 Running 0 9m44s
worker-d4cf796b7-mwxjq 1/1 Running 0 9m44s
deploy-sourcegraph-k8s 02-18-feat_rel_add_syntactic_code_intel_worker_service * um
❯ k describe pod syntactic-code-intel-worker-86b4558fd8-rsg9h -n ns-sourcegraph
Name: syntactic-code-intel-worker-86b4558fd8-rsg9h
Namespace: ns-sourcegraph
Priority: 0
Service Account: default
Node: sourcegraph-control-plane/192.168.97.2
Start Time: Tue, 18 Feb 2025 16:24:21 -0500
Labels: app=syntactic-code-intel-worker
deploy=sourcegraph
pod-template-hash=86b4558fd8
Annotations: <none>
Status: Running
IP: 10.244.0.38
IPs:
IP: 10.244.0.38
Controlled By: ReplicaSet/syntactic-code-intel-worker-86b4558fd8
Containers:
syntactic-code-intel-worker:
Container ID: containerd://4b1942a3ef2ca9725544e76a0102e2119a873711f605e93da1dc9c3cecbfe601
Image: index.docker.io/sourcegraph/syntactic-code-intel-worker:6.0.0@sha256:50bdeb38b196f0fc21404969016bf8263f78144292e905867e93480f66c8251c
Image ID: docker.io/sourcegraph/syntactic-code-intel-worker@sha256:50bdeb38b196f0fc21404969016bf8263f78144292e905867e93480f66c8251c
Ports: 3188/TCP, 6060/TCP
Host Ports: 0/TCP, 0/TCP
State: Running
Started: Tue, 18 Feb 2025 16:24:22 -0500
Ready: True
Restart Count: 0
Limits:
cpu: 2
memory: 4G
Requests:
cpu: 100m
memory: 250M Liveness: http-get http://:debug/healthz delay=60s timeout=5s period=10s #success=1 #failure=3 Readiness: http-get http://:debug/ready delay=0s timeout=5s period=5s #success=1 #failure=3 Environment:
SYNTACTIC_CODE_INTEL_BACKEND: blobstore
SYNTACTIC_CODE_INTEL_UPLOAD_AWS_ENDPOINT: http://blobstore:9000
SYNTACTIC_CODE_INTEL_WORKER_ADDR: :3188
POD_NAME: syntactic-code-intel-worker-86b4558fd8-rsg9h (v1:metadata.name)
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-q8x7x (ro)
Conditions:
Type Status
PodReadyToStartContainers True
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
kube-api-access-q8x7x:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 3m28s default-scheduler Successfully assigned ns-sourcegraph/syntactic-code-intel-worker-86b4558fd8-rsg9h to sourcegraph-control-plane
Normal Pulled 3m27s kubelet Container image "index.docker.io/sourcegraph/syntactic-code-intel-worker:6.0.0@sha256:50bdeb38b196f0fc21404969016bf8263f78144292e905867e93480f66c8251c" already present on machine
Normal Created 3m27s kubelet Created container: syntactic-code-intel-worker
Normal Started 3m27s kubelet Started container syntactic-code-intel-worker
Warning Unhealthy 3m27s kubelet Readiness probe failed: Get "http://10.244.0.38:6060/ready": dial tcp 10.244.0.38:6060: connect: connection refused
```
<!--
As part of SOC2/GN-104 and SOC2/GN-105 requirements, all pull requests
are REQUIRED to
provide a "test plan". A test plan is a loose explanation of what you
have done or
implemented to test this, as outlined in our Testing principles and
guidelines:
https://docs.sourcegraph.com/dev/background-information/testing_principles
Write your test plan here after the "Test plan" header.
-->1 parent 9d17ecd commit e203304
4 files changed
Lines changed: 106 additions & 0 deletions
File tree
- base/sourcegraph
- syntactic-code-intel
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 77 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments