전체 글(1104)
-
K8S Ingress Controller Access 로그 확인
# 최근 로그 확인kubectl -n ingress-nginx logs -l app.kubernetes.io/component=controller --tail=100# 실시간 모니터링kubectl -n ingress-nginx logs -f -l app.kubernetes.io/component=controller
2025.08.30 -
K8s IP로 어느 Pod인지 찾기
kubectl get pod -A -o wide |grep {찾을 IP}
2025.08.30 -
Ubuntu 각 입력 라인을 사람이 보기 쉽게 “리스트(list)” 형식으로 출력
sed -n 'l'
2025.08.29 -
FastAPI pod에 올리기 전에 compile 오류만 검증
python3 -m uvicorn --app-dir ./src main:app --reload.env 을 만들어서 필요한 환경변수 설정 필요
2025.08.28 -
Elasticsearch api key 만들기
Dev ToolsPOST /_security/api_key{ "name": "ai", # key 이름 "expiration": "90d", # 만료일 지정, 만료일이 없으면 무제한 "role_descriptors": { "ai_role": { # 별의미 없음(아무거나 적절히 지정) "indices": [ { "names": ["abc-*"], "privileges": ["read", "view_index_metadata"] # 대상 index 조회 권한만 필요한 경우 } ] } }}# 조회GET /_security/api_key?name=ai&owner=true# 만료일 갱신# 만료일을 무제한으로 바꾸는 건..
2025.08.28 -
Elasticsearch index 내용 검색
설정# ES 서비스로 포워드kubectl -n elastic port-forward svc/es-es-http 9200:9200# http/https 체크 (ES에서 http.ssl.disabled=true 주셨다면 http로)curl -s http://localhost:9200/_cluster/health?pretty검색# 계정으로 접속# 최근에 입력된 데이터 1건 조회curl -u "{id:pw}" -X POST "http://localhost:9200/plant-topic-2025.08/_search" \ -H "Authorization: ApiKey ZWN5TDdwZ0Jjcm5oZkZYQUNJcU06dGhxb3ZYTzFTcHU3cTRHb2pUQVB3Zw==" \ -H 'Content-Type:..
2025.08.28