Skip to content

Commit

Permalink
Merge pull request #267 from dciangot/namespace_role
Browse files Browse the repository at this point in the history
InterLinkAddress field for interlink config file generation
  • Loading branch information
dciangot authored Jul 19, 2024
2 parents a7175b9 + 438ee8d commit 8b74353
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/installer/templates/interlink-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install () {
# set $HOME/.interlink/config/InterLinkConfig.yaml

cat <<EOF >>$HOME/.interlink/config/InterLinkConfig.yaml
InterlinkURL: "http://localhost"
InterlinkAddress: "http://localhost"
InterlinkPort: "30080"
SidecarURL: "http://localhost"
SidecarPort: "4000"
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/tutorial-users/01-quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ You need to provide the interLink IP address that should be reachable from the k
```bash
export INTERLINK_IP_ADDRESS=XXX.XX.X.XXX

sed -i 's/InterlinkURL:.*/InterlinkURL: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' vk/InterLinkConfig.yaml
sed -i 's/InterlinkAddress:.*/InterlinkAddress: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' vk/InterLinkConfig.yaml

sed -i 's/InterlinkURL:.*/InterlinkURL: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' interlink/InterLinkConfig.yaml | sed -i 's/SidecarURL:.*/SidecarURL: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' interlink/InterLinkConfig.yaml
sed -i 's/InterlinkAddres:.*/InterlinkAddress: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' interlink/InterLinkConfig.yaml | sed -i 's/SidecarURL:.*/SidecarURL: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' interlink/InterLinkConfig.yaml

sed -i 's/InterlinkURL:.*/InterlinkURL: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' interlink/sidecarConfig.yaml | sed -i 's/SidecarURL:.*/SidecarURL: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' interlink/sidecarConfig.yaml
sed -i 's/InterlinkAddress:.*/InterlinkAddress: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' interlink/sidecarConfig.yaml | sed -i 's/SidecarURL:.*/SidecarURL: "http:\/\/'$INTERLINK_IP_ADDRESS'"/g' interlink/sidecarConfig.yaml
```

#### Deploy virtualKubelet
Expand Down
2 changes: 1 addition & 1 deletion example/interlink-docker/interlink/InterLinkConfig.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VKTokenFile: "$HOME/interLink/token"
InterlinkURL: "http://XXX.XXX.XXX.XXX"
InterlinkAddress: "http://XXX.XXX.XXX.XXX"
SidecarURL: "http://docker-sidecar"
InterlinkPort: "3000"
SidecarPort: "4000"
Expand Down
2 changes: 1 addition & 1 deletion example/interlink-docker/vk/InterLinkConfig.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VKTokenFile: "$HOME/interLink/token"
InterlinkURL: "http://XXX.XXX.XXX.XXX"
InterlinkAddress: "http://XXX.XXX.XXX.XXX"
CommandPrefix: ""
ExportPodData: true
ServiceAccount: "interlink"
Expand Down
2 changes: 1 addition & 1 deletion helm/interlink/templates/virtual-kubelet-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: {{ .Release.Namespace }}
data:
InterLinkConfig.yaml: |
InterlinkURL: {{ .Values.interlink.URL }}
InterlinkAddress: {{ .Values.interlink.URL }}
InterlinkPort: {{ .Values.interlink.port }}
ExportPodData: true
VerboseLogging: true
Expand Down

0 comments on commit 8b74353

Please sign in to comment.