0
apiVersion: v1
kind: Pod
metadata:
  name: test
  labels:
    app: test
spec:
  affinity:
      podAntiAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
        - labelSelector:
            matchExpressions:
            - key: app
              operator: NotIn
              values:
              - p9
          topologyKey: kubernetes.io/hostname
  containers:
  - name: nginx-container
    image: nginx:latest
    ports:
    - containerPort: 80

where this pod will place?

Schedule is pending for me, what would be the reason for this?

result

amrutha
  • 5
  • 1
  • 3

0 Answers0