Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.87 KB

manifests.md

File metadata and controls

27 lines (16 loc) · 1.87 KB

How to write Kubernetes application manifests

Namespace

Name

  • Administrators should not create namespace starting with app- as the prefix is reserved for tenants.

Labels

  • All namespaces should have team=xxx labels to clarify their owner.
  • To skip validation/mutation webhook, administrators can use the following special labels.
    • admission.cybozu.com/pod: ignore: With this label, PodMutator and PodValidator are ignored. This label is necessary when the pods in the namespace are required to start without neco-admission webhooks.
    • topolvm.cybozu.com/webhook: ignore: This label disables using the Topolvm webhook used for persistent volumes provided by Topolvm. Administrators should use this label for the namespaces which should be independent of Topolvm. See more details about the label here.
    • pod-security.cybozu.com/policy: privileged: This label indicates that the Pods in the namespace with this label should be created under the unrestricted policy. This implies that pod-security-admission webhook is not called for the Pods in the namespace. This label is necessary when the pods in the namespace are required to start without pod-security-admission webhooks.

Annotations

  • Namespaces can add the following annotations.
    • coil.cybozu.com/pool: <address pool name>: This annotation allows using the specified address pool. See more details here.

Secrets

  • Administrators should not add sensitive secrets to this repository.