Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/sourcegraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ 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.internalRegistry.enabled | bool | `false` | Enable internal OCI registry port (5000) on frontend service |
| 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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ spec:
containerPort: 3080
- name: http-debug
containerPort: 6060
{{- if .Values.frontend.internalRegistry.enabled }}
- name: http-registry
containerPort: 5000
{{- end }}
{{- if not .Values.sourcegraph.localDevMode }}
resources:
{{- toYaml .Values.frontend.resources | nindent 10 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ spec:
- name: http-debug
port: 6060
targetPort: http-debug
{{- if .Values.frontend.internalRegistry.enabled }}
- name: http-registry
port: 5000
targetPort: http-registry
{{- end }}
selector:
{{- include "sourcegraph.selectorLabels" . | nindent 4 }}
app: sourcegraph-frontend
Expand Down
4 changes: 4 additions & 0 deletions charts/sourcegraph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ frontend:
create: true
# -- Name of the ServiceAccount to be created or an existing ServiceAccount
name: sourcegraph-frontend
# Internal registry configuration
internalRegistry:
# -- Enable internal OCI registry port (5000) on frontend service
enabled: false

migrator:
# -- Enable [migrator](https://docs.sourcegraph.com/admin/how-to/manual_database_migrations) initContainer in
Expand Down
Loading