Skip to content
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

[Enhancement] Support sidecars #461

Merged

Conversation

yandongxiao
Copy link
Collaborator

@yandongxiao yandongxiao commented Mar 5, 2024

Related Issue(s)

Fixes: #411

For example, we can add a sidecar on FE/BE/CN Component.

    sidecars:
    - name: hello-world-container
      image: busybox
      command: ['sh', '-c', 'echo "Hello World From CN" && sleep 3600']
      resources:
        requests:
          memory: "6Mi"
          cpu: "25m"
        limits:
          memory: "128Mi"
          cpu: "500m"

The result is:

➜  k get pods
NAME                                       READY   STATUS    RESTARTS   AGE
kube-starrocks-be-0                        2/2     Running   0          2m1s
kube-starrocks-cn-0                        2/2     Running   0          41s
kube-starrocks-fe-0                        2/2     Running   0          2m33s
kube-starrocks-operator-6544bf4f89-gst6r   1/1     Running   0          3m2s
➜  k logs kube-starrocks-fe-0  -c hello-world-container
Hello World From FE
➜  k logs kube-starrocks-be-0  -c hello-world-container
Hello World From BE
➜  k logs kube-starrocks-cn-0  -c hello-world-container
Hello World From CN

@yandongxiao yandongxiao force-pushed the enhancement/support-sidecars branch 3 times, most recently from f7c19b2 to b31d9a8 Compare March 7, 2024 06:42
@yandongxiao yandongxiao marked this pull request as ready for review March 7, 2024 07:13
@yandongxiao yandongxiao force-pushed the enhancement/support-sidecars branch 2 times, most recently from 69d5ff0 to 7e68cc3 Compare March 14, 2024 07:52
@yandongxiao yandongxiao force-pushed the enhancement/support-sidecars branch 4 times, most recently from 872ce1f to 367ca4d Compare April 1, 2024 07:43
Signed-off-by: yandongxiao <yandongxiao@starrocks.com>
@yandongxiao yandongxiao merged commit 388c0fb into StarRocks:main Apr 1, 2024
6 checks passed
@yandongxiao yandongxiao added v1.9.5 enhancement New feature or request labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v1.9.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] Allow/enable deploying sidecar containers with FE to offload functionality
2 participants