{"id":6710,"date":"2022-10-22T22:10:14","date_gmt":"2022-10-22T13:10:14","guid":{"rendered":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=6710"},"modified":"2022-10-28T13:27:34","modified_gmt":"2022-10-28T04:27:34","slug":"kubernetes-%ec%9a%b4%ec%98%81%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=6710","title":{"rendered":"Kubernetes \uc6b4\uc601\ud558\uae30"},"content":{"rendered":"<h1>Kubernetes \uc6b4\uc601\ud558\uae30<\/h1>\n<p>Kubernetes \ud074\ub7ec\uc2a4\ud130 \uc6b4\uc601\uc5d0 \ud544\uc694\ud55c \ub0b4\uc6a9\uc744 \uc815\ub9ac\ud574 \ubd05\ub2c8\ub2e4.<\/p>\n<h2>Kubernetes in production<\/h2>\n<ul>\n<li>\n<p>Infrastructure as Code (IaC)<\/p>\n<p>Terraform \ub4f1\uc744 \uc774\uc6a9\ud574 \ud074\ub7ec\uc2a4\ud130 \uad6c\ucd95\uc744 \ucf54\ub4dc\ud654\ud558\ub294\uac8c \uc88b\ub2e4.<\/p>\n<\/li>\n<li>\n<p>Monitoring &amp; Centralized logging<\/p>\n<p>Prometheus\/Grafana \ub4f1\uc744 \uc774\uc6a9\ud574 \uc11c\ubc84 \ubaa8\ub2c8\ud130\ub9c1\uc744 \uc2dc\uac01\ud654\ud558\ub294\uac8c \uc88b\ub2e4.<\/p>\n<p>Filebeat\/ElasticSearch \ub4f1\uc744 \uc774\uc6a9\ud574 \ub85c\uadf8\ub97c \uc9d1\uc911\ud574 \ub193\ub294\uac8c \uc88b\ub2e4.<\/p>\n<\/li>\n<li>\n<p>Centralized Ingress Controller with SSL certificate management<\/p>\n<p>\uc678\ubd80\uc5d0\uc11c service \uc5d0 \uc9c1\uc811 \uc811\uc18d\ud558\uac8c \ud558\ub294 \uac83\ubcf4\ub2e4,<br \/>\nIngress \ub97c \ud1b5\ud574 \uc811\uc18d\ud558\uac8c \ud558\uace0,<br \/>\nIngress \ub97c \ud55c\uacf3\uc73c\ub85c \ubaa8\uc544,<br \/>\n\uc11c\ube44\uc2a4\uac00 \uc5b4\ub5bb\uac8c \uc678\ubd80\uc5d0 \ub178\ucd9c\ub418\uace0 \uc788\ub294\uc9c0\ub97c \ud55c\ubc88\uc5d0 \uc54c\uc218 \uc788\uac8c \ud558\uc790.<br \/>\nIngress \ub97c \ud55c\uacf3\uc73c\ub85c \ubaa8\uc73c\uba74 SSL \uc778\uc99d\ud0a4 \uad00\ub9ac\ub3c4 \uc26c\uc6cc\uc9c4\ub2e4.<\/p>\n<\/li>\n<li>\n<p>Role-Based Access Control (RBAC)<\/p>\n<\/li>\n<li>\n<p>GitOps Deployments<\/p>\n<p><code>kubectl apply<\/code> \ub97c \uc774\uc6a9\ud55c app \ubc30\ud3ec\ub294 \ube44\ud6a8\uc728\uc801\uc774\ub2e4.<br \/>\nCI\/CD \ud234\uc744 \uc774\uc6a9\ud558\uc790.<br \/>\njenkins\/ArgoCD \uac00 \uc88b\ub2e4.<\/p>\n<\/li>\n<li>\n<p>Secret Management<\/p>\n<p>Hashicorp Vault \ub4f1\uc744 \uc774\uc6a9\ud574 \uc778\uc99d\ud0a4\ub97c \uad00\ub9ac\ud558\uc790.<\/p>\n<\/li>\n<\/ul>\n<h2>helm \uc124\uce58<\/h2>\n<pre><code class=\"language-bash\">curl -fsSL -o get_helm.sh https:\/\/raw.githubusercontent.com\/helm\/helm\/main\/scripts\/get-helm-3\nchmod 700 get_helm.sh\n.\/get_helm.sh\n\nhelm help<\/code><\/pre>\n<h2>Jenkins \uc124\uce58<\/h2>\n<p><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=6777\">\uc5ec\uae30<\/a><\/p>\n<h2>ingress-nginx \uc124\uce58<\/h2>\n<p><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=6780\">\uc5ec\uae30<\/a><\/p>\n<h2>Prometheus\/Grafana \uc124\uce58<\/h2>\n<p><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=6800\">\uc5ec\uae30<\/a><\/p>\n<h2>\uc6f9\ub85c\uadf8 \uad00\ub9ac<\/h2>\n<h3>\uae30\ubcf8\ubc29\ud5a5<\/h3>\n<p>ingress-nginx \ub97c \ud1b5\ud574 \ubaa8\ub4e0 service \uac00 \uc6b4\uc601\ub418\ubbc0\ub85c,<br \/>\ningress-nginx pod \uc5d0 access log \ub97c \uc0dd\uc131\ud558\uac8c \ud558\uace0,<br \/>\naccess log \ub97c PV \uc5d0 \uc800\uc7a5\ud55c\ub2e4.<\/p>\n<p>Fluentd \uac00 \ub85c\uadf8\ub97c \uc870\ud68c\ud574\uc11c S3 and\/or ElasticSeatch \uc5d0 \uc804\uc1a1\ud558\ub3c4\ub85d \ud55c\ub2e4.<\/p>\n<p>\uc77c\ub2e8 \ubc29\ud5a5\uc740 \uc774\ub807\uac8c \uc7a1\uc558\ub294\ub370 \ub354 \uc88b\uc740 \ubc29\ubc95\uc774 \uc788\ub294\uc9c0\ub294 \ucc3e\uc544\ubd10\uc57c\uaca0\uad70\uc694.<\/p>\n<p><a href=\"https:\/\/www.jacobbaek.com\/1364\">\ucc38\uc870<\/a><\/p>\n<h2>MetalLB (Software Load-Balancer)<\/h2>\n<p>MetalLB \uac00 Software Load-Balancer \ub85c \uae30\ub2a5\ud55c\ub2e4.<\/p>\n<p>\uadf8\ub2e5\uc778\ub4ef&#8230;<\/p>\n<pre><code class=\"language-bash\">```\n\n```bash<\/code><\/pre>\n<pre><code class=\"language-bash\"><\/code><\/pre>\n<pre><code class=\"language-bash\"><\/code><\/pre>\n<pre><code class=\"language-bash\"><\/code><\/pre>\n<pre><code class=\"language-bash\"><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Kubernetes \uc6b4\uc601\ud558\uae30 Kubernetes \ud074\ub7ec\uc2a4\ud130 \uc6b4\uc601\uc5d0 \ud544\uc694\ud55c \ub0b4\uc6a9\uc744 \uc815\ub9ac\ud574 \ubd05\ub2c8\ub2e4. Kubernetes in production Infrastructure as Code (IaC) Terraform \ub4f1\uc744 \uc774\uc6a9\ud574 \ud074\ub7ec\uc2a4\ud130 \uad6c\ucd95\uc744 \ucf54\ub4dc\ud654\ud558\ub294\uac8c \uc88b\ub2e4. Monitoring &amp; Centralized logging Prometheus\/Grafana \ub4f1\uc744 \uc774\uc6a9\ud574 \uc11c\ubc84 \ubaa8\ub2c8\ud130\ub9c1\uc744 \uc2dc\uac01\ud654\ud558\ub294\uac8c \uc88b\ub2e4. Filebeat\/ElasticSearch \ub4f1\uc744 \uc774\uc6a9\ud574 \ub85c\uadf8\ub97c \uc9d1\uc911\ud574 \ub193\ub294\uac8c \uc88b\ub2e4. Centralized Ingress Controller with SSL certificate management \uc678\ubd80\uc5d0\uc11c service \uc5d0 \uc9c1\uc811 \uc811\uc18d\ud558\uac8c \ud558\ub294 \uac83\ubcf4\ub2e4,\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=6710\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,17],"tags":[],"class_list":["post-6710","post","type-post","status-publish","format-standard","hentry","category-devops","category-kubernetes"],"_links":{"self":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6710"}],"version-history":[{"count":72,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6710\/revisions"}],"predecessor-version":[{"id":6832,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6710\/revisions\/6832"}],"wp:attachment":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}