Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit df9a34d

Browse files
committed
Added scripts for Step 1
1 parent bec88ff commit df9a34d

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ Take note of the IP address. Go to the **core** folder and change the following
5858
> value : https://169.47.241.yyy:30443/players/v1/accounts **TO ->** value : https://169.xx.xxx.xxx:30443/players/v1/accounts
5959
> ...
6060
61+
You can also use the script provided that replaces the default values.
62+
* `./replace_ip_linux.sh` for linux
63+
* `./replace_ip_OSX.sh` for macOS
6164

6265
```yaml
6366
Core yaml files should look like this. Change the following env variables

scripts/replace_ip_OSX.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
kubectl get nodes
3+
IP_ADDR=$(kubectl get nodes | grep Ready | awk '{print $1}' | head -1)
4+
5+
if [ -z "$IP_ADDR" ]
6+
then
7+
echo "IP Address not found"
8+
exit 1
9+
fi
10+
11+
for filename in core/*.yaml
12+
do
13+
sed -i '' s#169\.47\.241\.213#$IP_ADDR# $filename
14+
done
15+
16+
sed -i '' s#169\.47\.241\.213#$IP_ADDR# setup.yaml

scripts/replace_ip_linux.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
kubectl get nodes
3+
IP_ADDR=$(kubectl get nodes | grep Ready | awk '{print $1}' | head -1)
4+
5+
if [ -z "$IP_ADDR" ]
6+
then
7+
echo "IP Address not found"
8+
exit 1
9+
fi
10+
11+
for filename in core/*.yaml
12+
do
13+
sed -i s#169\.47\.241\.213#$IP_ADDR# $filename
14+
done
15+
16+
sed -i s#169\.47\.241\.213#$IP_ADDR# setup.yaml

0 commit comments

Comments
 (0)