apiVersion: apps/v1
kind: Deployment
metadata:
  name: centos
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: centos
  template:
    metadata:
      labels:
        app: centos
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: business
                operator: In
                values:
                  - double
      containers:
      - image: centos:latest
        name: centos
        command: ["/bin/sh"]
        args: ["-c", "while true; do date; sleep 1; done"]
