From d1ff2661d101da4fb97cc3333140277f27a1c151 Mon Sep 17 00:00:00 2001 From: wwweww <2646787260@qq.com> Date: Mon, 4 May 2026 13:59:15 +0800 Subject: [PATCH] fix(k8s): lower cpu/memory requests for dev environment (50m/128Mi) --- deploy/k8s/service/authz/authz-adapter.yaml | 4 ++-- deploy/k8s/service/chat/chat-api.yaml | 12 ++++++------ deploy/k8s/service/community/community-api.yaml | 4 ++-- deploy/k8s/service/community/community-rpc.yaml | 12 ++++++------ deploy/k8s/service/dispute/dispute-api.yaml | 4 ++-- deploy/k8s/service/dispute/dispute-rpc.yaml | 12 ++++++------ deploy/k8s/service/email/email-api.yaml | 4 ++-- deploy/k8s/service/email/email-mq.yaml | 4 ++-- deploy/k8s/service/game/game-api.yaml | 4 ++-- deploy/k8s/service/game/game-rpc.yaml | 12 ++++++------ .../k8s/service/notification/notification-api.yaml | 4 ++-- .../k8s/service/notification/notification-rpc.yaml | 12 ++++++------ deploy/k8s/service/objectstory/objectstory-api.yaml | 4 ++-- deploy/k8s/service/objectstory/objectstory-rpc.yaml | 4 ++-- deploy/k8s/service/order/order-api.yaml | 4 ++-- deploy/k8s/service/order/order-rpc.yaml | 12 ++++++------ deploy/k8s/service/player/player-api.yaml | 4 ++-- deploy/k8s/service/player/player-rpc.yaml | 12 ++++++------ deploy/k8s/service/review/review-api.yaml | 4 ++-- deploy/k8s/service/review/review-rpc.yaml | 12 ++++++------ deploy/k8s/service/search/search-api.yaml | 4 ++-- deploy/k8s/service/search/search-rpc.yaml | 12 ++++++------ deploy/k8s/service/shop/shop-api.yaml | 4 ++-- deploy/k8s/service/shop/shop-rpc.yaml | 12 ++++++------ deploy/k8s/service/snowflake/snowflake.yaml | 4 ++-- deploy/k8s/service/user/user-api.yaml | 4 ++-- deploy/k8s/service/user/user-rpc.yaml | 12 ++++++------ .../user_verifications/user-verifications-rpc.yaml | 12 ++++++------ deploy/k8s/service/wallet/wallet-api.yaml | 4 ++-- deploy/k8s/service/wallet/wallet-rpc.yaml | 12 ++++++------ 30 files changed, 112 insertions(+), 112 deletions(-) diff --git a/deploy/k8s/service/authz/authz-adapter.yaml b/deploy/k8s/service/authz/authz-adapter.yaml index 97f1e64..49b2a16 100644 --- a/deploy/k8s/service/authz/authz-adapter.yaml +++ b/deploy/k8s/service/authz/authz-adapter.yaml @@ -45,8 +45,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi volumeMounts: - name: timezone mountPath: /etc/localtime diff --git a/deploy/k8s/service/chat/chat-api.yaml b/deploy/k8s/service/chat/chat-api.yaml index 222678e..4eac189 100644 --- a/deploy/k8s/service/chat/chat-api.yaml +++ b/deploy/k8s/service/chat/chat-api.yaml @@ -68,8 +68,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -240,8 +240,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi redisSecret: name: chat-redis key: password @@ -276,8 +276,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi podSecurityContext: runAsUser: 1000 fsGroup: 1000 diff --git a/deploy/k8s/service/community/community-api.yaml b/deploy/k8s/service/community/community-api.yaml index 0877731..72456b9 100644 --- a/deploy/k8s/service/community/community-api.yaml +++ b/deploy/k8s/service/community/community-api.yaml @@ -36,8 +36,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/community/community-rpc.yaml b/deploy/k8s/service/community/community-rpc.yaml index 1ce8dc5..df5c290 100644 --- a/deploy/k8s/service/community/community-rpc.yaml +++ b/deploy/k8s/service/community/community-rpc.yaml @@ -66,8 +66,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -195,8 +195,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi redisSecret: name: community-redis key: password @@ -231,8 +231,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi podSecurityContext: runAsUser: 1000 fsGroup: 1000 diff --git a/deploy/k8s/service/dispute/dispute-api.yaml b/deploy/k8s/service/dispute/dispute-api.yaml index db3dc94..1a07141 100644 --- a/deploy/k8s/service/dispute/dispute-api.yaml +++ b/deploy/k8s/service/dispute/dispute-api.yaml @@ -36,8 +36,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/dispute/dispute-rpc.yaml b/deploy/k8s/service/dispute/dispute-rpc.yaml index e2409a1..8bc59fc 100644 --- a/deploy/k8s/service/dispute/dispute-rpc.yaml +++ b/deploy/k8s/service/dispute/dispute-rpc.yaml @@ -66,8 +66,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -195,8 +195,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi redisSecret: name: dispute-redis key: password @@ -231,8 +231,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi podSecurityContext: runAsUser: 1000 fsGroup: 1000 diff --git a/deploy/k8s/service/email/email-api.yaml b/deploy/k8s/service/email/email-api.yaml index cb982db..11c1b87 100644 --- a/deploy/k8s/service/email/email-api.yaml +++ b/deploy/k8s/service/email/email-api.yaml @@ -49,8 +49,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/email/email-mq.yaml b/deploy/k8s/service/email/email-mq.yaml index 384ac62..3e5ffc2 100644 --- a/deploy/k8s/service/email/email-mq.yaml +++ b/deploy/k8s/service/email/email-mq.yaml @@ -72,8 +72,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi volumeMounts: - name: timezone mountPath: /etc/localtime diff --git a/deploy/k8s/service/game/game-api.yaml b/deploy/k8s/service/game/game-api.yaml index dbc6d47..f44df2b 100644 --- a/deploy/k8s/service/game/game-api.yaml +++ b/deploy/k8s/service/game/game-api.yaml @@ -36,8 +36,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/game/game-rpc.yaml b/deploy/k8s/service/game/game-rpc.yaml index 22d9087..f59c58f 100644 --- a/deploy/k8s/service/game/game-rpc.yaml +++ b/deploy/k8s/service/game/game-rpc.yaml @@ -66,8 +66,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -166,8 +166,8 @@ spec: # cpu: 100m # memory: 128Mi # limits: -# cpu: 500m -# memory: 512Mi +# cpu: 50m +# memory: 128Mi # redisSecret: # 记得创建密码 # name: game-redis # key: password @@ -204,8 +204,8 @@ spec: # cpu: 100m # memory: 128Mi # limits: -# cpu: 500m -# memory: 512Mi +# cpu: 50m +# memory: 128Mi # podSecurityContext: # runAsUser: 1000 # fsGroup: 1000 diff --git a/deploy/k8s/service/notification/notification-api.yaml b/deploy/k8s/service/notification/notification-api.yaml index e00719a..f8ae7b6 100644 --- a/deploy/k8s/service/notification/notification-api.yaml +++ b/deploy/k8s/service/notification/notification-api.yaml @@ -36,8 +36,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/notification/notification-rpc.yaml b/deploy/k8s/service/notification/notification-rpc.yaml index b8b7f97..68c3022 100644 --- a/deploy/k8s/service/notification/notification-rpc.yaml +++ b/deploy/k8s/service/notification/notification-rpc.yaml @@ -66,8 +66,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -195,8 +195,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi redisSecret: name: notification-redis key: password @@ -231,8 +231,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi podSecurityContext: runAsUser: 1000 fsGroup: 1000 diff --git a/deploy/k8s/service/objectstory/objectstory-api.yaml b/deploy/k8s/service/objectstory/objectstory-api.yaml index 5f25ed6..5675203 100644 --- a/deploy/k8s/service/objectstory/objectstory-api.yaml +++ b/deploy/k8s/service/objectstory/objectstory-api.yaml @@ -35,8 +35,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/objectstory/objectstory-rpc.yaml b/deploy/k8s/service/objectstory/objectstory-rpc.yaml index e367ba8..1881d14 100644 --- a/deploy/k8s/service/objectstory/objectstory-rpc.yaml +++ b/deploy/k8s/service/objectstory/objectstory-rpc.yaml @@ -35,8 +35,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/order/order-api.yaml b/deploy/k8s/service/order/order-api.yaml index 49d753f..b7161d4 100644 --- a/deploy/k8s/service/order/order-api.yaml +++ b/deploy/k8s/service/order/order-api.yaml @@ -36,8 +36,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/order/order-rpc.yaml b/deploy/k8s/service/order/order-rpc.yaml index eb293b6..0dfe4d8 100644 --- a/deploy/k8s/service/order/order-rpc.yaml +++ b/deploy/k8s/service/order/order-rpc.yaml @@ -66,8 +66,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -195,8 +195,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi redisSecret: name: order-redis key: password @@ -231,8 +231,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi podSecurityContext: runAsUser: 1000 fsGroup: 1000 diff --git a/deploy/k8s/service/player/player-api.yaml b/deploy/k8s/service/player/player-api.yaml index 03d477b..e2ffe56 100644 --- a/deploy/k8s/service/player/player-api.yaml +++ b/deploy/k8s/service/player/player-api.yaml @@ -35,8 +35,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/player/player-rpc.yaml b/deploy/k8s/service/player/player-rpc.yaml index 0c230c8..dc1a5e6 100644 --- a/deploy/k8s/service/player/player-rpc.yaml +++ b/deploy/k8s/service/player/player-rpc.yaml @@ -66,8 +66,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -166,8 +166,8 @@ spec: # cpu: 100m # memory: 128Mi # limits: -# cpu: 500m -# memory: 512Mi +# cpu: 50m +# memory: 128Mi # redisSecret: # 记得创建密码 # name: player-rpc-redis # key: password @@ -204,8 +204,8 @@ spec: # cpu: 100m # memory: 128Mi # limits: -# cpu: 500m -# memory: 512Mi +# cpu: 50m +# memory: 128Mi # podSecurityContext: # runAsUser: 1000 # fsGroup: 1000 diff --git a/deploy/k8s/service/review/review-api.yaml b/deploy/k8s/service/review/review-api.yaml index 326076e..3353d0a 100644 --- a/deploy/k8s/service/review/review-api.yaml +++ b/deploy/k8s/service/review/review-api.yaml @@ -36,8 +36,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/review/review-rpc.yaml b/deploy/k8s/service/review/review-rpc.yaml index a2acfa6..4e38306 100644 --- a/deploy/k8s/service/review/review-rpc.yaml +++ b/deploy/k8s/service/review/review-rpc.yaml @@ -66,8 +66,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -195,8 +195,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi redisSecret: name: review-redis key: password @@ -231,8 +231,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi podSecurityContext: runAsUser: 1000 fsGroup: 1000 diff --git a/deploy/k8s/service/search/search-api.yaml b/deploy/k8s/service/search/search-api.yaml index a5ed9f5..39e477b 100644 --- a/deploy/k8s/service/search/search-api.yaml +++ b/deploy/k8s/service/search/search-api.yaml @@ -36,8 +36,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/search/search-rpc.yaml b/deploy/k8s/service/search/search-rpc.yaml index f6dc780..f2efd67 100644 --- a/deploy/k8s/service/search/search-rpc.yaml +++ b/deploy/k8s/service/search/search-rpc.yaml @@ -66,8 +66,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -195,8 +195,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi redisSecret: name: search-redis key: password @@ -231,8 +231,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi podSecurityContext: runAsUser: 1000 fsGroup: 1000 diff --git a/deploy/k8s/service/shop/shop-api.yaml b/deploy/k8s/service/shop/shop-api.yaml index 85bd17a..cf7a7c5 100644 --- a/deploy/k8s/service/shop/shop-api.yaml +++ b/deploy/k8s/service/shop/shop-api.yaml @@ -35,8 +35,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/shop/shop-rpc.yaml b/deploy/k8s/service/shop/shop-rpc.yaml index 8568c97..3bbb03c 100644 --- a/deploy/k8s/service/shop/shop-rpc.yaml +++ b/deploy/k8s/service/shop/shop-rpc.yaml @@ -65,8 +65,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -165,8 +165,8 @@ spec: # cpu: 100m # memory: 128Mi # limits: -# cpu: 500m -# memory: 512Mi +# cpu: 50m +# memory: 128Mi # redisSecret: # 记得创建密码 # name: shop-rpc-redis # key: password @@ -203,8 +203,8 @@ spec: # cpu: 100m # memory: 128Mi # limits: -# cpu: 500m -# memory: 512Mi +# cpu: 50m +# memory: 128Mi # podSecurityContext: # runAsUser: 1000 # fsGroup: 1000 diff --git a/deploy/k8s/service/snowflake/snowflake.yaml b/deploy/k8s/service/snowflake/snowflake.yaml index 4bab5fe..9469afc 100644 --- a/deploy/k8s/service/snowflake/snowflake.yaml +++ b/deploy/k8s/service/snowflake/snowflake.yaml @@ -35,8 +35,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/user/user-api.yaml b/deploy/k8s/service/user/user-api.yaml index e805e86..848f8b9 100644 --- a/deploy/k8s/service/user/user-api.yaml +++ b/deploy/k8s/service/user/user-api.yaml @@ -36,8 +36,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/user/user-rpc.yaml b/deploy/k8s/service/user/user-rpc.yaml index e220506..496b53b 100644 --- a/deploy/k8s/service/user/user-rpc.yaml +++ b/deploy/k8s/service/user/user-rpc.yaml @@ -82,8 +82,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -178,8 +178,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi redisSecret: name: user-redis key: password @@ -216,8 +216,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi podSecurityContext: runAsUser: 1000 fsGroup: 1000 diff --git a/deploy/k8s/service/user_verifications/user-verifications-rpc.yaml b/deploy/k8s/service/user_verifications/user-verifications-rpc.yaml index 1a7cf3e..71502d8 100644 --- a/deploy/k8s/service/user_verifications/user-verifications-rpc.yaml +++ b/deploy/k8s/service/user_verifications/user-verifications-rpc.yaml @@ -66,8 +66,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -195,8 +195,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi redisSecret: name: user-verifications-redis key: password @@ -231,8 +231,8 @@ spec: cpu: 100m memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi podSecurityContext: runAsUser: 1000 fsGroup: 1000 diff --git a/deploy/k8s/service/wallet/wallet-api.yaml b/deploy/k8s/service/wallet/wallet-api.yaml index 366885e..9b31e92 100644 --- a/deploy/k8s/service/wallet/wallet-api.yaml +++ b/deploy/k8s/service/wallet/wallet-api.yaml @@ -35,8 +35,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi diff --git a/deploy/k8s/service/wallet/wallet-rpc.yaml b/deploy/k8s/service/wallet/wallet-rpc.yaml index af2fc7b..23f4a8f 100644 --- a/deploy/k8s/service/wallet/wallet-rpc.yaml +++ b/deploy/k8s/service/wallet/wallet-rpc.yaml @@ -65,8 +65,8 @@ spec: periodSeconds: 20 resources: requests: - cpu: 500m - memory: 512Mi + cpu: 50m + memory: 128Mi limits: cpu: 1000m memory: 1024Mi @@ -165,8 +165,8 @@ spec: # cpu: 100m # memory: 128Mi # limits: -# cpu: 500m -# memory: 512Mi +# cpu: 50m +# memory: 128Mi # redisSecret: # 记得创建密码 # name: wallet-rpc-redis # key: password @@ -203,8 +203,8 @@ spec: # cpu: 100m # memory: 128Mi # limits: -# cpu: 500m -# memory: 512Mi +# cpu: 50m +# memory: 128Mi # podSecurityContext: # runAsUser: 1000 # fsGroup: 1000