From ee0c10ede42a55bebccd35e7e0d3aa9721fcc06e Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sun, 16 Nov 2025 22:14:07 +0100 Subject: [PATCH] Remove Kubernetes MongoDB deployment manifests --- .../namespaces/databases/mongodb/README.md | 22 -------- .../databases/mongodb/deployment.yaml | 47 ------------------ .../namespaces/databases/mongodb/secrets.yaml | Bin 265 -> 0 bytes .../namespaces/databases/mongodb/service.yaml | 10 ---- .../namespaces/databases/mongodb/volume.yaml | 14 ------ 5 files changed, 93 deletions(-) delete mode 100644 kubernetes/namespaces/databases/mongodb/README.md delete mode 100644 kubernetes/namespaces/databases/mongodb/deployment.yaml delete mode 100644 kubernetes/namespaces/databases/mongodb/secrets.yaml delete mode 100644 kubernetes/namespaces/databases/mongodb/service.yaml delete mode 100644 kubernetes/namespaces/databases/mongodb/volume.yaml diff --git a/kubernetes/namespaces/databases/mongodb/README.md b/kubernetes/namespaces/databases/mongodb/README.md deleted file mode 100644 index be074976..00000000 --- a/kubernetes/namespaces/databases/mongodb/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# Python Discord MongoDB -This folder contains the configuration for Python Discord's MongoDB instance. - -## Volume -A 10Gi volume is provisioned on the Linode Block Storage (Retain) storage class. - -## Secrets -| Key | Value | Description | -| ---------------------------- | -------------------------- | ------------------------------- | -| `MONGO_INITDB_ROOT_USERNAME` | `pythondiscord` | Username of root user | -| `MONGO_INITDB_ROOT_PASSWORD` | Root password for database | Password for the root user | - - -## Deployment -The deployment will pull the `mongo:latest` image from DockerHub. - -It will mount the created volume at `/data/db`. - -It will expose port `27017` to connect to MongoDB. - -## Service -A service called `mongodb` will be created to give the deployment a cluster local DNS record of `mongodb.databases.svc.cluster.local`. diff --git a/kubernetes/namespaces/databases/mongodb/deployment.yaml b/kubernetes/namespaces/databases/mongodb/deployment.yaml deleted file mode 100644 index a4cb76ff..00000000 --- a/kubernetes/namespaces/databases/mongodb/deployment.yaml +++ /dev/null @@ -1,47 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: mongodb - namespace: databases -spec: - replicas: 1 - strategy: - type: Recreate - selector: - matchLabels: - app: mongodb - template: - metadata: - labels: - app: mongodb - spec: - containers: - - name: mongodb - image: mongo:4.4 - imagePullPolicy: Always - ports: - - containerPort: 27017 - resources: - requests: - cpu: 100m - memory: 500Mi - limits: - cpu: 200m - memory: 900Mi - volumeMounts: - - mountPath: /data/db - name: mongodb-volume - - mountPath: /tmp - name: mongo-temp - envFrom: - - secretRef: - name: mongo-credentials - securityContext: - readOnlyRootFilesystem: true - volumes: - - name: mongodb-volume - persistentVolumeClaim: - claimName: mongodb-storage - - name: mongo-temp - emptyDir: - medium: Memory diff --git a/kubernetes/namespaces/databases/mongodb/secrets.yaml b/kubernetes/namespaces/databases/mongodb/secrets.yaml deleted file mode 100644 index 0ce7d4aacf9c9470b3529204269ec0b9fc529e05..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 265 zcmV+k0rvg?M@dveQdv+`05VRWrLo=m$+YL=$C!)~0ars^wG}Ml-thqhI=hUbSfD(x zgegl=l;{aXcMtsIDN)7YbS`VvgiPY48VKs@a6f>8=L}U3-JJX*Rm&vM0?R=xH^_z{ zn3u@4X!b)umx5X;vBrB0heQrUiKxTQei30Kyb|3?~%GpIMJlJb9 zbAex{^=5>okaeCrQ*Xo1L0n^TayE#+xuoh5nWvZmJ3C*=IEJ#{5uKiaGw zg@vmIe(EXJPe%w~vw68Jz50H?fw;pmT=7D*rBcVafq>Ygv5D5xQWuB!aYRJUz69?p Ptd diff --git a/kubernetes/namespaces/databases/mongodb/service.yaml b/kubernetes/namespaces/databases/mongodb/service.yaml deleted file mode 100644 index 1884872d..00000000 --- a/kubernetes/namespaces/databases/mongodb/service.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: mongodb - namespace: databases -spec: - ports: - - port: 27017 - selector: - app: mongodb diff --git a/kubernetes/namespaces/databases/mongodb/volume.yaml b/kubernetes/namespaces/databases/mongodb/volume.yaml deleted file mode 100644 index 5ebb039a..00000000 --- a/kubernetes/namespaces/databases/mongodb/volume.yaml +++ /dev/null @@ -1,14 +0,0 @@ -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: mongodb-storage - labels: - app: mongodb - namespace: databases -spec: - storageClassName: linode-block-storage-retain - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi