Skip to Content
コードとしてのポリシー
book

コードとしてのポリシー

by Jimmy Ray
March 2025
Intermediate to advanced
556 pages
9h 13m
Japanese
O'Reilly Media, Inc.
Audio summary available
Content preview from コードとしてのポリシー

第7章 OPA/GatekeeperとKubernetes OPA/GatekeeperとKubernetes

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

Kubernetes APIサーバリクエストのためのPaCソリューションといえば、OPA/Gatekeeper(通称Gatekeeper)が最も人気のあるソリューションの1つだ。 GatekeeperはOPAに支えられているが、KubernetesネイティブのCRDを使用して、変異と検証のためのポリシーを構築するように設計されている。 CRDとこの章で後述するConstraint Frameworkを使用することで、Gatekeeperポリシーの表現力と再利用性を高めることができる。

Gatekeeperは非常に成熟したOSSプロジェクトであり、開発者とユーザの強力で活発なコミュニティがある。 以下のリンクは、Gatekeeperについてのより詳細な情報を得るのに役立つ:

この章では、Gatekeeper がどのようにインストールされ、どのように使用されているかを見ていく。この章では、Gatekeeper のインストール方法、使用方法、ポリシー、制約フレームワーク、様々な演算子について説明する。最後に、Gatekeeper の導入を容易にするために最近追加された 3 つの機能、外部データプロバイダ、ポリシーの拡張、gator CLI について説明する。

まずは、Gatekeeperをクラスタ内で演算子として動作させるためのインストールと設定から始めよう。

インストール

Gatekeeperをインストールする方法は複数ある:

  • クベクトル

  • ヘルム

  • 作る

複数のリソースがクラスタレベルとネームスペース・レベルでインストールされるため、私はHelmのパッケージ・マネージャ・アプローチを使用することを好む:

# Add helm repo 
$ helm repo add gatekeeper \ https://open-policy-agent.github.io/gatekeeper/charts
"gatekeeper" has been added to your repositories
# Update helm repos
$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "gatekeeper" chart repository
…
 # Install gatekeeper $ helm install gatekeeper gatekeeper/gatekeeper \ --namespace gatekeeper-system --create-namespace \ --values values.yaml NAME: gatekeeper LAST DEPLOYED: Mon Dec 26 22:07:02 2022 NAMESPACE: gatekeeper-system STATUS: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

クラウドアプリケーションアーキテクチャパターン

クラウドアプリケーションアーキテクチャパターン

Kyle Brown, Bobby Woolf, Joseph Yoder
初めてのGraphQL ―Webサービスを作って学ぶ新世代API

初めてのGraphQL ―Webサービスを作って学ぶ新世代API

Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし

Publisher Resources

ISBN: 9798341627093