apiVersion: v1 kind: Namespace metadata: name: appns --- apiVersion: apps/v1 kind: Deployment metadata: labels: app: nginx name: nginx namespace: appns spec: replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - image: nginx name: nginx --- apiVersion: chaos-mesh.org/v1alpha1 kind: Schedule metadata: name: pod-kill-example namespace: chaos-mesh spec: schedule: '@every 1m' historyLimit: 2 concurrencyPolicy: 'Forbid' type: 'PodChaos' podChaos: #action: pod-kill action: pod-failure mode: one selector: namespaces: - appns