32 lines
819 B
YAML
32 lines
819 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: netcat
|
|
labels:
|
|
app: netcat
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: netcat
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: netcat
|
|
spec:
|
|
containers:
|
|
# dnsutils is easier to debug DNS issues with than the standard busybox image
|
|
- name: dnsutils
|
|
image: k8s.gcr.io/e2e-test-images/agnhost:2.32
|
|
command:
|
|
["/bin/sh", "-c", "while true; do echo hello | nc -l -p 8080; done"]
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: node-role.kubernetes.io/master
|
|
operator: NotIn
|
|
values:
|
|
- ""
|