From 17b552121f9b51d9703e82f034916d7fff7dd8a5 Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Thu, 1 Jul 2021 16:44:12 +0800 Subject: [PATCH] feature: update cdn init container template (#399) Signed-off-by: Jim Ma --- deploy/charts/dragonfly/templates/cdn/cdn-statefulset.yaml | 2 +- .../kustomize/single-cluster-native/bases/cdn/statefulset.yaml | 2 +- .../single-cluster-openkruise/bases/cdn/statefulset.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/charts/dragonfly/templates/cdn/cdn-statefulset.yaml b/deploy/charts/dragonfly/templates/cdn/cdn-statefulset.yaml index bbf565865..948926611 100644 --- a/deploy/charts/dragonfly/templates/cdn/cdn-statefulset.yaml +++ b/deploy/charts/dragonfly/templates/cdn/cdn-statefulset.yaml @@ -80,7 +80,7 @@ spec: cat < /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 diff --git a/deploy/kustomize/single-cluster-native/bases/cdn/statefulset.yaml b/deploy/kustomize/single-cluster-native/bases/cdn/statefulset.yaml index f77d4e697..38ae40525 100644 --- a/deploy/kustomize/single-cluster-native/bases/cdn/statefulset.yaml +++ b/deploy/kustomize/single-cluster-native/bases/cdn/statefulset.yaml @@ -30,7 +30,7 @@ spec: cat < /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 diff --git a/deploy/kustomize/single-cluster-openkruise/bases/cdn/statefulset.yaml b/deploy/kustomize/single-cluster-openkruise/bases/cdn/statefulset.yaml index b0f8592d0..045ae150f 100644 --- a/deploy/kustomize/single-cluster-openkruise/bases/cdn/statefulset.yaml +++ b/deploy/kustomize/single-cluster-openkruise/bases/cdn/statefulset.yaml @@ -32,7 +32,7 @@ spec: cat < /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