Cloud/NCP

NKS ν΄λŸ¬μŠ€ν„° ꡬ좕을 μœ„ν•œ μ€€λΉ„

uuuhhh 2022. 11. 13. 00:01
🐀 NCP : Naver Cloud Platform
     NKS : Naver Kubernetes Service

 

β–ͺ︎ NKS ν΄λŸ¬μŠ€ν„° ꡬ좕을 μœ„ν•œ ν•„μš”ν•œ 것 및 μ€€λΉ„


  • Subnet λŒ€μ—­ μ„€μ • μ£Όμ˜μ‚¬ν•­
    • Docker Bridge λŒ€μ—­μ˜ μΆ©λŒμ„ λ°©μ§€ν•˜κΈ° μœ„ν•΄ 172.17.0.0/16 λ²”μœ„ λ‚΄μ˜ Private Subnet, λ‘œλ“œ λ°ΈλŸ°μ„œ μ „μš© Subnet μ‚¬μš© λΆˆκ°€
VPC Kubernetes ν΄λŸ¬μŠ€ν„°λ₯Ό μƒμ„±ν•˜κΈ° μœ„ν•œ 가상 ν΄λΌμš°λ“œ 곡간
Private Subnet 가상 ν΄λΌμš°λ“œ 곡간 λ‚΄μ˜ Private μ„œλΈŒλ„· Private λŒ€μ—­(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) λ‚΄μ—μ„œ /17~/26 λ²”μœ„μ— ν•΄λ‹Ήλ˜λŠ” μ„œλΈŒλ„·λ§Œ μ‚¬μš© κ°€λŠ₯
Load Balancer Subnet ν΄λŸ¬μŠ€ν„°μ™€ 연동할 Load Balancerλ₯Ό μœ„ν•œ μ„œλΈŒλ„· Private λŒ€μ—­(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) λ‚΄μ—μ„œ /17~/26 λ²”μœ„μ— ν•΄λ‹Ήλ˜λŠ” μ„œλΈŒλ„·λ§Œ μ‚¬μš© κ°€λŠ₯
NAT Gateway μ•„μ›ƒλ°”μš΄λ“œ 인터넷 νŠΈλž˜ν”½μ„ ν™œμ„±ν™”ν•˜κΈ° μœ„ν•œ κ²Œμ΄νŠΈμ›¨μ΄

 

  • VPC 생성
    • 192.168.0.0 - 192.168.255.255

 

  • Private Subnet 생성
    • 192.168.0.0 - 192.168.0.255
    • Internet Gateway - N
    • μš©λ„ - 일반

 

  • Load Balancer Subnet 생성
    • 192.168.0.0 - 192.168.0.255
    • Internet Gateway - N
    • μš©λ„ - LoadBalancer

 

  • NAT Gateway 생성

 

  • NGW Route Table μ„€μ •
    • Destination
      • λͺ©μ μ§€ 곡인 IP μ£Όμ†Œλ₯Ό CIDR ν˜•νƒœλ‘œ μž…λ ₯
      • 0.0.0.0/0 → 인터넷 전체
    • Target Type
      • λͺ©μ μ§€μ™€ ν†΅μ‹ ν•˜κΈ° μœ„ν•œ λ‹€μŒ Hop νƒ€μž…
    • Target Name
      • λͺ©μ μ§€μ™€ ν†΅μ‹ ν•˜κΈ° μœ„ν•œ λ‹€μŒ Hop 이름