-
Notifications
You must be signed in to change notification settings - Fork 1
/
skaffold-mongodb.yaml
49 lines (45 loc) · 1.97 KB
/
skaffold-mongodb.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
apiVersion: skaffold/v4beta9
kind: Config
metadata:
name: mongodb
deploy:
statusCheckDeadlineSeconds: 540
helm:
releases:
- name: mongodb
remoteChart: bitnami/mongodb
version: 14.4.0
createNamespace: true
namespace: fiftyone-teams
overrides:
image:
# Bitnami charts only support bitnami container images.
# The bitnami/mongo images are Debian with arch linux/amd64 only (linux/arm64 is not provided)
# because MongoDB doesn't provide Debian ARM64 packages/binaries.
# However, MongoDB provided images supports arm64.
repository: mongo
tag: "6.0.12-jammy" # mongodb.fiftyone.ai is version `6.0.11`
pullPolicy: IfNotPresent
# architecture: standalone # default is `standalone`. May also be `replicaset`.
# The `auth` key only applies to bitnami container images
# auth:
# rootUser: root # default is `root`
# # This is a randomly generated string
# rootPassword: "3-9XjJ-gUV?vp^e(WUk>LD&lAjh7yEji"
# Since we use the MongoDB image (https://hub.docker.com/_/mongo) (not the bitnami/mongo image),
# we need to set these environment variables for the initial user.
# When using the bitnami image, we would instead set `auth.rootUser` and `auth.rootPassword`.
extraEnvVars:
- name: MONGO_INITDB_ROOT_USERNAME
value: root
- name: MONGO_INITDB_ROOT_PASSWORD
# This is a randomly generated string
value: "3-9XjJ-gUV?vp^e(WUk>LD&lAjh7yEji"
persistence:
mountPath: /data/db
# Runs an init container that sets the permissions of the persistence volume.
# Without this, mongodb errors on start
# {"error":"IllegalOperation: Attempted to create a lock file on a read-only directory: /data/db"}
volumePermissions:
enabled: true