-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall-open5gcore.sh
More file actions
executable file
·28 lines (24 loc) · 988 Bytes
/
install-open5gcore.sh
File metadata and controls
executable file
·28 lines (24 loc) · 988 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
#!/bin/bash
#Author: Fatih E.NAR
#Date: 4/11/2075
#
NAMESPACE="open5gcore"
echo "Installing open5gcore..."
oc new-project ${NAMESPACE}
oc project ${NAMESPACE}
echo "Labeling open5gcore namespace as a part of the mesh"
oc label namespace ${NAMESPACE} istio-injection=enabled
echo "Enabling pod monitor in open5gcore namespace"
oc apply -f ./resources/Monitoring/podMonitor.yaml -n ${NAMESPACE}
echo "Deploying open5gcore CNFs"
cd core
./deploy-open5gcore.sh
oc wait --for=condition=Ready pods --all -n ${NAMESPACE} --timeout 60s
cd ..
oc apply -f ./resources/open5gcore/open5gcore-gateway.yaml -n ${NAMESPACE}
echo "Waiting for open5gcore CNFs to become ready..."
oc wait --for=condition=Ready pods --all -n ${NAMESPACE} --timeout 60s
echo "Deployment finished!"
# this env will be used in traffic generator
export INGRESSHOST=$(oc get route istio-ingressgateway -n istio-ingress -o=jsonpath='{.spec.host}')
KIALI_HOST=$(oc get route kiali -n istio-system -o=jsonpath='{.spec.host}')