apiVersion: v1 kind: Pod metadata: name: nginx-host-network-disallowed labels: app: nginx-host-network-disallowed spec: hostNetwork: true securityContext: supplementalGroups: - 101 fsGroup: 101 containers: - name: nginx image: nginxinc/nginx-unprivileged:1.19 resources: limits: cpu: 1 memory: 1Gi requests: cpu: 1 memory: 1Gi ports: - containerPort: 8080 hostPort: 8080 protocol: TCP securityContext: runAsUser: 101 runAsGroup: 101 capabilities: drop: - ALL allowPrivilegeEscalation: false readinessProbe: httpGet: scheme: HTTP path: /index.html port: 8080 livenessProbe: httpGet: scheme: HTTP path: /index.html port: 8080