GCP Kubernetes의 Python 로깅 (Python logging in GCP kubernetes)


문제 설명

GCP Kubernetes의 Python 로깅 (Python logging in GCP kubernetes)

도커화된 파이썬 애플리케이션이 있습니다. GCP Kubernetes에 컨테이너를 배포하고 싶습니다. logging 모듈을 사용하여 애플리케이션에 로그를 포함했습니다. 내 질문은 기본적으로 로그가 stackdriver에 저장되거나 logging 모듈과 통합된 google.cloud.logging을 사용해야 한다는 것입니다. stackdriver에 로그를 저장하시겠습니까?


참조 솔루션

방법 1:

Take a look at this documentation on how to make Py and Stackdriver work.

(by bigbountyLuis Javier Alvarez Rodriguez)

참조 문서

  1. Python logging in GCP kubernetes (CC BY‑SA 2.5/3.0/4.0)

#google-kubernetes-engine #python-logging #stackdriver






관련 질문

보안 비밀에 대한 Google 클라우드 컨테이너 클러스터 환경 변수 (Google cloud container cluster environmental variables for secrets)

GKE에서 로컬 레지스트리 이미지를 삭제할 수 없습니다. (Unable to delete local registry images in GKE)

k8s 클러스터용 NAT 게이트웨이 IP가 포드에 반영되지 않음 (NAT Gateway IP for k8s cluster not reflected in pods)

GKE에서 scale-down-utilization-threshold를 정의할 수 있나요? (Is definining scale-down-utilization-threshold on GKE possible?)

GKE 노드당 최대 영구 디스크 (GKE Maximum persistent disks per node)

내 Google Kubernetes 클러스터로 Kubectl 컨텍스트를 변경할 수 없음 (Unable to Change Kubectl Context to my Google Kubernetes Cluster)

오염되지 않은 노드로 예약된 Kubernetes 포드 (Kubernetes pods scheduled to non-tainted node)

SPIFFE/SPIRE 서버를 GKE의 모든 노드에 설치할 수 있나요? (Can SPIFFE/SPIRE Server be installed on GKE's any node?)

Kubernetes LoadBalancer에 TSL을 추가하는 동시에 컨테이너로 수명이 긴 TCP 연결 전달도 지원합니다. (Adding TSL to a Kubernetes LoadBalancer while also supporting forwarding a long lived TCP connection to a container)

클러스터 초기화 대기 시간이 초과되었습니다. 노드 자동 업그레이드가 실패하거나 오류와 함께 실행됩니다. (Timed out waiting for cluster initialization, Auto upgrade of nodes fail / or Run with error)

Kubernetes Slack Webhook 오류 502에서 실행 중인 Grafana (Grafana running in Kubernetes Slack Webhook Error 502)

Kubernetes 네트워크 정책 - 트래픽이 특정 포트를 통해서만 서비스되도록 허용 (Kubernetes Network Policy - Allowing traffic to service over specific port only)







코멘트