You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to bind ports only to tailscale IP. However, publish will bind ports to 0.0.0.0.
How can I access IP 100.64.1.1 or 100.64.1.2 based on what server the accessory is being deployed on?
Example:
servers:
roleA:
hosts:
- 100.64.1.1
- 100.64.1.2accessories:
accessory1:
image: some/image:latestroles:
- roleAoptions:
publish:
- "$TAILSCALE_IP:80:80"# how can i set this $TAILSCALE_IP based on the host where kamal is deploying the accessory?
- "`tailscale ip | head -n 1`:443:443"# i tried this but kamal escapes all shell characters like $, \ and `
- "<%= '' =>:80:80" # any ruby templates I use runs on the kamal controller but not the target
Any way I can run arbitrary command in the target host before deploying accessory to set a variable which I can use during the runtime ? Or is there any way I can grab on to the target host currently being worked on by kamal?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to bind ports only to tailscale IP. However, publish will bind ports to 0.0.0.0.
How can I access IP
100.64.1.1
or100.64.1.2
based on what server the accessory is being deployed on?Example:
Any way I can run arbitrary command in the target host before deploying accessory to set a variable which I can use during the runtime ? Or is there any way I can grab on to the target host currently being worked on by kamal?
Beta Was this translation helpful? Give feedback.
All reactions