feature: update cdn init container template (#399)

Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
Jim Ma 2021-07-01 16:44:12 +08:00 committed by Gaius
parent 41a9d5df54
commit 17b552121f
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
3 changed files with 3 additions and 3 deletions

View File

@ -80,7 +80,7 @@ spec:
cat <<EOF > /tmp/patch.json
{
"data": {
"$POD_NAME.json": "{\"host_info\": {\"host_name\": \"$HOSTNAME\",\"ip\":\"$POD_IP\"},\"rpc_port\": 8003,\"down_port\": 8001}"
"$POD_NAME.json": "{\"host_name\": \"$HOSTNAME\",\"ip\":\"$POD_IP\",\"port\": {{ .Values.cdn.service.port }},\"download_port\": {{ .Values.cdn.service.nginxPort }},\"status\": \"active\"}"
}
}
EOF

View File

@ -30,7 +30,7 @@ spec:
cat <<EOF > /tmp/patch.json
{
"data": {
"$POD_NAME.json": "{\"host_info\": {\"host_name\": \"$HOSTNAME\",\"ip\":\"$POD_IP\"},\"rpc_port\": 8003,\"down_port\": 8001}"
"$POD_NAME.json": "{\"host_name\": \"$HOSTNAME\",\"ip\":\"$POD_IP\",\"port\": 8003,\"download_port\": 8001,\"status\": \"active\"}"
}
}
EOF

View File

@ -32,7 +32,7 @@ spec:
cat <<EOF > /tmp/patch.json
{
"data": {
"$POD_NAME.json": "{\"host_info\": {\"host_name\": \"$HOSTNAME\",\"ip\":\"$POD_IP\"},\"rpc_port\": 8003,\"down_port\": 8001}"
"$POD_NAME.json": "{\"host_name\": \"$HOSTNAME\",\"ip\":\"$POD_IP\",\"port\": 8003,\"download_port\": 8001,\"status\": \"active\"}"
}
}
EOF