---
sourceDocument: Brazil IT Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/it-service-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# Kubernetes policies

# Kubernetes policies in DevOps Config {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 5 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Kubernetes policies in DevOps Config

The DevOps Config Policy content pack includes a predefined set of Kubernetes policies designed to validate your Kubernetes configuration for security and operational best practices.
These policies help ensure that your Kubernetes deployment adheres to recommended configurations, improving security and performance.
Note that starting with the Washington D.C.
release, DevOps Config is being phased out for new instances but remains supported for existing users.
Show full answer Show less  
The default policies cannot be modified directly but can be copied and customized to fit your specific environment and compliance requirements.

## Key Policies and Their Purpose

* **Admission Control and Authentication**: Policies validate that admission plugins like AlwaysPullImages are enabled, basic auth files are not used, and token or service account key files are correctly specified to secure API server access.
* **Security Settings on Pods and Containers**: Several policies enforce running containers as non-root users, dropping unnecessary capabilities, preventing privilege escalation, and ensuring containers run without privileged access or SYSADMIN capabilities.
* **Resource Requests and Limits**: Policies check that CPU and memory resource requests are within defined limits to maintain resource governance.
* **Networking and API Server Configuration**: Policies verify secure bind addresses, HTTPS communication with kubelet, and proper secure port settings to avoid exposing insecure endpoints.
* **File System and Profile Configurations**: Enforce read-only root file systems on containers and require seccomp profiles to restrict risky system calls.
* **RBAC and Access Control**: Ensure Role-Based Access Control rules do not use wildcards, reducing overly permissive access.
* **Docker and Image Management**: Checks prevent exposing the Docker daemon socket and enforce imagePullPolicy to Always for container images.

## Practical Benefits for ServiceNow Customers

* Use these policies to automate compliance checks on your Kubernetes configurations, reducing manual auditing and risk of misconfiguration.
* Customize copies of these policies to align with your organization's specific security and operational standards.
* Maintain strong security postures by enforcing user privileges, resource limits, and secure communication protocols within your Kubernetes clusters.
* Leverage these policies to support governance and lifecycle management of Kubernetes configurations within your DevOps pipelines.  
By default, the DevOps Config Policy content pack contains a set of policies to validate your Kubernetes configuration.
Important:  
Starting with the Washington D.C. release, DevOps Config is being prepared for future deprecation. It will be hidden and no longer activated on new instances but will continue to be supported. You can use or customize these default DevOps Config policies to validate that your configuration data content is conformable, or [administrate the full life cycle of PaCE policies](https://www.servicenow.com/docs/access?context=pace-managing-policies&version=brazil&pubname=brazil-servicenow-platform&ft:locale=en-US).  
Note:  
You can't modify the default policies. However, you can make a copy of the policy and customize your copy.

|-|
| [A](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__a) \| [B](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__b) \| [C](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__c) \| [D](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__d) \| [I](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__i) \| [K](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__k) \| [M](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__m) \| [N](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__n) \| [P](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__p) \| [R](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__r) \| [S](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__s) \| [T](https://www.servicenow.com/docs/~YSF_98qTSLhhoIFcbZdCw#devops-config-k8s-policies__t) |
[Table 1. First-letter navigation for policies on this page]

{#devops-config-k8s-policies__table_gsp_4vm_nzb}

## Always Pull Images Admission Control Plugin Is Enabled (container_always_pull_images_plugin_is_enabled) {#devops-config-k8s-policies__a}

Checks whether the `AlwaysPullImages` admission controller plugin is enabled for the Kubernetes API server.

Results into a non-compliant status when the `AlwaysPullImages` plugin is not specified with the `--enable-admission-plugins` argument when using the `kube-apiserver` command.

## Basic Auth File Isn't Set (container_basic_auth_file_is not_set) {#devops-config-k8s-policies__b}

Checks whether the Kubernetes API server is not using the basic user authentication mechanism.

Results into a non-compliant status when the `--basic-auth-file` argument is specified for a container when using the `kube-apiserver` command.

## Bind Address Isn't Set (container_bind_address_not_set_to_localhost) {#devops-config-k8s-policies__section_mzm_1t1_wxb}

Checks whether the bind address of the Kubernetes scheduler or Kubernetes controller manager is not `127.0.0.1`.

Results into a non-compliant status when the `--bind-address` argument is set to `127.0.0.1` for a container when using the `kube-controller-manager` or `kube-scheduler`
command.

## Containers Don't Run With Low UID (container_uid_minimum_limit) {#devops-config-k8s-policies__c}

Checks whether the UID of each container within a Kubernetes pod is greater than or equal to the specified minimum UID value.

Results into a non-compliant status if the UID defined for a container is less than the minimum UID value. If the UID is not defined for a container, the UID of the associated pod is validated.

Input argument
:   min_uid

    * The minimum UID value required for the containers in a pod.
    * Default value: `10000`
    * Type: Integer
    * Mandatory: False
    {#devops-config-k8s-policies__ul_amt_12r_wxb}

## Containers Require Drop Capabilities (container_requires_drop_capabilities) {#devops-config-k8s-policies__section_y2d_zw1_wxb}

Checks whether the drop capabilities are defined for containers within a Kubernetes pod.

Results into a non-compliant status when the drop capabilities for a container are not defined.

## Containers Run as a Non-Root User (container_run_as_nonroot_user) {#devops-config-k8s-policies__section_g3v_jw1_wxb}

Checks whether the containers within a Kubernetes pod run only as a non-root user to limit the exploitability of security misconfiguration and to restrict an attacker's possibilities in case of compromise.

Results into a non-compliant status when the `runAsNonRoot` key for a container is set to `false` or the user ID (UID) of a container is zero.

## Containers Run Without Privilege Access (container_is_not_privileged) {#devops-config-k8s-policies__section_nsh_hx1_wxb}

Checks whether the containers within a Kubernetes pod are run without privileged access.

Results into a non-compliant status when the privileged field for a container is set to `true`.

## Containers Run Without Sys Admin Capability (container_is_without_sys_admin_capability) {#devops-config-k8s-policies__section_yfl_qw1_wxb}

Checks whether the containers within a Kubernetes pod are run without the SYS_ADMIN capability.

Results into a non-compliant status when the SYS_ADMIN privileges are assigned to a container.

## CPU Requests Are Within Limits (container_cpu_request_within _limits) {#devops-config-k8s-policies__section_k2j_qt1_wxb}

Checks whether the containers within a Kubernetes pod are requesting the central processing unit (CPU) resources within the specified CPU limit.

Results into a non-compliant status when either the `limits.cpu` key is not defined or when the value of the `requests.cpu` key exceeds the value of the `limits.cpu` key.

## Docker Daemon Socket Isn't Exposed (docker_daemon_socket_not_exposed) {#devops-config-k8s-policies__d}

Checks whether the Docker daemon socket is not exposed to containers.

Results into a non-compliant status when the `hostPath.path` key for a volume is set to /var/run/docker.sock.

## Image Pull Policy Is Always (container_imagePullPolicy_is_always) {#devops-config-k8s-policies__i}

Checks whether the `imagePullPolicy` field for each container within a Kubernetes pod is set to `Always`.

Results into a non-compliant status if the `imagePullPolicy` field is not defined or the `Always` criterion is not met.

## Insecure Bind Address Isn't Set (container_insecure_bind_address_is_not_set) {#devops-config-k8s-policies__section_usg_cdg_yxb}

Checks whether the Kubernetes API server does not bind to an insecure address that otherwise could enable attackers to connect to the server over the insecure port and potentially read sensitive data in transit.

Results into a non-compliant status when the `insecure-bind-address` argument is specified when using the `kube-apiserver` command.

## Kubelet HTTPS Is True (container_kubelet_https_is_true) {#devops-config-k8s-policies__k}

Checks whether the connections between the Kubernetes API server and the kubelet use the HTTPS protocol to secure data transfer.

Results into a non-compliant status when the `-kubelet-https` argument is set to false when using the `kube-apiserver` command.

## Memory Requests Are Within Limits (container_memory_request_within _limits) {#devops-config-k8s-policies__m}

Checks whether the containers within a Kubernetes pod are consuming resources within the specified memory limit.

Results into a non-compliant status when either the `limits.memory` key is not defined or when the value of the `requests.memory` key exceeds the value of the `limits.memory` key.

## No Wildcard in the RBAC Rule (rbac_no_wildcard_in_rule) {#devops-config-k8s-policies__n}

Checks whether the Role and ClusterRole resources are not using wildcards to refer to objects or actions for role-based access control (RBAC) rule.

Returns into a non-compliant status when the wildcards are used in `apiGroups`, `resources`, or `verbs` for the RBAC rule.

## Privilege Escalation Not Allowed (container_privilege_escalation_not_allowed) {#devops-config-k8s-policies__p}

Checks whether the containers within a Kubernetes pod have less privileges than their parent process.

Results into a non-compliant status when the `allowPrivilegeEscalation` key for a container is either set to `true` or not defined.

## Root Containers Admitted (container_read_only_root_file_system) {#devops-config-k8s-policies__r}

Checks whether the containers within a Kubernetes pod have the root file system set to read only.

Returns into a non-compliant status when the `readOnlyRootFilesystem` key for a container is not defined or set to `false`.

## Seccomp Profile Is Configured (container_seccomp_profile_is_configured ) {#devops-config-k8s-policies__s}

Checks whether the containers within a Kubernetes pod are configured with a secure computing mode (seccomp) profile to restrict potentially dangerous system calls (syscalls).

Results into a non-compliant status when the `seccompProfile.type` key for a container is either not defined or set to a value other than `Localhost` or `RuntimeDefault`.

## Service Account Private Key File Is Specified (container_service_account_private_key_file_is_specified) {#devops-config-k8s-policies__section_fd5_lt1_wxb}

Checks whether the `--service-account-private-key-file` argument is specified with the `kube-controller-manager` command for a container.

Results into a non-compliant status when the `--service-account-private-key-file` argument is not specified for a container when using the `kube-controller-manager` command.

## Secure Port Isn't Set to Zero (container_secure_port_not_set_to_zero) {#devops-config-k8s-policies__section_ocj_ts1_wxb}

Checks whether the Kubernetes API server is not using port `0` for the HTTPS authentication and authorization.

Results into a non-compliant status when the `--secure-port` argument is set to `0` for a container when using the `kube-apiserver` command.

## Token Auth File Isn't Set (token_auth_file_is_not_set) {#devops-config-k8s-policies__t}

Checks whether the Kubernetes API server is not using a static token file for user authentication.

Results into a non-compliant status when the `token-auth-file` argument is specified when using the `kube-apiserver` command.

