add infra app mongodb

This commit is contained in:
2024-07-21 01:36:08 +10:00
parent fe9f2a6578
commit ce6fdb87b2
9 changed files with 113 additions and 108 deletions

View File

@@ -0,0 +1,12 @@
{
"appName": "mongodb",
"userGivenName": "mongodb",
"namespace": "mongodb",
"destNamespace": "mongodb",
"destServer": "https://kubernetes.default.svc",
"srcPath": "infrastructures/mongodb/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: mongodb
repo: oci://registry-1.docker.io/bitnamicharts
version: 15.6.14
releaseName: mongodb
valuesFile: values.yaml

View File

@@ -0,0 +1,34 @@
namespaceOverride: "mongodb"
auth:
usernames:
- edward
- anysync
databases:
- edward
- anysync
existingSecret: "mongodb-secrets"
automountServiceAccountToken: true
nodeSelector:
kubernetes.io/arch: amd64
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podSecurityContext:
fsGroup: 1000
startupProbe:
enabled: true
externalAccess:
enabled: true
service:
type: LoadBalancer
autoDiscovery:
enabled: true
persistence:
existingClaim: "mongodb-pvc"
persistentVolumeClaimRetentionPolicy:
enabled: true
serviceAccount:
create: true
name: mongodb
rbac:
create: true