diff --git a/README.md b/README.md index 86cce0d..8c22bc9 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,16 @@ For instructions on running a legacy v3 or v4 controller, see the [README for v3 * [Explicit Version Tags](#explicit-version-tags) * [Tags for Beta/Testing](#tags-for-betatesting) * [Archived Tags](#archived-tags) -* [Getting Help & Reporting Issues](#getting-help--reporting-issues) + * [Tags with Chromium](#tags-with-chromium) +* [Getting Help \& Reporting Issues](#getting-help--reporting-issues) * [Best Practices for Operation](#best-practices-for-operation) * [Controller Backups](#controller-backups) * [Controller Upgrades](#controller-upgrades) * [Preventing Database Corruption](#preventing-database-corruption) * [Building Images](#building-images) + * [`amd64`](#amd64) + * [`arm64`](#arm64) + * [`armv7l`](#armv7l) * [Example Usage](#example-usage) * [Using `net=host`](#using-nethost) * [Using port mapping](#using-port-mapping) @@ -29,6 +33,8 @@ For instructions on running a legacy v3 or v4 controller, see the [README for v3 * [Running Rootless](#running-rootless) * [Using Docker Compose](#using-docker-compose) * [Using k8s](#using-k8s) + * [Kubernetes Helm Chart](#kubernetes-helm-chart) + * [Kubernetes Manifests](#kubernetes-manifests) * [Optional Environment Variables](#optional-environment-variables) * [Persistent Data](#persistent-data) * [Custom SSL Certificates](#custom-ssl-certificates) @@ -345,16 +351,18 @@ docker compose up -d There are two available options for deployment to Kubernetes: +* Kubernetes Helm chart (recommended) * Kubernetes manifests -* Kubernetes Helm chart - -#### Kubernetes Manifests - -The example manifests are in the [k8s](./k8s) directory. It's assumed that you will know how to modify and use these manifests on k8s if you choose that as your deployment option. #### Kubernetes Helm Chart -The Helm charts are published to [mbentley/omada-controller-helm](https://hub.docker.com/r/mbentley/omada-controller-helm) on Docker Hub but it is also available directly [from this repo](./helm/omada-controller-helm). For a Helm release list and detailed usage instructions, check out the [Helm chart's README](https://github.com/mbentley/docker-omada-controller/blob/master/helm/omada-controller-helm/README.md). +The Helm charts are published to [mbentley/omada-controller-helm](https://hub.docker.com/r/mbentley/omada-controller-helm) on Docker Hub but are also available directly [from this repo](./helm/omada-controller-helm). For a Helm release list and detailed usage instructions, check out the [Helm chart's README](https://github.com/mbentley/docker-omada-controller/blob/master/helm/omada-controller-helm/README.md). + +Examples of how to deploy a complete stack of MongoDB and Omada Controller using Helm can be found in the [k8s/helm](./k8s/helm/) directory. Follow the [README](./k8s/helm/README.md) to get started. Review the values files to see how to configure the chart for your environment. + +#### Kubernetes Manifests + +The example manifests are in the [k8s/manifests](./k8s/manifests/) directory. It's assumed that you will know how to modify and use these manifests on k8s if you choose that as your deployment option. ## Optional Environment Variables diff --git a/external_mongodb/README.md b/external_mongodb/README.md index 1571597..4283174 100644 --- a/external_mongodb/README.md +++ b/external_mongodb/README.md @@ -7,6 +7,7 @@ * [Fresh Install Example using Compose](#fresh-install-example-using-compose) * [Example using `--network host`](#example-using---network-host) * [Migration Examples using Compose](#migration-examples-using-compose) +* [Kubernetes Deployment Guide](#kubernetes-deployment-guide) ## Common Steps @@ -266,58 +267,4 @@ There are example compose files for migrations to an external MongoDB at [docker ## Kubernetes Deployment Guide -In advanced setups, deploying applications in container orchestrators like Kubernetes is common, -even in homelabs to enhance reliability. - -Below, we’ll use both Helm and Kustomize to deploy **MongoDB** and **Omada Controller**. - -### Deploy MongoDB - -We use a custom Helm chart that wraps Bitnami's MongoDB chart. - -The customization includes templates for managing secrets securely, avoiding the bad practice of -hardcoding credentials in `values.yaml`. - -Instead, it supports tools like **External Secrets** to fetch credentials from secure vaults and -generate Kubernetes secrets automatically. - -The custom Helm chart has credentials hardcoded as an example, but provides commented examples -about how to get secrets safely from mentioned vaults. - -Let's deploy our chart: - -1. Update dependencies - -```console -helm dependency update kubernetes/mongodb -``` - -2. Deploy MongoDB in the cluster currently pointed by your Kubeconfig - -> [!IMPORTANT] -> Customize chart's parameters to meet your needs - -```console -helm upgrade --install mongodb kubernetes/mongodb \ - -f kubernetes/mongodb/values-customized.yaml \ - -n omada-controller --create-namespace -``` - -### Deploy Omada Controller - -We'll use Kustomize since there's no official Helm chart provided by Omada Controller's maintainers -or a trusted external provider like Bitnami. - -Ensure your cluster has Ingress-Nginx as the ingress controller and Cert-Manager for certificate management. - -If you're in an on-premises environment, you might need tools like MetalLB or Kube-VIP to provision -load balancers for services of type LoadBalancer. - -To deploy Omada Controller, just execute the following command - -```console -kubectl apply -k kubernetes/production -``` - -> [!IMPORTANT] -> Always adjust parameters to align with your infrastructure and requirements. +For mores details on how to deploy Omada Controller with an external MongoDB database see [Kubernetes Deployment Guide](../k8s/helm/README.md). diff --git a/external_mongodb/kubernetes/mongodb/Chart.yaml b/external_mongodb/kubernetes/mongodb/Chart.yaml deleted file mode 100644 index 2577b54..0000000 --- a/external_mongodb/kubernetes/mongodb/Chart.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v2 -name: mongodb -version: 0.1.0 -dependencies: - - name: mongodb - version: 14.13.0 - repository: https://charts.bitnami.com/bitnami diff --git a/external_mongodb/kubernetes/mongodb/templates/_helpers.tpl b/external_mongodb/kubernetes/mongodb/templates/_helpers.tpl deleted file mode 100644 index 84a3f91..0000000 --- a/external_mongodb/kubernetes/mongodb/templates/_helpers.tpl +++ /dev/null @@ -1,51 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "meta-mongodb.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "meta-mongodb.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "meta-mongodb.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "meta-mongodb.labels" -}} -helm.sh/chart: {{ include "meta-mongodb.chart" . }} -{{ include "meta-mongodb.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "meta-mongodb.selectorLabels" -}} -app.kubernetes.io/name: {{ include "meta-mongodb.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} diff --git a/external_mongodb/kubernetes/mongodb/templates/external-secrets.yaml b/external_mongodb/kubernetes/mongodb/templates/external-secrets.yaml deleted file mode 100644 index c963836..0000000 --- a/external_mongodb/kubernetes/mongodb/templates/external-secrets.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- range $key, $value := .Values.customComponents.externalSecrets }} -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - name: {{ include "meta-mongodb.fullname" $ }}-{{ $key }} - labels: - {{- include "meta-mongodb.labels" $ | nindent 4 }} - {{- with $value.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - {{ toYaml $value.spec | nindent 2 }} ---- -{{- end }} diff --git a/external_mongodb/kubernetes/mongodb/values-customized.yaml b/external_mongodb/kubernetes/mongodb/values-customized.yaml deleted file mode 100644 index c8c2a29..0000000 --- a/external_mongodb/kubernetes/mongodb/values-customized.yaml +++ /dev/null @@ -1,123 +0,0 @@ -customComponents: {} - - # externalSecrets: - # mongodb-users-credentials: - # annotations: {} - # spec: - # secretStoreRef: - # kind: ClusterSecretStore - # name: gitlab-secret-store - # target: - # name: mongodb-users-credentials - # data: - # - secretKey: mongodb-root-password - # remoteRef: - # key: MONGODB_USERS_CREDENTIALS_PASSWORD_ROOT - # - secretKey: mongodb-passwords - # remoteRef: - # key: MONGODB_USERS_CREDENTIALS_PASSWORD_OMADA - -# Ref: https://github.com/bitnami/charts/blob/main/bitnami/mongodb/values.yaml -mongodb: - # MongoDB Authentication parameters - auth: - enabled: true - - # MongoDB root user - #rootUser: root - - # MongoDB root password - # Ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#setting-the-root-user-and-password-on-first-run - rootPassword: "provision-me-externally" - - # MongoDB custom users and databases - # Ref: https://github.com/bitnami/containers/tree/main/bitnami/mongodb#creating-a-user-and-database-on-first-run - # List of custom users to be created during the initialization - # List of passwords for the custom users set at `auth.usernames` - # List of custom databases to be created during the initialization - # Ref: https://github.com/bitnami/charts/issues/16975#issuecomment-1803017023 - # Relationship between following lists is [0]->[0]->[0]; [1]->[1]->[1]; ... - databases: ["omada"] - usernames: ["omada"] - passwords: ["provision-me-externally"] - - # Existing secret with MongoDB credentials (keys: `mongodb-passwords`, `mongodb-root-password`, `mongodb-metrics-password`, `mongodb-replica-set-key`) - # When it's set the passwords defined in previous parameters are ignored. - #existingSecret: "mongodb-users-credentials" - - # Dictionary of initdb scripts - # Specify dictionary of scripts to be run at first boot - initdbScripts: - - # Ref: https://github.com/mbentley/docker-omada-controller/blob/master/external_mongodb/omada.js - init-mongo.sh: | - #!/bin/bash - - mongosh --authenticationDatabase admin -u root -p $MONGODB_ROOT_PASSWORD < [!NOTE] +> If you prefer to generate and store the required credentials in a vault, use **External Secrets** to fetch credentials and generate Kubernetes secret automatically. +> To do this ensure you have the operator installed and configured. Then deploy the ExternalSecret manifest before proceeding (this would replace the secret creation steps below). + +## Deploy MongoDB + +We use the Bitnami's MongoDB chart. Specific values are required in order for Omada to be able to use the database. This includes specific values for the `auth` and `initdbScripts` sections. Other recommended updates include explicitly setting persistence and resource limits configurations. + +Currently the Omada Controller supports MongoDB versions 3.0 through 8.0. It is recommended to use the latest MongoDB version supported by Omada or at least a version that is still maintained by [MongoDB](https://www.mongodb.com/legal/support-policy/lifecycles). The latest version of MongoDB is 8.0 and is supported till October 31, 2029. This chart defaults to the latest version of MongoDB. In the future if a newer MongoDB version is released that is not supported by Omada you maybe required to update the image tag for the MongoDB chart in order to use a version that is supported. + +> [!IMPORTANT] +> Before proceeding customize the [values file](../helm/mongodb/values.yaml) with the parameters to meet your needs. No deployment will be exactly the same. Review the [official chart documentation](https://github.com/bitnami/charts/blob/main/bitnami/mongodb/README.md) for all possible values and configurations you may require. + +Let's deploy the chart: + +1. Create namespace for MongoDB and Omada Controller + + ```console + NAMESPACE="omada" + + kubectl create ns $NAMESPACE --dry-run=client -o yaml | kubectl apply -f - + ``` + +2. Create secret for MongoDB + + ```console + ROOT_PASS=$(openssl rand -base64 32 | tr -dc 'A-Za-z0-9' | head -c32) + OMADA_DB_PASS=$(openssl rand -base64 32 | tr -dc 'A-Za-z0-9' | head -c32) + RS_KEY=$(openssl rand -base64 32 | tr -dc 'A-Za-z0-9' | head -c32) + + kubectl create secret generic omada-db-secret \ + --from-literal=mongodb-root-password=$ROOT_PASS \ + --from-literal=mongodb-passwords=$OMADA_DB_PASS \ + --from-literal=mongodb-replica-set-key=$RS_KEY \ + -n $NAMESPACE --dry-run=client -o yaml | kubectl apply -f - + ``` + +3. Deploy MongoDB Helm chart + + ```console + helm install omada-db oci://registry-1.docker.io/bitnamicharts/mongodb \ + --namespace $NAMESPACE --wait --timeout 10m \ + -f ./k8s/helm/mongodb/values.yaml + ``` + +## Deploy Omada Controller + +This repository now contains a [Helm chart for Omada Controller](../../helm/omada-controller-helm/README.md). It will be used to complete the Omada Controller deployment using Helm instead of custom crafted manifests. + +Prior to deploying the Omada Controller a decision is required on how to expose it external to Kubernetes. This can be done Kubernetes Ingress or LoadBalancer service. If you choose to use Ingress, you will need to have an Ingress Controller installed and configured. If you choose to use a LoadBalancer service, you will need to have a LoadBalancer Controller installed and configured. If you're in an on-premises or homelab environment, you might need tools like MetalLB or Kube-VIP to route traffic and provide IP addresses for LoadBalancer services. + +Further enhancements to accessing the Omada Controller can be made by using [cert-manager](https://cert-manager.io/) to create a SSL certificate and [ExternalDNS](https://github.com/kubernetes-sigs/external-dns) to create an A record for the Omada Controller URL. These are optional and not required for the Omada Controller to function. + +In this example we will use a LoadBalancer service type with no extra configurations. + +> [!IMPORTANT] +> Before proceeding customize the [values file](../helm/omada-controller/values.yaml) with the parameters to meet your needs. Additional values files have been provided to demonstrate using the [Ingress](../helm/omada-controller/values-ingress.yaml) and [LoadBalancer](../helm/omada-controller/values-loadbalancer-ssl.yaml) with ExternalDNS and cert-manager configured. No deployment will be exactly the same. + +Let's deploy the chart: + +1. Create secret for MongoDB Connection String + + ```console + kubectl create secret generic omada-db-uri-secret \ + --from-literal=mongodb-uri="mongodb://omada:${OMADA_DB_PASS}@omada-db-mongodb.${NAMESPACE}.svc.cluster.local:27017/omada?authSource=omada" \ + -n $NAMESPACE --dry-run=client -o yaml | kubectl apply -f - + ``` + +2. Deploy Omada Controller Helm chart + + ```console + helm install omada-controller oci://registry-1.docker.io/mbentley/omada-controller-helm \ + --namespace $NAMESPACE --wait --timeout 10m \ + -f ./k8s/helm/omada-controller/values.yaml + ``` + +3. Verify the deployment and all pods are running + + ```console + kubectl get pods -n $NAMESPACE + ``` + +4. Get the LoadBalancer IP address + + ```console + kubectl get svc omada-controller -n $NAMESPACE -o jsonpath='{.status.loadBalancer.ingress[0].ip}' + ``` + +5. Access the Omada Controller web interface + + ```console + https://:8043 + ``` + +> [!NOTE] +> The first time you access the Omada Controller web interface, you will need to accept the self-signed certificate. diff --git a/k8s/helm/mongodb/values.yaml b/k8s/helm/mongodb/values.yaml new file mode 100644 index 0000000..5f9c96b --- /dev/null +++ b/k8s/helm/mongodb/values.yaml @@ -0,0 +1,97 @@ +## Sample Values File MongoDB External Database for Omada Controller +# +# This sample will include the minimum required properties to deploy a MongoDB external database for Omada Controller +# For full details on all possible values, refer to the official chart documentation: +# Ref: https://github.com/bitnami/charts/blob/main/bitnami/mongodb/values.yaml +# +# Prerequisites: +# - Namespace created for MongoDB +# - Secret created named omada-db-secret with the following keys: +# - mongodb-root-password (MongoDB root password) +# - mongodb-passwords (Omada Controller database user password) +# - mongodb-replica-set-key (MongoDB replica set key) +# + +# For simplicities sake only a standalone MongoDB instance is shown +architecture: standalone +usePasswordFiles: true +auth: + existingSecret: omada-db-secret + databases: ["omada"] + usernames: ["omada"] + +persistence: + enabled: true + + # Name of the PVC and mounted volume only provide if you want to use a specific PVC name + # name: "omada-db-mongodb" + + # Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`) + # If defined, PVC must be created manually before volume will be bound + # existingClaim: "" + + # Setting it to "keep" to avoid removing PVCs during a helm delete operation. + # Leaving it empty will delete PVCs after the chart is deleted + resourcePolicy: "keep" + + # PVC Storage Class for MongoDB data volume + # If undefined (the default) or set to null, no storageClassName spec is + # set, choosing the default provisioner. + # storageClass: "standard-nfs" + + # PV Access Mode + accessModes: + - ReadWriteOnce + + # PVC Storage Request for MongoDB volume + size: 8Gi + +# Note: Following parameters are only needed when deployed as StatefulSet. +# Persistent Volume Claim Retention Policy +# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention +# persistentVolumeClaimRetentionPolicy: +# # Enable Persistent volume retention policy for MongoDB Statefulset +# enabled: false + +# # Volume retention behavior when the replica count of the StatefulSet is reduced +# whenScaled: Retain + +# # Volume retention behavior that applies when the StatefulSet is deleted +# whenDeleted: Retain + +# Init script is required to enable Omada Controller to work correctly with MongoDB +initdbScripts: + omada-init.js: |+ + // Wait for MongoDB to be ready + while (true) { + try { + db.adminCommand({ ping: 1 }); + break; + } catch (e) { + print("Waiting for MongoDB to be ready..."); + sleep(1000); + } + } + + // Read root credentials from environment / file + const rootUser = process.env.MONGODB_ROOT_USER || "root"; + const rootPassPath = process.env.MONGODB_ROOT_PASSWORD_FILE; + let rootPass = process.env.MONGODB_ROOT_PASSWORD; + + if (rootPassPath && typeof cat === 'function') { + rootPass = cat(rootPassPath).trim(); + } + + // Switch to admin and authenticate as root + db = db.getSiblingDB("admin"); + db.auth(rootUser, rootPass); + + // Create omada_data database and grant permissions to all omada databases + db.getSiblingDB('omada').grantRolesToUser("omada", [ + { role: "readWrite", db: "omada" }, + { role: "dbOwner", db: "omada" }, + { role: "readWrite", db: "omada_data" }, + { role: "dbOwner", db: "omada_data" } + ]); + + print("Init script finished. Databases 'omada' and 'omada_data' exist and permissions are granted."); diff --git a/k8s/helm/omada-controller/values-ingress.yaml b/k8s/helm/omada-controller/values-ingress.yaml new file mode 100644 index 0000000..634623b --- /dev/null +++ b/k8s/helm/omada-controller/values-ingress.yaml @@ -0,0 +1,52 @@ +## Sample Values File Omada Controller with Nginx Ingress (or Compatible) +# +# Prerequisites: +# - Namespace created for Omada Controller +# - Secret created named omada-db-uri-secret with the following keys: +# - mongodb-uri (MongoDB database connection string) +# + +config: + timezone: America/Toronto + externalMongoDBUrlSecret: + name: omada-db-uri-secret + key: mongodb-uri + +service: + type: ClusterIP + +ingress: + enabled: true + className: nginx + annotations: + # nginx annotations for HTTPS backend communication to Omada Controller + nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" + # nginx annotations for HTTPS backend self signed certificate of Omada Controller + nginx.ingress.kubernetes.io/ssl-verify: "false" + # cert-manager cluster issuer + cert-manager.io/cluster-issuer: cloudflare-issuer + managementHosts: + - host: omada.example.com + paths: + - path: / + pathType: Prefix + tls: + - secretName: omada-tls-secret + hosts: + - omada.example.com + +resources: + limits: + cpu: 1500m + memory: 2Gi + requests: + cpu: 500m + memory: 500Mi + +persistence: + data: + enabled: true + size: 5Gi + logs: + enabled: true + size: 2Gi diff --git a/k8s/helm/omada-controller/values-loadbalancer-ssl.yaml b/k8s/helm/omada-controller/values-loadbalancer-ssl.yaml new file mode 100644 index 0000000..e34e609 --- /dev/null +++ b/k8s/helm/omada-controller/values-loadbalancer-ssl.yaml @@ -0,0 +1,53 @@ +## Sample Values File Omada Controller with LoadBalancer, SSL and ExternalDNS +# +# Prerequisites: +# - Namespace created for Omada Controller +# - Secret created named omada-db-uri-secret with the following keys: +# - mongodb-uri (MongoDB database connection string) +# + +config: + timezone: America/Toronto + tlsSecretName: omada-tls-secret + externalMongoDBUrlSecret: + name: omada-db-uri-secret + key: mongodb-uri + +service: + type: LoadBalancer + annotations: + # Uncomment if you want to statically assign load balancer IP + # metallb.universe.tf/loadBalancerIPs: 192.168.1.100 + # Adjust to match your domain name + external-dns.alpha.kubernetes.io/hostname: omada.example.com + +resources: + limits: + cpu: 1500m + memory: 2Gi + requests: + cpu: 500m + memory: 500Mi + +persistence: + data: + enabled: true + size: 5Gi + logs: + enabled: true + size: 2Gi + +# Adjust to match your domain name and issuer name +extraManifests: +- | + apiVersion: cert-manager.io/v1 + kind: Certificate + metadata: + name: omada-tls-cert + spec: + secretName: omada-tls-secret + issuerRef: + name: cloudflare-issuer + kind: ClusterIssuer + dnsNames: + - omada.example.com diff --git a/k8s/helm/omada-controller/values.yaml b/k8s/helm/omada-controller/values.yaml new file mode 100644 index 0000000..b231e97 --- /dev/null +++ b/k8s/helm/omada-controller/values.yaml @@ -0,0 +1,35 @@ +## Sample Values File for Omada Controller +# +# This sample will include the minimum required properties to deploy an Omada Controller with external MongoDB +# +# Prerequisites: +# - Namespace created for Omada Controller +# - Secret created named omada-db-uri-secret with the following keys: +# - mongodb-uri (MongoDB database connection string) +# + +config: + externalMongoDBUrlSecret: + # Name of the secret containing the MongoDB URI + name: omada-db-uri-secret + # Key within the secret that contains the MongoDB URI + key: mongodb-uri + +service: + type: LoadBalancer + +resources: + limits: + cpu: 1500m + memory: 2Gi + requests: + cpu: 500m + memory: 500Mi + +persistence: + data: + enabled: true + size: 5Gi + logs: + enabled: true + size: 2Gi diff --git a/k8s/deployment.yaml b/k8s/manifests/deployment.yaml similarity index 100% rename from k8s/deployment.yaml rename to k8s/manifests/deployment.yaml diff --git a/external_mongodb/kubernetes/omada-controller/base/configmap-env.yaml b/k8s/manifests/external_mongodb/base/configmap-env.yaml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/base/configmap-env.yaml rename to k8s/manifests/external_mongodb/base/configmap-env.yaml diff --git a/external_mongodb/kubernetes/omada-controller/base/deployment.yml b/k8s/manifests/external_mongodb/base/deployment.yml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/base/deployment.yml rename to k8s/manifests/external_mongodb/base/deployment.yml diff --git a/external_mongodb/kubernetes/omada-controller/base/kustomization.yaml b/k8s/manifests/external_mongodb/base/kustomization.yaml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/base/kustomization.yaml rename to k8s/manifests/external_mongodb/base/kustomization.yaml diff --git a/external_mongodb/kubernetes/omada-controller/base/pvc-omada-data.yml b/k8s/manifests/external_mongodb/base/pvc-omada-data.yml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/base/pvc-omada-data.yml rename to k8s/manifests/external_mongodb/base/pvc-omada-data.yml diff --git a/external_mongodb/kubernetes/omada-controller/base/pvc-omada-logs.yml b/k8s/manifests/external_mongodb/base/pvc-omada-logs.yml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/base/pvc-omada-logs.yml rename to k8s/manifests/external_mongodb/base/pvc-omada-logs.yml diff --git a/external_mongodb/kubernetes/omada-controller/base/service.yml b/k8s/manifests/external_mongodb/base/service.yml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/base/service.yml rename to k8s/manifests/external_mongodb/base/service.yml diff --git a/external_mongodb/kubernetes/omada-controller/production/certificate.yaml b/k8s/manifests/external_mongodb/production/certificate.yaml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/production/certificate.yaml rename to k8s/manifests/external_mongodb/production/certificate.yaml diff --git a/external_mongodb/kubernetes/omada-controller/production/ingress.yml b/k8s/manifests/external_mongodb/production/ingress.yml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/production/ingress.yml rename to k8s/manifests/external_mongodb/production/ingress.yml diff --git a/external_mongodb/kubernetes/omada-controller/production/kustomization.yaml b/k8s/manifests/external_mongodb/production/kustomization.yaml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/production/kustomization.yaml rename to k8s/manifests/external_mongodb/production/kustomization.yaml diff --git a/external_mongodb/kubernetes/omada-controller/production/overlays/service.yml b/k8s/manifests/external_mongodb/production/overlays/service.yml similarity index 100% rename from external_mongodb/kubernetes/omada-controller/production/overlays/service.yml rename to k8s/manifests/external_mongodb/production/overlays/service.yml diff --git a/k8s/pvc.yaml b/k8s/manifests/pvc.yaml similarity index 100% rename from k8s/pvc.yaml rename to k8s/manifests/pvc.yaml diff --git a/k8s/service.yaml b/k8s/manifests/service.yaml similarity index 100% rename from k8s/service.yaml rename to k8s/manifests/service.yaml