oai-openshift-cli-admin/deployments/CoreNetwork/default/oai-ext-dn-deployment.yaml

49 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2023-03-14 04:32:53 -04:00
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f ../docker-compose.yaml
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: oai-ext-dn
app.kubernetes.io/part-of: test-deployment
name: oai-ext-dn-test
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: oai-ext-dn
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert -f ../docker-compose.yaml
kompose.version: 1.26.0 (40646f47)
k8s.v1.cni.cncf.io/networks: oai-dn-net
creationTimestamp: null
labels:
io.kompose.network/rfsim5g-oai-traffic_net-net: "true"
io.kompose.service: oai-ext-dn
spec:
serviceAccountName: oai-sa
containers:
- 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; sleep infinity'
image: ubuntu:bionic
livenessProbe:
exec:
command:
- /bin/bash -c "ping -c 2 192.168.33.15"
failureThreshold: 5
periodSeconds: 10
timeoutSeconds: 5
name: rfsim5g-oai-ext-dn
resources: {}
securityContext:
privileged: true
restartPolicy: Always
status: {}