Skip to content

Commit

Permalink
mongodb arm64 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsun0720 authored Jan 15, 2024
1 parent 05feae1 commit a988aa6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 29 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ helm delete <your-realease-name>
To get the more details of using helm to deploy or maintain your featbit release in the k8s, please refer to
Helm's [documentation](https://helm.sh/docs)

Note that if your device is based on the arm64 architecture, please use version 0.2.1 and above.

## Expose self-hosted deployment

To use FeatBit, three services must be exposed from the internal network of Kubernetes:
Expand Down
8 changes: 4 additions & 4 deletions charts/featbit/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies:
- name: mongodb
repository: https://charts.bitnami.com/bitnami
version: 13.0.0
repository: https://groundhog2k.github.io/helm-charts/
version: 0.6.2
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 17.0.1
Expand All @@ -11,5 +11,5 @@ dependencies:
- name: clickhouse
repository: https://charts.bitnami.com/bitnami
version: 3.6.8
digest: sha256:5216820a0c78b79a1baed297e1c0c0d76ad528fa22ff41d4fd44d109da552ce7
generated: "2023-11-15T16:05:25.343071+01:00"
digest: sha256:53402193e59d5eeadc35e1066896671269bea829e0e969ac372befcabf740620
generated: "2024-01-15T22:12:19.83632+01:00"
6 changes: 3 additions & 3 deletions charts/featbit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.0
version: 0.2.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand All @@ -32,8 +32,8 @@ sources:

dependencies:
- name: mongodb
version: 13.0.0
repository: https://charts.bitnami.com/bitnami
version: 0.6.2
repository: https://groundhog2k.github.io/helm-charts/
condition: mongodb.enabled
- name: redis
version: 17.0.1
Expand Down
4 changes: 2 additions & 2 deletions charts/featbit/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Return the Mongodb host

{{- define "featbit.mongodb.port" -}}
{{- if .Values.mongodb.enabled -}}
{{- .Values.mongodb.service.ports.mongodb -}}
{{- .Values.mongodb.service.port -}}
{{- end -}}
{{- end -}}

Expand All @@ -149,7 +149,7 @@ Return the Mongodb host

{{- define "featbit.mongodb.connStr" -}}
{{- if .Values.mongodb.enabled -}}
{{- printf "mongodb://%s:%s@%s:%s" .Values.mongodb.auth.rootUser .Values.mongodb.auth.rootPassword (include "featbit.mongodb.host" .) (include "featbit.mongodb.port" .) -}}
{{- printf "mongodb://%s:%s@%s:%s" .Values.mongodb.settings.rootUsername .Values.mongodb.settings.rootPassword (include "featbit.mongodb.host" .) (include "featbit.mongodb.port" .) -}}
{{- else if (not .Values.externalMongodb.existingSecret) -}}
{{- required "You need to provide a full connection string when using external mongodb" .Values.externalMongodb.fullConnectionString | printf "%s" -}}
{{- end -}}
Expand Down
32 changes: 12 additions & 20 deletions charts/featbit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -415,29 +415,21 @@ mongodb:
nameOverride: "featbit-mongodb"
fullnameOverride: ""

architecture: standalone
useStatefulSet: true

initdbScriptsConfigMap: featbit-mongodb-init-scripts-configmap

image:
registry: docker.io

auth:
# -- Enable Mongodb password authentication.
enabled: true

# -- Mongodb root user.
rootUser: "admin"
extraScripts: featbit-mongodb-init-scripts-configmap

# -- Mongodb root password.
# NOTE: ignored unless `mongodb.auth.enabled` is `true` or if `mongodb.auth.existingSecret` is set.
#
settings:
## The root username
rootUsername: "admin"
## The root user password
rootPassword: "password"

persistence:
enabled: true
size: 8Gi
userDatabase:
name: "featbit"
user: "featbit"
password: "featbit"

storage:
requestedSize: 8Gi

externalMongodb:
fullConnectionString: ""
Expand Down

0 comments on commit a988aa6

Please sign in to comment.