From 28c33300b7f9f48c96049dfa4cb168275cdbfebc Mon Sep 17 00:00:00 2001 From: first-lounge Date: Thu, 5 Feb 2026 16:22:23 +0900 Subject: [PATCH 1/7] =?UTF-8?q?fix(#294):=20gateway.yml=20=EC=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/spot-gateway.yml | 21 ++++----- infra/k8s/base/fluent-bit.yaml | 81 ++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 12 deletions(-) create mode 100644 infra/k8s/base/fluent-bit.yaml diff --git a/config/spot-gateway.yml b/config/spot-gateway.yml index 7196a961..e928c607 100644 --- a/config/spot-gateway.yml +++ b/config/spot-gateway.yml @@ -3,27 +3,27 @@ spring: gateway: routes: - id: user-auth - uri: ${SPOT_USER_URI:http://spot-user:8081} + uri: ${SERVICE_URL_USER:http://spot-user:8081} predicates: - Path=/api/login,/api/join,/api/auth/refresh - id: user-service - uri: ${SPOT_USER_URI:http://spot-user:8081} + uri: ${SERVICE_URL_USER:http://spot-user:8081} predicates: - Path=/api/users/**,/api/admin/** - id: store-service - uri: ${SPOT_STORE_URI:http://spot-store:8083} + uri: ${SERVICE_URL_STORE:http://spot-store:8083} predicates: - - Path=/api/stores/**,/api/categories/**,/api/reviews/** + - Path=/api/stores/** - id: order-service - uri: ${SPOT_ORDER_URI:http://spot-order:8082} + uri: ${SERVICE_URL_ORDER:http://spot-order:8082} predicates: - Path=/api/orders/** - id: payment-service - uri: ${SPOT_PAYMENT_URI:http://spot-payment:8084} + uri: ${SERVICE_URL_PAYMENT:http://spot-payment:8084} predicates: - Path=/api/payments/** @@ -34,17 +34,14 @@ spring: filters: - SetStatus=403 - - +# 테스트용 마커 (설정 로드 확인용) test: marker: spot-gateway-yml-loaded +# 로깅과 매니지먼트는 최상위 레벨(spring과 동일 레벨)에 있어야 합니다. logging: level: - org.springframework.boot.context.config: DEBUG org.springframework.cloud.gateway: DEBUG - org.springframework.cloud.gateway.route.RouteDefinitionRouteLocator: DEBUG - org.springframework.cloud.gateway.handler.RoutePredicateHandlerMapping: TRACE management: endpoints: @@ -53,4 +50,4 @@ management: include: "*" endpoint: gateway: - enabled: true + enabled: true \ No newline at end of file diff --git a/infra/k8s/base/fluent-bit.yaml b/infra/k8s/base/fluent-bit.yaml new file mode 100644 index 00000000..3dad9289 --- /dev/null +++ b/infra/k8s/base/fluent-bit.yaml @@ -0,0 +1,81 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: fluent-bit-service + namespace: monitoring +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: fluent-bit-read +rules: + - apiGroups: [""] + resources: + - namespaces + - pods + - nodes + - nodes/proxy + verbs: ["get", "list", "watch"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: fluent-bit-read +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: fluent-bit-read +subjects: + - kind: ServiceAccount + name: fluent-bit-service + namespace: monitoring +--- +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: fluent-bit-daemon + namespace: monitoring + labels: + app: fluent-bit +spec: + selector: + matchLabels: + app: fluent-bit + template: + metadata: + labels: + app: fluent-bit + spec: + serviceAccountName: fluent-bit-service + containers: + - name: fluent-bit + image: fluent/fluent-bit:latest + ports: + - containerPort: 2020 + volumeMounts: + - name: varlog + mountPath: /var/log + - name: varlibdockercontainers + mountPath: /var/lib/docker/containers + readOnly: true + - name: fluent-bit-config + mountPath: /fluent-bit/etc/ + resources: + requests: + cpu: "250m" + memory: "256Mi" + limits: + cpu: "500m" + memory: "512Mi" + volumes: + - name: varlog + hostPath: + path: /var/log + - name: varlibdockercontainers + hostPath: + path: /var/lib/docker/containers + - name: fluent-bit-config + configMap: + name: fluent-bit-config + +--- From 5fcaa628f44f96e4b11284b6a00c3837bded5c50 Mon Sep 17 00:00:00 2001 From: first-lounge Date: Thu, 5 Feb 2026 16:26:08 +0900 Subject: [PATCH 2/7] =?UTF-8?q?feat(#294):=20grafana,=20loki,=20fluent-bit?= =?UTF-8?q?=20yaml=20=ED=8C=8C=EC=9D=BC=20=EC=83=9D=EC=84=B1=20=EB=B0=8F?= =?UTF-8?q?=20configmap.yaml=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/k8s/base/configmap.yaml | 105 ++++++++++++++++++++++++++++++++++ infra/k8s/base/grafana.yaml | 74 ++++++++++++++++++++++++ infra/k8s/base/loki.yaml | 72 +++++++++++++++++++++++ infra/k8s/base/namespace.yaml | 5 ++ 4 files changed, 256 insertions(+) create mode 100644 infra/k8s/base/grafana.yaml create mode 100644 infra/k8s/base/loki.yaml diff --git a/infra/k8s/base/configmap.yaml b/infra/k8s/base/configmap.yaml index 5c2a9ff8..7e37eb0e 100644 --- a/infra/k8s/base/configmap.yaml +++ b/infra/k8s/base/configmap.yaml @@ -20,3 +20,108 @@ stringData: SPRING_DATASOURCE_PASSWORD: "secret" JWT_SECRET: "jmXDQDnLqV+lOaPKMR06v4+RQ7aj2cj8LR+zgPOlz/GS989tptPtAmIpyaZHrsLOPqKoVtPus28YeXZTL8O8nw==" TOSS_SECRET_KEY: "test_sk_E92LAa5PVb91Y01y1nXZ37YmpXyJ" +--- +apiVersion: v1 +kind: Secret +metadata: + name: monitoring-secrets + namespace: monitoring +type: Opaque +stringData: + GF_SECURITY_ADMIN_USER: "spot" + GF_SECURITY_ADMIN_PASSWORD: "spot-grafana" +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: grafana-config + namespace: monitoring +data: + datasources.yaml: | + apiVersion: 1 + datasources: + - name: Loki + type: loki + uid: loki + access: proxy + url: http://loki-service.monitoring:3100 + jsonData: + maxLines: 1000 + isDefault: true +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: loki-config + namespace: monitoring +data: + loki-config.yaml: | + auth_enabled: false + + server: + http_listen_port: 3100 + log_level: debug + + common: + path_prefix: /loki + storage: + filesystem: + chunks_directory: /loki/chunks + rules_directory: /loki/rules + replication_factor: 1 + ring: + kvstore: + store: inmemory + + schema_config: + configs: + - from: 2023-01-05 + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: index_ + period: 24h + + # 로그 보관 기간 설정 + limits_config: + retention_period: 168h # 7일 + reject_old_samples: true + reject_old_samples_max_age: 168h + + # 오래된 로그 삭제 설정 + compactor: + working_directory: /loki/compactor + retention_enabled: true + delete_request_store: filesystem +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: fluent-bit-config + namespace: monitoring +data: + fluent-bit.conf: |- + [SERVICE] + Flush 1 + Daemon Off + Log_Level info + + [INPUT] + Name tail + Tag kube.* + Path /var/log/containers/*.log + Mem_Buf_Limit 5MB + + [FILTER] + Name kubernetes + Match kube.* + Kube_URL https://kubernetes.default.svc:443 + + [OUTPUT] + Name loki + Match * + Host loki-service.monitoring + Port 3100 + Labels job=fluent-bit + Line_Format json \ No newline at end of file diff --git a/infra/k8s/base/grafana.yaml b/infra/k8s/base/grafana.yaml new file mode 100644 index 00000000..c0fd45da --- /dev/null +++ b/infra/k8s/base/grafana.yaml @@ -0,0 +1,74 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: grafana-pvc + namespace: monitoring +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: grafana-deploy + namespace: monitoring + labels: + app: grafana +spec: + replicas: 1 + selector: + matchLabels: + app: grafana + template: + metadata: + labels: + app: grafana + spec: + securityContext: # PVC 접근 권한을 위한 설정 + runAsUser: 472 + runAsGroup: 472 + fsGroup: 472 + volumes: + - name: grafana-pv-storage + persistentVolumeClaim: + claimName: grafana-pvc + - name: grafana-config-vol + configMap: + name: grafana-config + containers: + - name: grafana + image: grafana/grafana:latest + envFrom: + - secretRef: + name: monitoring-secrets + ports: + - containerPort: 3000 + resources: + requests: + cpu: "250m" + memory: "512Mi" + limits: + cpu: "500m" + memory: "750Mi" + volumeMounts: + - name: grafana-pv-storage + mountPath: /var/lib/grafana + - name: grafana-config-vol + mountPath: /etc/grafana/provisioning/datasources +--- +apiVersion: v1 +kind: Service +metadata: + name: grafana-service + namespace: monitoring +spec: + type: NodePort + selector: + app: grafana + ports: + - port: 3000 + targetPort: 3000 + nodePort: 30070 diff --git a/infra/k8s/base/loki.yaml b/infra/k8s/base/loki.yaml new file mode 100644 index 00000000..7f59e2f1 --- /dev/null +++ b/infra/k8s/base/loki.yaml @@ -0,0 +1,72 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: loki-pvc + namespace: monitoring +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: loki-deploy + namespace: monitoring + labels: + app: loki +spec: + replicas: 1 + selector: + matchLabels: + app: loki + template: + metadata: + labels: + app: loki + spec: + securityContext: # PVC 접근 권한을 위한 설정 + fsGroup: 10001 + runAsGroup: 10001 + runAsUser: 10001 + volumes: + - name: loki-pv-storage + persistentVolumeClaim: + claimName: loki-pvc + - name: loki-config-vol + configMap: + name: loki-config + containers: + - name: loki + image: grafana/loki:latest + ports: + - containerPort: 3100 + args: + - "-config.file=/etc/loki/loki-config.yaml" + resources: + requests: + cpu: "500m" + memory: "512Mi" + limits: + cpu: "1000m" + memory: "1Gi" + volumeMounts: + - name: loki-pv-storage + mountPath: /loki + - name: loki-config-vol + mountPath: /etc/loki +--- +apiVersion: v1 +kind: Service +metadata: + name: loki-service + namespace: monitoring +spec: + type: ClusterIP + selector: + app: loki + ports: + - port: 3100 + targetPort: 3100 \ No newline at end of file diff --git a/infra/k8s/base/namespace.yaml b/infra/k8s/base/namespace.yaml index 3a936f4b..8d3fbd50 100644 --- a/infra/k8s/base/namespace.yaml +++ b/infra/k8s/base/namespace.yaml @@ -7,3 +7,8 @@ apiVersion: v1 kind: Namespace metadata: name: argocd +--- +apiVersion: v1 +kind: Namespace +metadata: + name: monitoring From 944bd26c1b1f85c2649049e34c3f77224e754fd9 Mon Sep 17 00:00:00 2001 From: first-lounge Date: Thu, 5 Feb 2026 16:28:15 +0900 Subject: [PATCH 3/7] =?UTF-8?q?fix(#294):=20run=5Fk3d=20=EC=89=98=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=EC=97=90=20=EB=AA=A8=EB=8B=88?= =?UTF-8?q?=ED=84=B0=EB=A7=81=20=ED=99=98=EA=B2=BD=20=EA=B5=AC=EC=B6=95=20?= =?UTF-8?q?=EB=AA=85=EB=A0=B9=EC=96=B4=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20?= =?UTF-8?q?ArgoCD=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_k3d.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/run_k3d.sh b/run_k3d.sh index 0846a167..f918f288 100755 --- a/run_k3d.sh +++ b/run_k3d.sh @@ -105,7 +105,8 @@ install_argocd() { kubectl create namespace argocd --dry-run=client -o yaml | kubectl apply -f - # Install ArgoCD - kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml + # [수정] --server-side 추가하여 에러 발생하지 않도록 했음 + kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml --server-side log_info "Waiting for ArgoCD to be ready..." kubectl wait --for=condition=available deployment/argocd-server -n argocd --timeout=300s @@ -135,12 +136,24 @@ deploy_infrastructure() { kubectl apply -f "$SCRIPT_DIR/infra/k8s/base/redis.yaml" kubectl apply -f "$SCRIPT_DIR/infra/k8s/base/kafka.yaml" + # Apply monitoring system (loki, grafana, fluent-bit) + kubectl apply -f "$SCRIPT_DIR/infra/k8s/base/loki.yaml" + kubectl apply -f "$SCRIPT_DIR/infra/k8s/base/grafana.yaml" + kubectl apply -f "$SCRIPT_DIR/infra/k8s/base/fluent-bit.yaml" + log_info "Waiting for infrastructure to be ready..." kubectl wait --for=condition=available deployment/postgres -n spot --timeout=120s kubectl wait --for=condition=available deployment/redis -n spot --timeout=120s kubectl wait --for=condition=available deployment/kafka -n spot --timeout=120s log_info "Infrastructure deployed successfully!" + + log_info "Waiting for monitoring system to be ready..." + kubectl wait --for=condition=available deployment/loki-deploy -n monitoring --timeout=120s + kubectl wait --for=condition=available deployment/grafana-deploy -n monitoring --timeout=120s + kubectl rollout status daemonset/fluent-bit-daemon -n monitoring --timeout=120s + + log_info "Monitoring System deployed successfully!" } deploy_applications() { @@ -179,12 +192,17 @@ show_status() { kubectl get pods -n argocd echo "" + log_info "Pods in monitoring namespace:" + kubectl get pods -n monitoring + echo "" + echo "==============================================" echo -e "${GREEN}K3d cluster is ready!${NC}" echo "" echo "Access points:" echo " - Gateway API: http://localhost:30080" echo " - ArgoCD UI: http://localhost:30090" + echo " - Grafana UI: http://localhost:30070" echo "" echo "ArgoCD credentials:" echo " - Username: admin" From 2a20a2e5e35c34f633a33565836787c3c3e39020 Mon Sep 17 00:00:00 2001 From: first-lounge Date: Thu, 5 Feb 2026 16:58:35 +0900 Subject: [PATCH 4/7] =?UTF-8?q?fix(#294):=20spot-gateway.yml=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/spot-gateway.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/config/spot-gateway.yml b/config/spot-gateway.yml index e928c607..573f32df 100644 --- a/config/spot-gateway.yml +++ b/config/spot-gateway.yml @@ -3,27 +3,27 @@ spring: gateway: routes: - id: user-auth - uri: ${SERVICE_URL_USER:http://spot-user:8081} + uri: ${SPOT_USER_URI:http://spot-user:8081} predicates: - Path=/api/login,/api/join,/api/auth/refresh - id: user-service - uri: ${SERVICE_URL_USER:http://spot-user:8081} + uri: ${SPOT_USER_URI:http://spot-user:8081} predicates: - Path=/api/users/**,/api/admin/** - id: store-service - uri: ${SERVICE_URL_STORE:http://spot-store:8083} + uri: ${SPOT_STORE_URI:http://spot-store:8083} predicates: - - Path=/api/stores/** + - Path=/api/stores/**,/api/categories/**,/api/reviews/** - id: order-service - uri: ${SERVICE_URL_ORDER:http://spot-order:8082} + uri: ${SPOT_ORDER_URI:http://spot-order:8082} predicates: - Path=/api/orders/** - id: payment-service - uri: ${SERVICE_URL_PAYMENT:http://spot-payment:8084} + uri: ${SPOT_PAYMENT_URI:http://spot-payment:8084} predicates: - Path=/api/payments/** @@ -34,20 +34,21 @@ spring: filters: - SetStatus=403 -# 테스트용 마커 (설정 로드 확인용) test: marker: spot-gateway-yml-loaded -# 로깅과 매니지먼트는 최상위 레벨(spring과 동일 레벨)에 있어야 합니다. logging: level: + org.springframework.boot.context.config: DEBUG org.springframework.cloud.gateway: DEBUG + org.springframework.cloud.gateway.route.RouteDefinitionRouteLocator: DEBUG + org.springframework.cloud.gateway.handler.RoutePredicateHandlerMapping: TRACE management: endpoints: web: exposure: - include: "*" + include: health, info, metrics, gateway endpoint: gateway: - enabled: true \ No newline at end of file + access: unrestricted \ No newline at end of file From d7ea9859e9802b9ac0ae298d5f9a5fb7549cb06f Mon Sep 17 00:00:00 2001 From: first-lounge Date: Fri, 6 Feb 2026 09:49:19 +0900 Subject: [PATCH 5/7] =?UTF-8?q?fix(#296):=20docker-compose=EC=97=90=20?= =?UTF-8?q?=EC=A3=BC=EC=9E=85=EB=90=98=EB=8A=94=20yml=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 12 ++---------- spot-gateway/src/main/resources/application.yml | 3 ++- spot-order/src/main/resources/application.yml | 13 +++++++++---- spot-payment/src/main/resources/application.yml | 11 +++++------ spot-store/src/main/resources/application.yml | 12 ++++++------ 5 files changed, 24 insertions(+), 27 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index c8d22b29..f653a8af 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -128,8 +128,8 @@ services: - LOGGING_LEVEL_ROOT=WARN ports: - "8080:8080" - volumes: - - ./config:/config +# volumes: +# - ./config:/config depends_on: - redis - spot-user @@ -152,8 +152,6 @@ services: - DB_HOST=db - KAFKA_BOOTSTRAP_SERVERS=kafka:29092 # 필요 시 추가 - LOGGING_LEVEL_ROOT=WARN - volumes: - - ./config:/config depends_on: - db - redis @@ -176,8 +174,6 @@ services: - DB_HOST=db - KAFKA_BOOTSTRAP_SERVERS=kafka:29092 # 필요 시 추가 - LOGGING_LEVEL_ROOT=WARN - volumes: - - ./config:/config depends_on: - db - redis @@ -196,8 +192,6 @@ services: - DB_HOST=db - KAFKA_BOOTSTRAP_SERVERS=kafka:29092 # 필요 시 추가 - LOGGING_LEVEL_ROOT=WARN - volumes: - - ./config:/config depends_on: - db - redis @@ -217,8 +211,6 @@ services: - DB_HOST=db - KAFKA_BOOTSTRAP_SERVERS=kafka:29092 # 필요 시 추가 - LOGGING_LEVEL_ROOT=WARN - volumes: - - ./config:/config depends_on: - db - redis diff --git a/spot-gateway/src/main/resources/application.yml b/spot-gateway/src/main/resources/application.yml index 8fce1703..3451e401 100644 --- a/spot-gateway/src/main/resources/application.yml +++ b/spot-gateway/src/main/resources/application.yml @@ -3,7 +3,8 @@ spring: name: spot-gateway config: import: - # bootRun용 + # bootRun - optional:classpath:/spot-gateway.yml + # docker-compose - optional:file:/config/spot-gateway.yml \ No newline at end of file diff --git a/spot-order/src/main/resources/application.yml b/spot-order/src/main/resources/application.yml index c3b3e882..b6453c49 100644 --- a/spot-order/src/main/resources/application.yml +++ b/spot-order/src/main/resources/application.yml @@ -3,7 +3,12 @@ spring: name: spot-order config: import: - - optional:file:../config/common.yml - - optional:file:../config/kafka-topics.yml - - optional:file:../config/application-secret.yml - - optional:file:../config/spot-order.yml \ No newline at end of file + # bootRun + - optional:classpath:/common.yml + - optional:classpath:/kafka-topics.yml + - optional:classpath:/spot-order.yml + + # docker-compose + - optional:file:/config/common.yml + - optional:file:/config/kafka-topics.yml + - optional:file:/config/spot-order.yml \ No newline at end of file diff --git a/spot-payment/src/main/resources/application.yml b/spot-payment/src/main/resources/application.yml index a43c8114..713d62fd 100644 --- a/spot-payment/src/main/resources/application.yml +++ b/spot-payment/src/main/resources/application.yml @@ -4,12 +4,11 @@ spring: config: import: # bootRun - - optional:file:../config/common.yml - - optional:file:../config/kafka-topics.yml - - optional:file:../config/application-secret.yml - - optional:file:../config/spot-payment.yml + - optional:classpath:/common.yml + - optional:classpath:/kafka-topics.yml + - optional:classpath:/spot-payment.yml # docker-compose - optional:file:/config/common.yml - - optional:file:/config/spot-payment.yml - - optional:file:/config/application-secret.yml \ No newline at end of file + - optional:file:/config/kafka-topics.yml + - optional:file:/config/spot-payment.yml \ No newline at end of file diff --git a/spot-store/src/main/resources/application.yml b/spot-store/src/main/resources/application.yml index f9036e7d..005eb18a 100644 --- a/spot-store/src/main/resources/application.yml +++ b/spot-store/src/main/resources/application.yml @@ -4,12 +4,12 @@ spring: config: import: # bootRun - - optional:file:../config/common.yml - - optional:file:../config/kafka-topics.yml - - optional:file:../config/application-secret.yml - - optional:file:../config/spot-store.yml + # bootRun + - optional:classpath:/common.yml + - optional:classpath:/kafka-topics.yml + - optional:classpath:/spot-store.yml # docker-compose - optional:file:/config/common.yml - - optional:file:/config/spot-store.yml - - optional:file:/config/application-secret.yml \ No newline at end of file + - optional:file:/config/kafka-topics.yml + - optional:file:/config/spot-store.yml \ No newline at end of file From 4bb99023b4b640849251065df501444db16cc48d Mon Sep 17 00:00:00 2001 From: first-lounge Date: Fri, 6 Feb 2026 09:57:40 +0900 Subject: [PATCH 6/7] =?UTF-8?q?fix(#296):=20configmap.yaml=EC=97=90?= =?UTF-8?q?=EC=84=9C=20jwt=20=ED=99=98=EA=B2=BD=20=EB=B3=80=EC=88=98?= =?UTF-8?q?=EB=AA=85=20=EB=B0=8F=20kafka.yaml=EC=97=90=EC=84=9C=20Service?= =?UTF-8?q?=EC=9D=98=20=EC=9D=B4=EB=A6=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/k8s/base/configmap.yaml | 4 ++-- infra/k8s/base/kafka.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infra/k8s/base/configmap.yaml b/infra/k8s/base/configmap.yaml index 7e37eb0e..d5c99e8b 100644 --- a/infra/k8s/base/configmap.yaml +++ b/infra/k8s/base/configmap.yaml @@ -8,7 +8,7 @@ data: SPRING_DATASOURCE_USERNAME: "admin" SPRING_DATA_REDIS_HOST: "redis" SPRING_DATA_REDIS_PORT: "6379" - KAFKA_BOOTSTRAP_SERVERS: "kafka:9092" + KAFKA_BOOTSTRAP_SERVERS: "kafka-svc:9092" --- apiVersion: v1 kind: Secret @@ -18,7 +18,7 @@ metadata: type: Opaque stringData: SPRING_DATASOURCE_PASSWORD: "secret" - JWT_SECRET: "jmXDQDnLqV+lOaPKMR06v4+RQ7aj2cj8LR+zgPOlz/GS989tptPtAmIpyaZHrsLOPqKoVtPus28YeXZTL8O8nw==" + SPRING_JWT_SECRET: "jmXDQDnLqV+lOaPKMR06v4+RQ7aj2cj8LR+zgPOlz/GS989tptPtAmIpyaZHrsLOPqKoVtPus28YeXZTL8O8nw==" TOSS_SECRET_KEY: "test_sk_E92LAa5PVb91Y01y1nXZ37YmpXyJ" --- apiVersion: v1 diff --git a/infra/k8s/base/kafka.yaml b/infra/k8s/base/kafka.yaml index 2f6a53e9..b7339a8f 100644 --- a/infra/k8s/base/kafka.yaml +++ b/infra/k8s/base/kafka.yaml @@ -41,7 +41,7 @@ spec: - name: KAFKA_LISTENERS value: "INTERNAL://0.0.0.0:29092,EXTERNAL://0.0.0.0:9092,CONTROLLER://0.0.0.0:19093" - name: KAFKA_ADVERTISED_LISTENERS - value: "INTERNAL://kafka:29092,EXTERNAL://kafka:9092" + value: "INTERNAL://kafka-svc:29092,EXTERNAL://kafka-svc:9092" - name: KAFKA_LISTENER_SECURITY_PROTOCOL_MAP value: "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,CONTROLLER:PLAINTEXT" - name: KAFKA_INTER_BROKER_LISTENER_NAME @@ -82,7 +82,7 @@ spec: apiVersion: v1 kind: Service metadata: - name: kafka + name: kafka-svc namespace: spot spec: selector: From ff2884384fbdbe28384d5794cff794735272170e Mon Sep 17 00:00:00 2001 From: first-lounge Date: Fri, 6 Feb 2026 09:58:46 +0900 Subject: [PATCH 7/7] =?UTF-8?q?fix(#296):=20fluent-bit=EC=9D=98=20?= =?UTF-8?q?=EB=A6=AC=EC=86=8C=EC=8A=A4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/k8s/base/fluent-bit.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infra/k8s/base/fluent-bit.yaml b/infra/k8s/base/fluent-bit.yaml index 3dad9289..9a32036b 100644 --- a/infra/k8s/base/fluent-bit.yaml +++ b/infra/k8s/base/fluent-bit.yaml @@ -62,11 +62,11 @@ spec: mountPath: /fluent-bit/etc/ resources: requests: - cpu: "250m" - memory: "256Mi" + cpu: "10m" + memory: "25Mi" limits: - cpu: "500m" - memory: "512Mi" + cpu: "100m" + memory: "100Mi" volumes: - name: varlog hostPath: