-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path01-deployment.yaml
More file actions
39 lines (39 loc) · 936 Bytes
/
01-deployment.yaml
File metadata and controls
39 lines (39 loc) · 936 Bytes
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
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: udp-ping-pong
spec:
replicas: 1
template:
metadata:
labels:
app: udp-ping-pong
spec:
initContainers:
- name: wait
image: Demonware/vip-dep-init:v0.0.1
imagePullPolicy: Always
resources:
requests:
cpu: 100m
memory: "64Mi"
limits:
cpu: 100m
memory: "64Mi"
containers:
- name: udp
image: Demonware/udp-ping-pong:v0.0.1-3-g391f8c5
command:
- /bin/sh
- -c
- "ip=$(ip addr show tunl0 | grep inet | awk '{print $2}' | cut -d'/' -f1); exec /app -url=$ip:12161"
imagePullPolicy: Always
ports:
- containerPort: 12161
resources:
requests:
cpu: 0.5
memory: "128Mi"
limits:
cpu: 0.5
memory: "128Mi"