본문 바로가기
반응형

IP4

Kubernetes HostAliases로 Pod에 /etc/hosts 항목 추가하기 Kubernetes 환경을 테스트 환경으로 사용하다 보면, DNS에 직접 도메인을 등록하지는 않지만, /etc/hosts 파일에 항목을 추가하여 호스트네임 해석을 제공하기도 합니다.  Kubernetes Pod에 /etc/hosts 파일의 항목을 추가할때, PodSpec의 HostAliases 항목을 사용하여 이러한 사용자 정의 항목을 추가할 수 있다.  주의!컨테이너 내부의 Hosts 파일을 수동으로 변경하면 어떻게 되는가?컨테이너 종료 or 재배포 등등의 액션이 발생했을때, 변경사항이 손실된다.   기본 호스트 파일은 아래와 같을 것이다. 이러한 기본Hosts 항목에 추가하려면 아래와 같이 HostAliases를 사용하면 된다. Ex) "test.remote" 항목을 "10.10.10.3"으로 추가하.. 2025. 3. 24.
RedisClusterNode Validate that the Redis URI are equal when comparing nodes [이슈 현상] Redis Cluster의 Node IP가 변경되어도, RoundRobinSocketAddressSupplier는 변경된 Node IP로 새로고침을 하지 않고, 이전의 IP로 계속 연결을 시도합니다. [환경] Lettuce 버전 : 5.1.8 버전 Redis 버전 : 5.0.5 Kubernetes에서 6개의 Pod로 Redis Cluster를 구축 Statefulset을 통해서 Redis-cluster 배포 Redis Pod중 일부가 재시작되면서, Redis의 NodeID는 같지만, IP가 변경됨 Redis Cluster는 깨지지 않음. Lettuce에서는 Redis Pod의 이전IP를 사용하여 연결을 시도함. [예상되는 동작] 노드의 IP가 변경되면, 변경된IP를 Catch 하여 새로운 .. 2023. 9. 4.
Customize HAProxy Log format(Mode TCP / HTTP) Customizing the HAProxy Logs There are plenty of reasons why you might want to customize the fields captured by the HAProxy logs. For example: the default log format is giving you more information that you need you’re missing an important piece of information with the default log format you need to structure the fields in a way that an external tool can read them you rely on a standard log forma.. 2023. 8. 10.
RedisClusterNode, Redis Node IP 변경 검증 이슈 [이슈 현상] Redis Cluster의 Node IP가 변경되어도, RoundRobinSocketAddressSupplier는 변경된 Node IP로 새로고침을 하지 않고, 이전의 IP로 계속 연결을 시도합니다. [환경] Lettuce 버전 : 5.1.8 버전~6.1.5.RELEASE Redis 버전 : 5.0.5~6.2.6 Kubernetes에서 6개의 Pod로 Redis Cluster를 구축 Statefulset을 통해서 Redis-cluster 배포 Redis Pod중 일부가 재시작되면서, Redis의 NodeID는 같지만, IP가 변경됨 Redis Cluster는 깨지지 않음. Lettuce에서는 Redis Pod의 이전IP를 사용하여 연결을 시도함. [예상되는 동작] 노드의 IP가 변경되면, .. 2021. 12. 27.
반응형