Kubernetes Namespace - CI/CD用語集の定義
Kubernetes namespaceは、単一の物理クラスター内でリソース(pod、service、secret)をスコープ化し分離する仮想クラスターです。名前はnamespace内で一意である必要がありますが、namespaceをまたげば重複できます。
何を分離するか
namespaceは、リソースクォータ、RBAC、network policyの境界を提供します。チームは一般にdev、staging、prodを分けたり、統合テストのために各CI buildに使い捨てのnamespaceを与えたりします。
よく使うコマンド
Terminal
kubectl create namespace ci-build-42
kubectl get pods -n ci-build-42
kubectl delete namespace ci-build-42関連ガイド
Pod - CI/CD Glossary DefinitionPod: A pod is the smallest deployable unit in Kubernetes: one or more containers that share a network namespa…
Horizontal Pod Autoscaler - CI/CD Glossary DefinitionHorizontal Pod Autoscaler: A Horizontal Pod Autoscaler (HPA) is a Kubernetes controller that automatically ch…
Least Privilege - CI/CD Glossary DefinitionLeast Privilege: Least privilege is the principle that an identity (user, service, or CI job) should hold onl…