mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-14 21:57:49 +08:00
29 lines
632 B
YAML
29 lines
632 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: pingtest
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: pingtest
|
||
|
replicas: 2
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: pingtest
|
||
|
spec:
|
||
|
affinity:
|
||
|
podAntiAffinity:
|
||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
- labelSelector:
|
||
|
matchExpressions:
|
||
|
- key: app
|
||
|
operator: In
|
||
|
values:
|
||
|
- pingtest
|
||
|
topologyKey: "kubernetes.io/hostname"
|
||
|
containers:
|
||
|
- name: busybox
|
||
|
image: busybox
|
||
|
command: ["/bin/sh", "-ec", "sleep 10000"]
|