1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/cli/test-mutate/karpenter-annotations-to-nodeselector/patched.yaml

42 lines
1.1 KiB
YAML
Raw Normal View History

apiVersion: v1
kind: Pod
metadata:
name: soft-pod-antiaffinity-1
namespace: sample
annotations:
spot-toleration: 'false'
ownerReferences:
- controller: true
kind: Deployment
apiVersion: v1
uid: test
name: test
spec:
containers:
- name: echo-server
image: hashicorp/http-echo:0.2.3
imagePullPolicy: IfNotPresent
args:
- -listen=:8080
- -text="hello world"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: karpenter.sh/capacity-type
operator: In
values:
- on-demand
- key: karpenter.sh/capacity-type
operator: NotIn
values:
- spot
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: test-pod
topologyKey: kubernetes.io/hostname
weight: 100