Kubernetes에서 Oracle이나 Tibero와 같은 DB에서 커널 변수를 설정을 해줘야 Pod가 생성되거나 실행이 되는 경우가 있다. 이를 Kubernetes에서 설정하는 방법은 아래와 같다.
#kernel 설정
# vi /etc/sysctl.conf --- fs.aio-max-nr=1048576 fs.file-max=6815744 net.core.rmem_max=67108864 net.core.wmem_max=67108864 # 적용 확인 # sysctl -p |
# vi /etc/security/limits.conf --- root soft memlock unlimited root hard memlock unlimited root soft nofile 65536 root hard nofile 65536 root soft nproc unlimited root hard nproc unlimited root soft stack 10240 --- # reboot -f # 적용 확인 # ulimit -a |
# crio 설정 # vi /etc/crio/crio.conf --- pids_limit = 32768 |
# kubelet 설정 # vi /etc/usr/lib/systemd/system/kubelet.service.d/10-kubeadm-conf --- ExecStart=/usr/bin/kubelet --allowed-unsafe-sysctls=kernel.sem $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS --- # systemctl daemon-reload # systemctl restart kubelet |
'Cloud > Kubernetes' 카테고리의 다른 글
[Kubernetes] Volume - SAN FC(Fibre Channel) (0) | 2021.03.31 |
---|---|
[Kubernetes] node 추가 / 제거 (0) | 2021.03.29 |
[Kubernetes] Dockerfile을 이용한 Tomcat:9 이미지 만들기 (0) | 2021.03.29 |
[Kubernetes] 파일을 통한 컨테이너 정보 저장(DownwardAPI) (0) | 2021.03.28 |
[Kubernetes] Grafana Configmap을 통한 DashBoard 추가 (0) | 2021.02.17 |