From 77336bc62b29d32fc22850f0d45551018440b3d1 Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Wed, 18 Nov 2026 12:01:50 -0600 Subject: [PATCH 1/2] sourcegraph: add annotations and labels for the frontend-internal Service The sourcegraph-frontend-internal Service has always rendered frontend.serviceAnnotations and frontend.serviceLabels, the same values as the sourcegraph-frontend Service. Load balancer annotations or a service mesh label meant for the external Service therefore also landed on the internal ClusterIP Service. Add frontend.internalServiceAnnotations and frontend.internalServiceLabels. Unset, the internal Service keeps getting the frontend Service's values, so the default render and existing releases are unchanged. Set, even to {}, they replace the inherited values. Co-authored-by: Amp Amp-Thread-ID: https://ampcode.com/threads/T-01a1902b-ece9-725c-863d-3e2bba35ee1d --- charts/sourcegraph/CHANGELOG.md | 1 + charts/sourcegraph/README.md | 2 + ...sourcegraph-frontend-internal.Service.yaml | 20 ++++- .../tests/frontendInternalService_test.yaml | 87 +++++++++++++++++++ charts/sourcegraph/values.yaml | 8 ++ 5 files changed, 114 insertions(+), 4 deletions(-) create mode 100644 charts/sourcegraph/tests/frontendInternalService_test.yaml diff --git a/charts/sourcegraph/CHANGELOG.md b/charts/sourcegraph/CHANGELOG.md index fc209eee..5caa618a 100644 --- a/charts/sourcegraph/CHANGELOG.md +++ b/charts/sourcegraph/CHANGELOG.md @@ -8,6 +8,7 @@ Use `**BREAKING**:` to denote a breaking change ## Unreleased +- Added `frontend.internalServiceAnnotations` and `frontend.internalServiceLabels` to set the annotations and labels of the `sourcegraph-frontend-internal` Service separately from the `sourcegraph-frontend` Service. Unset, the internal Service keeps getting `frontend.serviceAnnotations` and `frontend.serviceLabels`, as before. Set them, e.g. to `{}`, to keep load balancer annotations or a service mesh label off the internal Service. - The `correct-data-dir-permissions` init containers of `pgsql`, `codeintel-db`, and `codeinsights-db` now run the database's own image instead of `sourcegraph/alpine-3.14`, which was based on an end-of-life Alpine release. The chart no longer pulls `alpine-3.14`, so private registries no longer need to mirror it. `alpine.image` has been removed and is ignored if set; `alpine.containerSecurityContext`, `alpine.resources`, and `codeInsightsDB.init.containerSecurityContext` still apply. - Added `storageLabels` on `blobstore`, `codeInsightsDB`, `codeIntelDB`, `pgsql`, `prometheus`, `redisCache`, and `redisStore` to label each component's PersistentVolumeClaim, and `.serviceAccount.labels` to label a component's ServiceAccount and, for `frontend` and `prometheus`, its Role, RoleBinding, ClusterRole, and ClusterRoleBinding. Also added `storageLabels` on `preciseCodeIntel` and `syntacticCodeIntel`, to label the per-pod `/tmp` scratch PersistentVolumeClaim when `storageType` is `pvc`; they default to empty, so no pod restarts. `sourcegraph.labels` and the chart's standard labels (`helm.sh/chart`, `app.kubernetes.io/name`, `app.kubernetes.io/instance`, `app.kubernetes.io/version`, `app.kubernetes.io/managed-by`) are now also rendered on these PersistentVolumeClaims, on every ServiceAccount, and on the `prometheus` RBAC objects, as they already are on every workload and on the `frontend` Role and RoleBinding, so existing releases gain these labels on upgrade. Labels on these objects can be changed in place, so nothing is recreated or restarted. See [Adopting existing workloads](README.md#adopting-existing-workloads). - Fixed the `jaeger` ServiceAccount failing to render with `jaeger.serviceAccount.create: true`. Its name and annotations were read from a `tracing` value that does not exist, and are now read from `jaeger.serviceAccount`, as the `jaeger` Deployment's `serviceAccountName` already was. diff --git a/charts/sourcegraph/README.md b/charts/sourcegraph/README.md index bc5312db..d9859acb 100644 --- a/charts/sourcegraph/README.md +++ b/charts/sourcegraph/README.md @@ -269,6 +269,8 @@ In addition to the documented values, all services also support the following va | frontend.ingress.ingressClassName | string | `nil` | IngressClassName for the Ingress (Available in Kubernetes 1.18+) If you set this field, set the annotation `frontend.ingress.annotations."kubernetes.io/ingress.class"` to `null` | | frontend.ingress.tls | list | `[]` | Full TLS configuration for the ingress. Supersedes `tlsSecret` if set. Cannot be set together with `tlsSecret`. Omit `secretName` for controllers that manage certificates themselves (e.g. Tailscale). Example: tls: - hosts: - sourcegraph.example.com secretName: sourcegraph-tls # optional | | frontend.ingress.tlsSecret | string | `""` | Secret containing TLS cert. Cannot be set together with `tls`. | +| frontend.internalServiceAnnotations | object | `frontend.serviceAnnotations` | Annotations for the `sourcegraph-frontend-internal` Service. Unset, it gets `frontend.serviceAnnotations`, like the `sourcegraph-frontend` Service. Set to `{}` for no annotations | +| frontend.internalServiceLabels | object | `frontend.serviceLabels` | Labels for the `sourcegraph-frontend-internal` Service. Unset, it gets `frontend.serviceLabels`, like the `sourcegraph-frontend` Service. Set to `{}` for no extra labels | | frontend.name | string | `"sourcegraph-frontend"` | Name used by resources. Does not affect service names or PVCs. | | frontend.podSecurityContext | object | `{}` | Security context for the `frontend` pod, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) | | frontend.privileged | bool | `true` | Enable creation of Role and RoleBinding (RBAC). Uses [view](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles) ClusterRole if set to false | diff --git a/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml b/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml index 1cf3290a..aafa03c0 100644 --- a/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml +++ b/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml @@ -1,16 +1,28 @@ +{{- /* +Unset, the internal Service gets the annotations and labels of the +sourcegraph-frontend Service. Set, even to {}, the internal values replace them. +*/ -}} +{{- $annotations := .Values.frontend.serviceAnnotations }} +{{- if not (kindIs "invalid" .Values.frontend.internalServiceAnnotations) }} +{{- $annotations = .Values.frontend.internalServiceAnnotations }} +{{- end }} +{{- $labels := .Values.frontend.serviceLabels }} +{{- if not (kindIs "invalid" .Values.frontend.internalServiceLabels) }} +{{- $labels = .Values.frontend.internalServiceLabels }} +{{- end -}} apiVersion: v1 kind: Service metadata: - {{- if .Values.frontend.serviceAnnotations }} + {{- with $annotations }} annotations: - {{- toYaml .Values.frontend.serviceAnnotations | nindent 4 }} + {{- toYaml . | nindent 4 }} {{- end }} labels: app: sourcegraph-frontend deploy: sourcegraph app.kubernetes.io/component: frontend - {{- if .Values.frontend.serviceLabels }} - {{- toYaml .Values.frontend.serviceLabels | nindent 4 }} + {{- with $labels }} + {{- toYaml . | nindent 4 }} {{- end }} name: sourcegraph-frontend-internal spec: diff --git a/charts/sourcegraph/tests/frontendInternalService_test.yaml b/charts/sourcegraph/tests/frontendInternalService_test.yaml new file mode 100644 index 00000000..e85f68f4 --- /dev/null +++ b/charts/sourcegraph/tests/frontendInternalService_test.yaml @@ -0,0 +1,87 @@ +suite: annotations and labels of the sourcegraph-frontend-internal Service +templates: +- frontend/sourcegraph-frontend.Service.yaml +- frontend/sourcegraph-frontend-internal.Service.yaml +tests: +- it: should render no annotations on the internal Service by default + template: frontend/sourcegraph-frontend-internal.Service.yaml + asserts: + - notExists: + path: metadata.annotations + - equal: + path: metadata.labels.app + value: sourcegraph-frontend + +- it: should give the internal Service the frontend Service's annotations and labels when its own are unset + template: frontend/sourcegraph-frontend-internal.Service.yaml + set: + frontend.serviceAnnotations: &serviceAnnotations + example.com/load-balancer: external + frontend.serviceLabels: &serviceLabels + example.com/mesh: enabled + asserts: + - equal: + path: metadata.annotations + value: *serviceAnnotations + - isSubset: + path: metadata.labels + content: *serviceLabels + +- it: should keep the frontend Service's annotations and labels off the internal Service when its own are empty + set: + frontend.serviceAnnotations: *serviceAnnotations + frontend.serviceLabels: *serviceLabels + frontend.internalServiceAnnotations: {} + frontend.internalServiceLabels: {} + asserts: + - notExists: + path: metadata.annotations + template: frontend/sourcegraph-frontend-internal.Service.yaml + - notExists: + path: metadata.labels["example.com/mesh"] + template: frontend/sourcegraph-frontend-internal.Service.yaml + - equal: + path: metadata.labels.app + value: sourcegraph-frontend + template: frontend/sourcegraph-frontend-internal.Service.yaml + - isSubset: + path: metadata.annotations + content: *serviceAnnotations + template: frontend/sourcegraph-frontend.Service.yaml + - isSubset: + path: metadata.labels + content: *serviceLabels + template: frontend/sourcegraph-frontend.Service.yaml + +- it: should replace the frontend Service's annotations and labels with the internal Service's own + template: frontend/sourcegraph-frontend-internal.Service.yaml + set: + frontend.serviceAnnotations: *serviceAnnotations + frontend.serviceLabels: *serviceLabels + frontend.internalServiceAnnotations: + example.com/internal: "true" + frontend.internalServiceLabels: + example.com/tier: internal + asserts: + - equal: + path: metadata.annotations + value: + example.com/internal: "true" + - equal: + path: metadata.labels["example.com/tier"] + value: internal + - notExists: + path: metadata.labels["example.com/mesh"] + +- it: should set only the internal Service's annotations and leave its labels inherited + template: frontend/sourcegraph-frontend-internal.Service.yaml + set: + frontend.serviceAnnotations: *serviceAnnotations + frontend.serviceLabels: *serviceLabels + frontend.internalServiceAnnotations: {} + asserts: + - notExists: + path: metadata.annotations + - isSubset: + path: metadata.labels + content: *serviceLabels diff --git a/charts/sourcegraph/values.yaml b/charts/sourcegraph/values.yaml index 0097fe3c..fce7dade 100644 --- a/charts/sourcegraph/values.yaml +++ b/charts/sourcegraph/values.yaml @@ -379,6 +379,14 @@ frontend: # - sourcegraph.example.com # secretName: sourcegraph-tls # optional tls: [] + # -- (object) Annotations for the `sourcegraph-frontend-internal` Service. Unset, it gets `frontend.serviceAnnotations`, + # like the `sourcegraph-frontend` Service. Set to `{}` for no annotations + # @default -- `frontend.serviceAnnotations` + internalServiceAnnotations: null + # -- (object) Labels for the `sourcegraph-frontend-internal` Service. Unset, it gets `frontend.serviceLabels`, + # like the `sourcegraph-frontend` Service. Set to `{}` for no extra labels + # @default -- `frontend.serviceLabels` + internalServiceLabels: null # -- Security context for the `frontend` container, # learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) containerSecurityContext: From 3cd2071bf5f0db8443590b701700dbaf4baa496b Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Wed, 18 Nov 2026 12:40:06 -0600 Subject: [PATCH 2/2] sourcegraph: stop the frontend-internal Service inheriting the frontend Service's values The previous commit kept frontend.serviceAnnotations and frontend.serviceLabels on the sourcegraph-frontend-internal Service unless the new internal values were set, to leave existing releases unchanged. Annotations and labels meant for the external Service were very likely never wanted on the internal one, so that fallback is not worth carrying. frontend.internalServiceAnnotations and frontend.internalServiceLabels now default to {} and are the only values the internal Service renders. frontend.serviceAnnotations and frontend.serviceLabels apply to the sourcegraph-frontend Service only. The default render is unchanged. Amp-Thread-ID: https://ampcode.com/threads/T-01a1902b-ece9-725c-863d-3e2bba35ee1d Co-authored-by: Amp --- charts/sourcegraph/CHANGELOG.md | 2 +- charts/sourcegraph/README.md | 4 +- ...sourcegraph-frontend-internal.Service.yaml | 16 +---- .../tests/frontendInternalService_test.yaml | 58 +++++-------------- charts/sourcegraph/values.yaml | 14 ++--- 5 files changed, 25 insertions(+), 69 deletions(-) diff --git a/charts/sourcegraph/CHANGELOG.md b/charts/sourcegraph/CHANGELOG.md index 5caa618a..cb6d00a3 100644 --- a/charts/sourcegraph/CHANGELOG.md +++ b/charts/sourcegraph/CHANGELOG.md @@ -8,7 +8,7 @@ Use `**BREAKING**:` to denote a breaking change ## Unreleased -- Added `frontend.internalServiceAnnotations` and `frontend.internalServiceLabels` to set the annotations and labels of the `sourcegraph-frontend-internal` Service separately from the `sourcegraph-frontend` Service. Unset, the internal Service keeps getting `frontend.serviceAnnotations` and `frontend.serviceLabels`, as before. Set them, e.g. to `{}`, to keep load balancer annotations or a service mesh label off the internal Service. +- Added `frontend.internalServiceAnnotations` and `frontend.internalServiceLabels` for the `sourcegraph-frontend-internal` Service. That Service no longer renders `frontend.serviceAnnotations` and `frontend.serviceLabels`, which now apply to the `sourcegraph-frontend` Service only, so load balancer annotations or a service mesh label set for the external Service no longer land on the internal one. If you relied on them on the internal Service, set the new values. - The `correct-data-dir-permissions` init containers of `pgsql`, `codeintel-db`, and `codeinsights-db` now run the database's own image instead of `sourcegraph/alpine-3.14`, which was based on an end-of-life Alpine release. The chart no longer pulls `alpine-3.14`, so private registries no longer need to mirror it. `alpine.image` has been removed and is ignored if set; `alpine.containerSecurityContext`, `alpine.resources`, and `codeInsightsDB.init.containerSecurityContext` still apply. - Added `storageLabels` on `blobstore`, `codeInsightsDB`, `codeIntelDB`, `pgsql`, `prometheus`, `redisCache`, and `redisStore` to label each component's PersistentVolumeClaim, and `.serviceAccount.labels` to label a component's ServiceAccount and, for `frontend` and `prometheus`, its Role, RoleBinding, ClusterRole, and ClusterRoleBinding. Also added `storageLabels` on `preciseCodeIntel` and `syntacticCodeIntel`, to label the per-pod `/tmp` scratch PersistentVolumeClaim when `storageType` is `pvc`; they default to empty, so no pod restarts. `sourcegraph.labels` and the chart's standard labels (`helm.sh/chart`, `app.kubernetes.io/name`, `app.kubernetes.io/instance`, `app.kubernetes.io/version`, `app.kubernetes.io/managed-by`) are now also rendered on these PersistentVolumeClaims, on every ServiceAccount, and on the `prometheus` RBAC objects, as they already are on every workload and on the `frontend` Role and RoleBinding, so existing releases gain these labels on upgrade. Labels on these objects can be changed in place, so nothing is recreated or restarted. See [Adopting existing workloads](README.md#adopting-existing-workloads). - Fixed the `jaeger` ServiceAccount failing to render with `jaeger.serviceAccount.create: true`. Its name and annotations were read from a `tracing` value that does not exist, and are now read from `jaeger.serviceAccount`, as the `jaeger` Deployment's `serviceAccountName` already was. diff --git a/charts/sourcegraph/README.md b/charts/sourcegraph/README.md index d9859acb..b4058879 100644 --- a/charts/sourcegraph/README.md +++ b/charts/sourcegraph/README.md @@ -269,8 +269,8 @@ In addition to the documented values, all services also support the following va | frontend.ingress.ingressClassName | string | `nil` | IngressClassName for the Ingress (Available in Kubernetes 1.18+) If you set this field, set the annotation `frontend.ingress.annotations."kubernetes.io/ingress.class"` to `null` | | frontend.ingress.tls | list | `[]` | Full TLS configuration for the ingress. Supersedes `tlsSecret` if set. Cannot be set together with `tlsSecret`. Omit `secretName` for controllers that manage certificates themselves (e.g. Tailscale). Example: tls: - hosts: - sourcegraph.example.com secretName: sourcegraph-tls # optional | | frontend.ingress.tlsSecret | string | `""` | Secret containing TLS cert. Cannot be set together with `tls`. | -| frontend.internalServiceAnnotations | object | `frontend.serviceAnnotations` | Annotations for the `sourcegraph-frontend-internal` Service. Unset, it gets `frontend.serviceAnnotations`, like the `sourcegraph-frontend` Service. Set to `{}` for no annotations | -| frontend.internalServiceLabels | object | `frontend.serviceLabels` | Labels for the `sourcegraph-frontend-internal` Service. Unset, it gets `frontend.serviceLabels`, like the `sourcegraph-frontend` Service. Set to `{}` for no extra labels | +| frontend.internalServiceAnnotations | object | `{}` | Annotations for the `sourcegraph-frontend-internal` Service. `frontend.serviceAnnotations` is for the `sourcegraph-frontend` Service only | +| frontend.internalServiceLabels | object | `{}` | Labels for the `sourcegraph-frontend-internal` Service. `frontend.serviceLabels` is for the `sourcegraph-frontend` Service only | | frontend.name | string | `"sourcegraph-frontend"` | Name used by resources. Does not affect service names or PVCs. | | frontend.podSecurityContext | object | `{}` | Security context for the `frontend` pod, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) | | frontend.privileged | bool | `true` | Enable creation of Role and RoleBinding (RBAC). Uses [view](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles) ClusterRole if set to false | diff --git a/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml b/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml index aafa03c0..c0ba844b 100644 --- a/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml +++ b/charts/sourcegraph/templates/frontend/sourcegraph-frontend-internal.Service.yaml @@ -1,19 +1,7 @@ -{{- /* -Unset, the internal Service gets the annotations and labels of the -sourcegraph-frontend Service. Set, even to {}, the internal values replace them. -*/ -}} -{{- $annotations := .Values.frontend.serviceAnnotations }} -{{- if not (kindIs "invalid" .Values.frontend.internalServiceAnnotations) }} -{{- $annotations = .Values.frontend.internalServiceAnnotations }} -{{- end }} -{{- $labels := .Values.frontend.serviceLabels }} -{{- if not (kindIs "invalid" .Values.frontend.internalServiceLabels) }} -{{- $labels = .Values.frontend.internalServiceLabels }} -{{- end -}} apiVersion: v1 kind: Service metadata: - {{- with $annotations }} + {{- with .Values.frontend.internalServiceAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} @@ -21,7 +9,7 @@ metadata: app: sourcegraph-frontend deploy: sourcegraph app.kubernetes.io/component: frontend - {{- with $labels }} + {{- with .Values.frontend.internalServiceLabels }} {{- toYaml . | nindent 4 }} {{- end }} name: sourcegraph-frontend-internal diff --git a/charts/sourcegraph/tests/frontendInternalService_test.yaml b/charts/sourcegraph/tests/frontendInternalService_test.yaml index e85f68f4..289129ae 100644 --- a/charts/sourcegraph/tests/frontendInternalService_test.yaml +++ b/charts/sourcegraph/tests/frontendInternalService_test.yaml @@ -12,38 +12,19 @@ tests: path: metadata.labels.app value: sourcegraph-frontend -- it: should give the internal Service the frontend Service's annotations and labels when its own are unset - template: frontend/sourcegraph-frontend-internal.Service.yaml +- it: should keep the frontend Service's annotations and labels off the internal Service set: frontend.serviceAnnotations: &serviceAnnotations example.com/load-balancer: external frontend.serviceLabels: &serviceLabels example.com/mesh: enabled asserts: - - equal: - path: metadata.annotations - value: *serviceAnnotations - - isSubset: - path: metadata.labels - content: *serviceLabels - -- it: should keep the frontend Service's annotations and labels off the internal Service when its own are empty - set: - frontend.serviceAnnotations: *serviceAnnotations - frontend.serviceLabels: *serviceLabels - frontend.internalServiceAnnotations: {} - frontend.internalServiceLabels: {} - asserts: - notExists: path: metadata.annotations template: frontend/sourcegraph-frontend-internal.Service.yaml - notExists: path: metadata.labels["example.com/mesh"] template: frontend/sourcegraph-frontend-internal.Service.yaml - - equal: - path: metadata.labels.app - value: sourcegraph-frontend - template: frontend/sourcegraph-frontend-internal.Service.yaml - isSubset: path: metadata.annotations content: *serviceAnnotations @@ -53,35 +34,24 @@ tests: content: *serviceLabels template: frontend/sourcegraph-frontend.Service.yaml -- it: should replace the frontend Service's annotations and labels with the internal Service's own - template: frontend/sourcegraph-frontend-internal.Service.yaml +- it: should render the internal Service's own annotations and labels, and keep them off the frontend Service set: - frontend.serviceAnnotations: *serviceAnnotations - frontend.serviceLabels: *serviceLabels - frontend.internalServiceAnnotations: + frontend.internalServiceAnnotations: &internalServiceAnnotations example.com/internal: "true" - frontend.internalServiceLabels: + frontend.internalServiceLabels: &internalServiceLabels example.com/tier: internal asserts: - equal: path: metadata.annotations - value: - example.com/internal: "true" - - equal: - path: metadata.labels["example.com/tier"] - value: internal - - notExists: - path: metadata.labels["example.com/mesh"] - -- it: should set only the internal Service's annotations and leave its labels inherited - template: frontend/sourcegraph-frontend-internal.Service.yaml - set: - frontend.serviceAnnotations: *serviceAnnotations - frontend.serviceLabels: *serviceLabels - frontend.internalServiceAnnotations: {} - asserts: - - notExists: - path: metadata.annotations + value: *internalServiceAnnotations + template: frontend/sourcegraph-frontend-internal.Service.yaml - isSubset: path: metadata.labels - content: *serviceLabels + content: *internalServiceLabels + template: frontend/sourcegraph-frontend-internal.Service.yaml + - notExists: + path: metadata.annotations["example.com/internal"] + template: frontend/sourcegraph-frontend.Service.yaml + - notExists: + path: metadata.labels["example.com/tier"] + template: frontend/sourcegraph-frontend.Service.yaml diff --git a/charts/sourcegraph/values.yaml b/charts/sourcegraph/values.yaml index fce7dade..8b68e6b4 100644 --- a/charts/sourcegraph/values.yaml +++ b/charts/sourcegraph/values.yaml @@ -379,14 +379,12 @@ frontend: # - sourcegraph.example.com # secretName: sourcegraph-tls # optional tls: [] - # -- (object) Annotations for the `sourcegraph-frontend-internal` Service. Unset, it gets `frontend.serviceAnnotations`, - # like the `sourcegraph-frontend` Service. Set to `{}` for no annotations - # @default -- `frontend.serviceAnnotations` - internalServiceAnnotations: null - # -- (object) Labels for the `sourcegraph-frontend-internal` Service. Unset, it gets `frontend.serviceLabels`, - # like the `sourcegraph-frontend` Service. Set to `{}` for no extra labels - # @default -- `frontend.serviceLabels` - internalServiceLabels: null + # -- Annotations for the `sourcegraph-frontend-internal` Service. + # `frontend.serviceAnnotations` is for the `sourcegraph-frontend` Service only + internalServiceAnnotations: {} + # -- Labels for the `sourcegraph-frontend-internal` Service. + # `frontend.serviceLabels` is for the `sourcegraph-frontend` Service only + internalServiceLabels: {} # -- Security context for the `frontend` container, # learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) containerSecurityContext: