기본 타임존은 UTC 타임존이다. 이를 Asia/Seoul 타임존으로 변경하는 예시를 보자
1. 기존 시간 확인
$ kubectl -n ingress-nginx exec ingress-nginx-controller-7854678f64-mfcdn -it -- date
Sat Aug 1 03:48:23 UTC 2026
실제 로그 출력
[01/Aug/2026:03:46:26 +0000] Remote[20.108.82.216] curl/7.61.1 -> Service[core-3222] -> Pod[20.108.82.208:8080] : GET /core/hostname HTTP/1.1 - Sta[200] ReqLen[115] ResLen[26] Dur[0.010]
2. helm config 수정
controller:
# 타임존 변경
extraEnvs:
- name: TZ
value: Asia/Seoul
3. nginx 파드 재배포
$ helm upgrade ingress-nginx . -f ./<설정파일> -n ingress-nginx --install
4. 타임존 변경 확인
kubectl -n ingress-nginx exec ingress-nginx-controller-67879796d8-xbjw4 -it -- date
Sat Aug 1 13:46:11 KST 2026
실제 로그 출력
[01/Aug/2026:13:44:39 +0900] Remote[20.108.82.238] curl/7.61.1 -> Service[core-3222] -> Pod[20.108.82.193:8080] : GET /core/hostname HTTP/1.1 - Sta[200] ReqLen[115] ResLen[26] Dur[0.003]'Kubernetes' 카테고리의 다른 글
| [KUBERNETES] PriorityClass 사용하기 (0) | 2026.08.12 |
|---|---|
| [KUBERNETES] Longhorn 으로 Block Storage 서버 구성하기 (0) | 2026.08.06 |
| [KUBERNETES] nginx ingress log 포멧 변경하기 (0) | 2026.08.01 |
| [KUBERNETES] ingress-nginx-controller 의 로드밸런싱 정책을 ewma 로 변경하기 (0) | 2026.08.01 |
| [KUBERNETES] Ingress 에서 base path 를 기준으로 연결 Service 구분하기 (0) | 2026.08.01 |