문제 설명
Kubernetes Slack Webhook 오류 502에서 실행 중인 Grafana (Grafana running in Kubernetes Slack Webhook Error 502)
GKE(Kubernetes)에서 실행되도록 Grafana를 설정하고 서비스와 기본 Ingress 컨트롤러를 사용하여 인터넷에 엽니다. 모든 것이 문제 없이 작동합니다.
일부 대시보드를 만든 후 slack webhook을 사용하여 Slack 경고를 설정하고 싶었습니다. 모든 세부 정보를 입력한 후 502 불량 게이트웨이 오류가 발생했습니다.
포트 443(기본 슬랙 웹훅 포트)을 여는 두 번째 서비스를 설정하고 kubectl 노출 배포 ‑‑type으로 노출했습니다. =NodePort ‑‑port=443
및 ‑‑type=LoadBalancer
도 운 없이 시도했습니다.
두 번째 Ingress 서비스 포인팅 설정도 시도했습니다. 두 번째 서비스를 사용했지만 readinessProbe 문제가 발생했습니다.
같은 문제를 겪은 사람이 있으며 그렇다면 어떻게 해결되었나요?
참조 솔루션
방법 1:
Network Policy was enabled on the cluster and there were cluster policies denying outgoing traffic. After setting up my network policies for the pods in my own namespace I was able to connect without any issues.