53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f ./docker-compose-basic-nonrf.yaml
|
|
kompose.version: 1.26.0 (40646f47)
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.service: oai-ext-dn
|
|
app.kubernetes.io/part-of: CN-noNRF
|
|
name: oai-ext-dn
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: oai-ext-dn
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f ./docker-compose-basic-nonrf.yaml
|
|
kompose.version: 1.26.0 (40646f47)
|
|
k8s.v1.cni.cncf.io/networks: oai-dn-net
|
|
creationTimestamp: null
|
|
labels:
|
|
io.kompose.network/demo-oai-public-net: "true"
|
|
io.kompose.service: oai-ext-dn
|
|
spec:
|
|
serviceAccountName: oai-sa
|
|
containers:
|
|
- args:
|
|
- /bin/bash
|
|
- -c
|
|
- 'trap : SIGTERM SIGINT; sleep infinity & wait'
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- ' apt update; apt install -y procps iptables iproute2 iperf iputils-ping; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip route add 12.1.1.0/24 via 192.168.33.15 dev net1; ip route; sleep infinity'
|
|
image: oaisoftwarealliance/trf-gen-cn5g:latest
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- /bin/bash -c "ip r | grep 12.1.1"
|
|
failureThreshold: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
name: oai-ext-dn
|
|
resources: {}
|
|
securityContext:
|
|
privileged: true
|
|
restartPolicy: Always
|
|
status: {}
|