# Cis Gke V180 4.2.1

> Ensure that the cluster enforces Pod Security Standard Baseline profile or stricter for all namespaces (Manual)

- Skill: `cyberstrikeus/cis-gke-v180-4-2-1` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cyberstrikeus/cis-gke-v180-4-2-1`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cyberstrikeus/cis-gke-v180-4-2-1/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: cyberstrikeus (https://skillmd.com/u/cyberstrikeus)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/cyberstrikeus/cis-gke-v180-4-2-1

---


# 4.2.1 Ensure that the cluster enforces Pod Security Standard Baseline profile or stricter for all namespaces (Manual)

## Profile Applicability

- Level 1

## Description

The Pod Security Standard Baseline profile defines a baseline for container security. You can enforce this by using the built-in Pod Security Admission controller.

## Rationale

Without an active mechanism to enforce the Pod Security Standard Baseline profile, it is not possible to limit the use of containers with access to underlying cluster nodes, via mechanisms like privileged containers, or the use of hostPath volume mounts.

## Impact

Enforcing a baseline profile will limit the use of containers.

## Audit

Run the following command to list the namespaces that don't have the baseline policy enforced.

```bash
diff \
<(kubectl get namespace -l pod-security.kubernetes.io/enforce=baseline -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}') \
<(kubectl get namespace -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}')
```

## Remediation

Ensure that Pod Security Admission is in place for every namespace which contains user workloads.
Run the following command to enforce the Baseline profile in a namespace:

```bash
kubectl label namespace <namespace-name> pod-security.kubernetes.io/enforce=baseline
```

## Default Value

By default, Pod Security Admission is enabled but no policies are in place.

## References

None specified.

## CIS Controls

| Controls Version | Control                                                                            | IG 1 | IG 2 | IG 3 |
| ---------------- | ---------------------------------------------------------------------------------- | ---- | ---- | ---- |
| v8               | 16.7 Use Standard Hardening Configuration Templates for Application Infrastructure |      | \*   | \*   |
| v7               | 5.1 Establish Secure Configurations                                                | \*   | \*   | \*   |
| v7               | 5.2 Maintain Secure Images                                                         |      | \*   | \*   |

