기본 타임존은 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]
블로그 이미지

망원동똑똑이

프로그래밍 지식을 자유롭게 모아두는 곳입니다.

,