From 9b949ed0bdd1dcdb62937a82c2f2028a2d5b87a8 Mon Sep 17 00:00:00 2001 From: sirius0xdev Date: Tue, 26 May 2026 18:28:52 +0000 Subject: [PATCH] move reddis --- .../customer1/trade-dashboard/configmap.yaml | 9 --- .../customer1/trade-dashboard/deployment.yaml | 69 ------------------- .../trade-dashboard/kustomization.yaml | 8 --- .../customer1/trade-dashboard/service.yaml | 17 ----- .../redis-cluster.yaml | 0 5 files changed, 103 deletions(-) delete mode 100644 apps/base/customer1/trade-dashboard/configmap.yaml delete mode 100644 apps/base/customer1/trade-dashboard/deployment.yaml delete mode 100644 apps/base/customer1/trade-dashboard/kustomization.yaml delete mode 100644 apps/base/customer1/trade-dashboard/service.yaml rename apps/base/customer1/{hermes-db => trading-platform}/redis-cluster.yaml (100%) diff --git a/apps/base/customer1/trade-dashboard/configmap.yaml b/apps/base/customer1/trade-dashboard/configmap.yaml deleted file mode 100644 index cd33ad6..0000000 --- a/apps/base/customer1/trade-dashboard/configmap.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: trade-dashboard-config - namespace: customer1 -data: - DB_HOST: "siriusdevops-pgdb-rw.customer1.svc.cluster.local" - DB_PORT: "5432" - DB_NAME: "trading_dashboard" diff --git a/apps/base/customer1/trade-dashboard/deployment.yaml b/apps/base/customer1/trade-dashboard/deployment.yaml deleted file mode 100644 index 7ff391c..0000000 --- a/apps/base/customer1/trade-dashboard/deployment.yaml +++ /dev/null @@ -1,69 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: trade-dashboard - namespace: customer1 - labels: - app: trade-dashboard -spec: - replicas: 1 - strategy: - type: Recreate - selector: - matchLabels: - app: trade-dashboard - template: - metadata: - labels: - app: trade-dashboard - annotations: - checksum/config: trade-dashboard-config - spec: - terminationGracePeriodSeconds: 30 - containers: - - name: dashboard - image: ghcr.io/sirius0xdev/trade-dashboard:latest - imagePullPolicy: Always - ports: - - containerPort: 8000 - name: http - resources: - requests: - cpu: 100m - memory: 128Mi - limits: - cpu: 500m - memory: 512Mi - envFrom: - - configMapRef: - name: trade-dashboard-config - env: - - name: DB_USER - valueFrom: - secretKeyRef: - name: trading-dashboard-db-credentials - key: username - - name: DB_PASSWORD - valueFrom: - secretKeyRef: - name: trading-dashboard-db-credentials - key: password - startupProbe: - httpGet: - path: /api/health - port: 8000 - initialDelaySeconds: 15 - periodSeconds: 5 - failureThreshold: 6 - livenessProbe: - httpGet: - path: /api/health - port: 8000 - initialDelaySeconds: 30 - periodSeconds: 30 - readinessProbe: - httpGet: - path: /api/health - port: 8000 - initialDelaySeconds: 5 - periodSeconds: 10 diff --git a/apps/base/customer1/trade-dashboard/kustomization.yaml b/apps/base/customer1/trade-dashboard/kustomization.yaml deleted file mode 100644 index 07debc6..0000000 --- a/apps/base/customer1/trade-dashboard/kustomization.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -resources: - - deployment.yaml - - service.yaml - - configmap.yaml -# - tsproxy.yaml diff --git a/apps/base/customer1/trade-dashboard/service.yaml b/apps/base/customer1/trade-dashboard/service.yaml deleted file mode 100644 index 71d3e48..0000000 --- a/apps/base/customer1/trade-dashboard/service.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: trade-dashboard - namespace: customer1 - annotations: - tailscale.com/expose: "true" - tailscale.com/hostname: "trade-dashboard" - tailscale.com/tags: "tag:k8s-operator" - tailscale.com/ports: "http:80" -spec: - selector: - app: trade-dashboard - ports: - - port: 80 - targetPort: 8000 - name: http diff --git a/apps/base/customer1/hermes-db/redis-cluster.yaml b/apps/base/customer1/trading-platform/redis-cluster.yaml similarity index 100% rename from apps/base/customer1/hermes-db/redis-cluster.yaml rename to apps/base/customer1/trading-platform/redis-cluster.yaml