mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
61 lines
No EOL
1.4 KiB
YAML
61 lines
No EOL
1.4 KiB
YAML
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:
|
|
podAntiAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- podAffinityTerm:
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: test-pod
|
|
topologyKey: kubernetes.io/hostname
|
|
weight: 100
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: soft-pod-antiaffinity-1-copy
|
|
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:
|
|
podAntiAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- podAffinityTerm:
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: test-pod
|
|
topologyKey: kubernetes.io/hostname
|
|
weight: 100 |