mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-14 13:25:21 +00:00
fix: remove sts
Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com>
This commit is contained in:
parent
b83dbf0654
commit
aae2ae001b
2 changed files with 8 additions and 30 deletions
|
|
@ -86,11 +86,6 @@ The open source Sourcegraph alternative. Sourcebot gives you a powerful interfac
|
||||||
| startupProbe.httpGet.path | string | `"/"` | Path to check. |
|
| startupProbe.httpGet.path | string | `"/"` | Path to check. |
|
||||||
| startupProbe.httpGet.port | string | `"http"` | Port to check. |
|
| startupProbe.httpGet.port | string | `"http"` | Port to check. |
|
||||||
| startupProbe.periodSeconds | int | `30` | Initial delay before the first probe. |
|
| startupProbe.periodSeconds | int | `30` | Initial delay before the first probe. |
|
||||||
| storage | object | `{"accessModes":["ReadWriteOnce"],"className":"","enabled":true,"size":"10Gi"}` | Configure persistent storage for the application (volume is mounted at /data) to use the internal database. |
|
|
||||||
| storage.accessModes | list | `["ReadWriteOnce"]` | Access modes for the persistent volume. |
|
|
||||||
| storage.className | string | `""` | Storage class name for the persistent volume. |
|
|
||||||
| storage.enabled | bool | `true` | Enable or disable persistent storage. |
|
|
||||||
| storage.size | string | `"10Gi"` | Size of the persistent volume. |
|
|
||||||
| tolerations | list | `[]` | Set tolerations for pod scheduling. See: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
| tolerations | list | `[]` | Set tolerations for pod scheduling. See: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
|
||||||
| volumeMounts | list | `[]` | Define volume mounts for the container. See: https://kubernetes.io/docs/concepts/storage/volumes/ |
|
| volumeMounts | list | `[]` | Define volume mounts for the container. See: https://kubernetes.io/docs/concepts/storage/volumes/ |
|
||||||
| volumes | list | `[]` | Define additional volumes. See: https://kubernetes.io/docs/concepts/storage/volumes/ |
|
| volumes | list | `[]` | Define additional volumes. See: https://kubernetes.io/docs/concepts/storage/volumes/ |
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,12 @@
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
{{- if $.Values.storage }}
|
|
||||||
kind: StatefulSet
|
|
||||||
{{- else }}
|
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
{{- end }}
|
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "sourcebot.fullname" $ }}
|
name: {{ include "sourcebot.fullname" $ }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "sourcebot.labels" $ | nindent 4 }}
|
{{- include "sourcebot.labels" $ | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
{{- if $.Values.storage }}
|
|
||||||
serviceName: {{ include "sourcebot.fullname" $ }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if not $.Values.autoscaling.enabled }}
|
|
||||||
replicas: {{ $.Values.replicaCount }}
|
replicas: {{ $.Values.replicaCount }}
|
||||||
{{- end }}
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "sourcebot.selectorLabels" $ | nindent 6 }}
|
{{- include "sourcebot.selectorLabels" $ | nindent 6 }}
|
||||||
|
|
@ -40,6 +31,10 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with $.Values.initContainers }}
|
||||||
|
initContainers:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
{{- with $.Values.containerSecurityContext }}
|
{{- with $.Values.containerSecurityContext }}
|
||||||
|
|
@ -55,6 +50,10 @@ spec:
|
||||||
args: {{ toYaml . | nindent 12 }}
|
args: {{ toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
|
{{- if and $.Values.ingress.enabled (gt len ($.Values.ingress.hosts) 0) }}
|
||||||
|
- name: AUTH_URL
|
||||||
|
value: {{ (index $.Values.ingress.hosts 0).host | printf "https://%s" }}
|
||||||
|
{{- end }}
|
||||||
- name: CONFIG_PATH
|
- name: CONFIG_PATH
|
||||||
value: /etc/sourcebot/config.json
|
value: /etc/sourcebot/config.json
|
||||||
{{- if $.Values.license }}
|
{{- if $.Values.license }}
|
||||||
|
|
@ -113,10 +112,6 @@ spec:
|
||||||
mountPath: /etc/sourcebot/config.json
|
mountPath: /etc/sourcebot/config.json
|
||||||
subPath: config.json
|
subPath: config.json
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- if $.Values.storage }}
|
|
||||||
- name: sourcebot-data
|
|
||||||
mountPath: /data
|
|
||||||
{{- end }}
|
|
||||||
{{- with $.Values.volumeMounts }}
|
{{- with $.Values.volumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -145,15 +140,3 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $.Values.storage }}
|
|
||||||
volumeClaimTemplates:
|
|
||||||
- metadata:
|
|
||||||
name: sourcebot-data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
{{- $.Values.storage.accessModes | toYaml | nindent 10 }}
|
|
||||||
storageClassName: {{ $.Values.storage.className }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ $.Values.storage.size }}
|
|
||||||
{{- end }}
|
|
||||||
Loading…
Reference in a new issue