Kevin Jo
07/18/2024, 5:26 AMvolumes or additional sidecar containers field, the BentoDeployment errors it is unknown field. Also, I would like to assign those volumes to bentoml container so I can share the image file between benotml container and other sidecar container. Is there any advice?
---
apiVersion: <http://serving.yatai.ai/v1alpha3|serving.yatai.ai/v1alpha3>
kind: BentoDeployment
metadata:
name: dashboard-scanner
namespace: yatai
spec:
annotations:
<http://yatai.ai/enable-debug-mode|yatai.ai/enable-debug-mode>: 'false'
<http://yatai.ai/enable-debug-pod-receive-production-traffic|yatai.ai/enable-debug-pod-receive-production-traffic>: 'false'
<http://yatai.ai/enable-stealing-traffic-debug-mode|yatai.ai/enable-stealing-traffic-debug-mode>: 'false'
autoscaling:
max_replicas: 1
min_replicas: 1
bento_tag: dashboard_scanner:5ljzjvseeo52gasc
envs:
- key: STAGE
value: <ENV>
- key: TRACES_SAMPLE_RATE
value: '1.0'
- key: PROFILES_SAMPLE_RATE
value: '1.0'
- key: GOOGLE_APPLICATION_CREDENTIALS
value: <GOOGLE_APPLICATION_CREDENTIALS>
- key: AWS_ACCESS_KEY_ID
value: <AWS_ACCESS_KEY_ID>
- key: AWS_SECRET_ACCESS_KEY
value: <AWS_SECRET_ACCESS_KEY>
- key: SENTRY_DSN
value: <SENTRY_DSN>
ingress: {}
extra_pod_spec:
containers:
- name: busybox-container
image: busybox
command: ["sh", "-c", "echo 'Listing contents of /tmp/temp-storage:' > /tmp/temp-storage/log.txt && ls /tmp/temp-storage >> /tmp/temp-storage/log.txt
&& cat /tmp/temp-storage/log.txt && sleep 3600"]
volumeMounts:
- mountPath: /tmp/temp-storage
name: temp-storage
volumes:
- name: temp-storage
emptyDir: {}
medium: Memory