-
Notifications
You must be signed in to change notification settings - Fork 377
Expand file tree
/
Copy pathpodsvc.test.yaml
More file actions
70 lines (70 loc) · 1.07 KB
/
Copy pathpodsvc.test.yaml
File metadata and controls
70 lines (70 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: v1
kind: Pod
metadata:
name: test
labels:
app: test
spec:
containers:
- name: tcp-echo
image: busybox
command:
- nc
- -k
- -l
- -p
- '2000'
- -e
- sh
- -c
- |
echo "Received new TCP connection" >&2
while read msg
do
echo "Received: $msg" >&2
echo "You said: $msg"
done
echo "Connection closed" >&2
echo >&2
ports:
- name: tcp2000
containerPort: 2000
protocol: TCP
- name: udp-echo
image: busybox
command:
- nc
- -u
- -k
- -l
- -p
- '3000'
ports:
- name: udp3000
containerPort: 3000
protocol: UDP
- name: grpc-echo
image: quay.io/mhausenblas/yages:0.1.0
command:
ports:
- name: grpc9000
containerPort: 9000
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: test
spec:
selector:
app: test
ports:
- name: tcp2000
port: 2000
protocol: TCP
- name: udp3000
port: 3000
protocol: UDP
- name: grpc9000
port: 9000
protocol: TCP