|
32 | 32 | # DEID_REDACT: true |
33 | 33 |
|
34 | 34 | # Set SERVER_GUNICORN_MAX_REQUESTS to a high number instead of the default 1000. Trust k8s instead to restart pod when needed. |
35 | | - SERVER_GUNICORN_MAX_REQUESTS: 1000000 |
| 35 | + SERVER_GUNICORN_MAX_REQUESTS: 100000 |
36 | 36 |
|
37 | 37 | # Recommended env vars to set to try to limit to 1 CPU for scaling |
38 | 38 | # OMP_NUM_THREADS: "1" |
|
44 | 44 | # PYTORCH_ENABLE_MPS_FALLBACK: "1" |
45 | 45 | # SERVER_GUNICORN_EXTRA_ARGS: "--worker-connections 1 --backlog 1" |
46 | 46 |
|
| 47 | + # Observability Env Vars |
| 48 | + APP_ENABLE_METRICS: true |
| 49 | + APP_ENABLE_TRACING: false |
| 50 | + OTEL_EXPORTER_OTLP_ENDPOINT: "http://<unused>:4317" |
| 51 | + OTEL_SERVICE_NAME: "medcat-service" |
| 52 | + OTEL_TRACES_EXPORTER: "otlp" |
| 53 | + OTEL_EXPORTER_OTLP_PROTOCOL: "grpc" |
| 54 | + OTEL_EXPERIMENTAL_RESOURCE_DETECTORS: "containerid,os" |
| 55 | + OTEL_RESOURCE_ATTRIBUTES: "k8s.pod.uid=$(K8S_POD_UID),k8s.pod.name=$(K8S_POD_NAME),k8s.namespace.name=$(K8S_POD_NAMESPACE),k8s.node.name=$(K8S_NODE_NAME)" |
| 56 | + |
47 | 57 | # Enable downloading of public models using wget on startup. Model will be downloaded to /models/<name> and used for APP_MEDCAT_MODEL_PACK |
48 | 58 | model: {} |
49 | 59 | # Public URL to download a model pack from |
50 | 60 | # downloadUrl: "http://localhost:9000/models/my-model.zip" |
51 | 61 | # Name of the model pack to save to. Will be stored at /models/<name> |
52 | 62 | # name: my-model.zip |
53 | 63 |
|
| 64 | + |
| 65 | +# Allow setting env values from field/configmap/secret references. Defaults to include k8s details f |
| 66 | +envValueFrom: |
| 67 | + K8S_NODE_NAME: |
| 68 | + fieldRef: |
| 69 | + fieldPath: spec.nodeName |
| 70 | + K8S_POD_NAME: |
| 71 | + fieldRef: |
| 72 | + fieldPath: metadata.name |
| 73 | + K8S_POD_UID: |
| 74 | + fieldRef: |
| 75 | + fieldPath: metadata.uid |
| 76 | + K8S_POD_NAMESPACE: |
| 77 | + fieldRef: |
| 78 | + fieldPath: metadata.namespace |
| 79 | + |
| 80 | + |
54 | 81 | # This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ |
55 | 82 | imagePullSecrets: [] |
56 | 83 | # This is to override the chart name. |
|
0 commit comments