본문 바로가기

클라우드(Cloud)/쿠버네티스(Kubernetes)8

[Kubernetes] kubeadm init 시, bridge-nf-call-iptables does not exist 에러 해결 k8s 설치하기 위해 kubeadm init 명령 시, 다음과 같이 에러가 발생하는 경우,아래의 명령을 입력:modprobe br_netfilter이후, kubeadm init 명령을 실행 2024. 6. 10.
[Kubernetes] 쿠버네티스 NodeAffinity 실습 실습1) blue pod는 nginx 이미지로 배포하였으며, 각 노드에 pod가 스케줄링되어 있는 상태입니다. p.s, node01에는 lable color=blue로 설정되어 있습니다. controlplane ~ ➜ kubectl get pod -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES blue-7698dfcb9f-7z9dq 1/1 Running 0 19s 10.244.1.3 node01 blue-7698dfcb9f-rtg9j 1/1 Running 0 19s 10.244.1.2 node01 blue-7698dfcb9f-s8qns 1/1 Running 0 19s 10.244.0.4 controlplane 여기.. 2023. 5. 4.
[Kubernetes] 쿠버네티스 리소스 제한으로 인한 OOM killed 트러블슈팅 (Resource Requirements) 컨테이너는 다음과 같이 리소스의 requests 및 limits 설정되어 있습니다. limits - 10Mi requests - 5Mi 하지만, 컨테이너에서 15M 메모리를 사용하고 있어 OOM이 발생할 수 있습니다. apiVersion: v1 kind: Pod metadata: name: elephant namespace: default spec: containers: - args: - --vm - "1" - --vm-bytes - 15M - --vm-hang - "1" command: - stress image: polinux/stress imagePullPolicy: Always name: mem-stress resources: limits: memory: 10Mi requests: memory: .. 2023. 5. 3.
[Kubernetes] 쿠버네티스 Security Contexts 사용 예제 다음과 같이 ubuntu-sleeper 파드/컨테이너에 SYS_TIME 및 NET_ADMIN 권한을 부여합니다. Pod Name: ubuntu-sleeper Image Name: ubuntu SecurityContext: Capability SYS_TIME SecurityContext: Capability NET_ADMIN ubuntu_sleeper_sc.yaml apiVersion: v1 kind: Pod metadata: name: ubuntu-sleeper namespace: default spec: containers: - command: - sleep - "4800" image: ubuntu name: ubuntu-sleeper securityContext: capabilities: add: [.. 2023. 5. 2.
반응형