diff --git a/charts/sourcegraph/README.md b/charts/sourcegraph/README.md index a5f49939..71366579 100644 --- a/charts/sourcegraph/README.md +++ b/charts/sourcegraph/README.md @@ -265,7 +265,7 @@ In addition to the documented values, all services also support the following va | prometheus.serviceAccount.name | string | `"prometheus"` | Name of the ServiceAccount to be created or an existing ServiceAccount | | prometheus.storageSize | string | `"200Gi"` | PVC Storage Request for `prometheus` data volume | | qdrant.config | object | `{"debug":true,"log_level":"INFO"}` | Resource requests & limits for the `qdrant` container, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) | -| qdrant.containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"fsGroup":101,"runAsGroup":101,"runAsUser":100}` | Security context for the `qdrant` container, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) | +| qdrant.containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"runAsGroup":101,"runAsUser":100}` | Security context for the `qdrant` container, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) | | qdrant.enabled | bool | `false` | Enable `qdrant` | | qdrant.env | object | `{}` | Environment variables for the `qdrant` container | | qdrant.extraVolumeMounts | object | `{}` | | diff --git a/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml b/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml index 9d5443bb..6754facf 100644 --- a/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml +++ b/charts/sourcegraph/templates/qdrant/qdrant.StatefulSet.yaml @@ -20,8 +20,9 @@ spec: matchLabels: {{- include "sourcegraph.selectorLabels" . | nindent 6 }} app: {{ .Values.qdrant.name }} - strategy: - type: Recreate + serviceName: qdrant + updateStrategy: + type: RollingUpdate template: metadata: annotations: diff --git a/charts/sourcegraph/values.yaml b/charts/sourcegraph/values.yaml index bcc9d73d..023c8896 100644 --- a/charts/sourcegraph/values.yaml +++ b/charts/sourcegraph/values.yaml @@ -352,7 +352,6 @@ qdrant: allowPrivilegeEscalation: false runAsUser: 100 runAsGroup: 101 - fsGroup: 101 # -- Security context for the `qdrant` container, # learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) podSecurityContext: diff --git a/override.yaml b/override.yaml new file mode 100644 index 00000000..d20bad63 --- /dev/null +++ b/override.yaml @@ -0,0 +1,30 @@ +# Disable SC creation +storageClass: + create: true + name: standard + provisioner: docker.io/hostpath + parameters: + reclaimPolicy: Retain + + +# Disable resources requests/limits +sourcegraph: + localDevMode: true + image: + defaultTag: insiders + useGlobalTagAsDefault: true +# More values to be added in order to test your change + +qdrant: + enabled: true + +gitserver: + env: + SRC_REPOS_DESIRED_PERCENT_FREE: + value: "0" + +frontend: + env: + QDRANT_ENDPOINT: + value: "qdrant:6334" +