max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]; for more information
2025. 3. 1. 19:13ㆍk8s/EFK
원인: node의 max_map_count 용량이 작아서 발생한 문제
조치
방법1: node에 직접 설정
# 임시
sudo sysctl -w vm.max_map_count=262144
# 영구
echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
방법2: daemonset 추가
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: sysctl-settings
namespace: kube-system
spec:
selector:
matchLabels:
name: sysctl-settings
template:
metadata:
labels:
name: sysctl-settings
spec:
hostPID: true
containers:
- name: sysctl
image: busybox
securityContext:
privileged: true
command: ["sh", "-c", "sysctl -w vm.max_map_count=262144"]
방법2: initContaienrs 이용
initContainers:
- name: set-sysctl
image: busybox
securityContext:
privileged: true
command: ["sh", "-c", "sysctl -w vm.max_map_count=262144"]
확인
sysctl vm.max_map_count
'k8s > EFK' 카테고리의 다른 글
metricbeat 설치 (0) | 2025.03.02 |
---|---|
elasticsearch self monitoring 여부 확인 (0) | 2025.03.02 |
elasticsearch cluster 구성을 위한 인증서 생성 (0) | 2025.03.01 |
elasticsearch cluster 구성 (0) | 2025.03.01 |
Elasticsearch max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] (0) | 2025.02.15 |