github.com/datreeio/datree@v1.9.22-rc/pkg/policy/tests/84/fail/84-fail.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: web-server
     5  spec:
     6    replicas: 3
     7    selector:
     8      matchLabels:
     9        app: web-server
    10    template:
    11      metadata:
    12        labels:
    13          app: web-server
    14      spec:
    15        topologySpreadConstraints:
    16          - maxSkew: 1
    17            whenUnsatisfiable: DoNotSchedule
    18            topologyKey: topology.kubernetes.io/zone
    19            labelSelector:
    20              matchLabels:
    21                app: web-server
    22        containers:
    23          - name: web-app
    24            image: nginx
    25            resources:
    26              requests:
    27                cpu: 1