From 58d0f4ae5f7ff720262a6630d19b3d077a7ba778 Mon Sep 17 00:00:00 2001 From: James Hong Date: Wed, 12 Aug 2026 20:26:23 +1000 Subject: [PATCH] [ja] Translate docs/tasks/configure-pod-container/enforce-standards-admission-controller.md into Japanese --- .../enforce-standards-admission-controller.md | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 content/ja/docs/tasks/configure-pod-container/enforce-standards-admission-controller.md diff --git a/content/ja/docs/tasks/configure-pod-container/enforce-standards-admission-controller.md b/content/ja/docs/tasks/configure-pod-container/enforce-standards-admission-controller.md new file mode 100644 index 0000000000000..60db0621441aa --- /dev/null +++ b/content/ja/docs/tasks/configure-pod-container/enforce-standards-admission-controller.md @@ -0,0 +1,67 @@ +--- +title: ビルトインのアドミッションコントローラーを設定してPodセキュリティスタンダードを強制する +content_type: task +weight: 240 +--- + +Kubernetesは[Podセキュリティスタンダード](/docs/concepts/security/pod-security-standards)を強制できる、ビルトインの[アドミッションコントローラー](/docs/reference/access-authn-authz/admission-controllers/#podsecurity)を提供しています。 + +アドミッションコントローラーを設定して、クラスター全体のデフォルトと[例外](/docs/concepts/security/pod-security-admission/#exemptions)を設定できます。 + +## {{% heading "prerequisites" %}} + +Podセキュリティアドミッションは、Kubernetes v1.22のアルファリリースに続き、 +Kubernetes v1.23でベータとしてデフォルトで利用可能になりました。 +バージョン1.25以降、Podセキュリティアドミッションは正式リリース(GA)されています。 + +{{% version-check %}} + +Kubernetes {{< skew currentVersion >}}を実行していない場合は、 +実行しているKubernetesバージョンのドキュメントに切り替えて、このページを参照できます。 + +## アドミッションコントローラーを設定する {#configure-the-admission-controller} + +{{< note >}} +`pod-security.admission.config.k8s.io/v1`設定はv1.25+が必要です。 +v1.23とv1.24は、[v1beta1](https://v1-24.docs.kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-admission-controller/)をご利用ください。 +v1.22は、[v1alpha1](https://v1-22.docs.kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-admission-controller/)をご利用ください。 +{{< /note >}} + +```yaml +apiVersion: apiserver.config.k8s.io/v1 +kind: AdmissionConfiguration +plugins: +- name: PodSecurity + configuration: + apiVersion: pod-security.admission.config.k8s.io/v1 # see compatibility note + kind: PodSecurityConfiguration + # Defaults applied when a mode label is not set. + # + # Level label values must be one of: + # - "privileged" (default) + # - "baseline" + # - "restricted" + # + # Version label values must be one of: + # - "latest" (default) + # - specific version like "v{{< skew currentVersion >}}" + defaults: + enforce: "privileged" + enforce-version: "latest" + audit: "privileged" + audit-version: "latest" + warn: "privileged" + warn-version: "latest" + exemptions: + # Array of authenticated usernames to exempt. + usernames: [] + # Array of runtime class names to exempt. + runtimeClasses: [] + # Array of namespaces to exempt. + namespaces: [] +``` + +{{< note >}} +上記のマニフェストは、`--admission-control-config-file`を使用してkube-apiserverに指定する必要があります。 +{{< /note >}} +