K8s

Definition

K8s, short for Kubernetes, is an open-source platform designed to automate the deployment, scaling, and operation of application containers. It provides a framework to run distributed systems resiliently, managing the lifecycle of containerized applications and services. Kubernetes supports a wide range of container tools and orchestrates computing, networking, and storage infrastructure on behalf of user workloads.

Secure Settings Example

apiVersion: v1
kind: Pod
metadata:
  name: secure-pod
spec:
  containers:
  - name: secure-container
    image: myapp:latest
    securityContext:
      runAsUser: 1000
      runAsNonRoot: true
      readOnlyRootFilesystem: true
  automountServiceAccountToken: false

Insecure Settings Example

apiVersion: v1
kind: Pod
metadata:
  name: insecure-pod
spec:
  containers:
  - name: insecure-container
    image: myapp:latest
    securityContext:
      privileged: true
      runAsUser: 0
  automountServiceAccountToken: true