Polling Tentacles usually communicate with Octopus Server over TCP port 10943. If your network configuration prevents outbound connections from your Tentacles on non-standard ports, you can configure Tentacle to use port 443 (HTTPS).
Please Note:
- You must be running Tentacle 6.3.417 (or higher) to configure polling tentacles over port 443.
- Configuring polling tentacles over port 443 does not use WebSockets. For more information, see Polling Tentacles over WebSockets.
The procedure for configuring Polling Tentacles to use port 443 varies based upon your chosen method of hosting Octopus Server.
Octopus Cloud
The setup of a Polling Tentacle for an Octopus Cloud instance over port 443 is the same as a Polling Tentacle over port 10943, except when registering the Tentacle. Change the register-with
and register-worker
commands:
- Omit the
--server-comms-port
parameter. - Specify the
--server-comms-address <address>
parameter.- The address to use is your Octopus Cloud instance URL prefixed with
polling.
(e.g.https://polling.<yoururl>.octopus.app
).
- The address to use is your Octopus Cloud instance URL prefixed with
Registering a new Tentacle
.\Tentacle register-with --instance MyInstance --server "https://<yoururl>.octopus.app" --server-comms-address "https://polling.<yoururl>.octopus.app" --comms-style TentacleActive --apiKey "API-YOUR-KEY" --environment "Test" --role "Web"
Changing an existing Tentacle
.\Tentacle service --instance MyInstance --stop
.\Tentacle configure --reset-trust
.\Tentacle register-with --instance MyInstance --server "https://<yoururl>.octopus.app" --server-comms-address "https://polling.<yoururl>.octopus.app" --comms-style TentacleActive --apiKey "API-YOUR-KEY" --environment "Test" --role "Web"
.\Tentacle service --instance MyInstance --start
Registering a new Worker
.\Tentacle register-worker --instance MyInstance --server "https://<yoururl>.octopus.app" --server-comms-address "https://polling.<yoururl>.octopus.app" --comms-style TentacleActive --apiKey "API-YOUR-KEY" --workerpool MyWorkerPool
Changing an existing Worker
.\Tentacle service --instance MyInstance --stop
.\Tentacle configure --reset-trust
.\Tentacle register-worker --instance MyInstance --server "https://<yoururl>.octopus.app" --server-comms-address "https://polling.<yoururl>.octopus.app" --comms-style TentacleActive --apiKey "API-YOUR-KEY" --workerpool MyWorkerPool
.\Tentacle service --instance MyInstance --start
Self-hosted
For self-hosted installations of Octopus Server, you will require specific network configuration and/or services to support the use of Polling Tentacles over port 443. This may be in addition to any existing configuration to support making the Octopus Web Portal and REST API available over port 443.
A reverse proxy specific to Polling Tentacles (e.g. NGINX) could be set up on the Octopus Server or a machine/appliance that fronts it. The reverse proxy would inspect connections coming in on the desired port (in this case 443) and forward to the configured port in Octopus Server for Polling Tentacles (defaults to 10943).
During registration with Octopus Server as a Worker or Deployment Target, Polling Tentacles use HTTPS to communicate with the Octopus REST API.
Once a Tentacle is registered with Octopus Server, it uses a secure TCP connection to communicate with Octopus Server, and doesn’t make HTTP calls.
This means that you will need to use a TCP reverse proxy for Polling Tentacles as opposed to a HTTP reverse proxy for the Octopus Web Portal and REST API and may require using an additional machine to achieve. For example when using NGINX you should use a stream reverse proxy and not a http reverse proxy for the polling connection.
For example:
- Configure a new DNS record dedicated for Polling Tentacle traffic.
- This will be used when registering your Workers and Tentacles (i.e.
--server-comms-address https://<your-polling-url>
)
- This will be used when registering your Workers and Tentacles (i.e.
- Configure a reverse proxy rule to redirect inbound traffic on port 443 on the new DNS record to port 10943 on your Octopus Server.
The setup of a Polling Tentacle for your self-hosted instance over port 443 is the same as a Polling Tentacle over port 10943, except when registering the Tentacle. Change the register-with
and register-worker
commands:
- Omit the
--server-comms-port
parameter. - Specify the
--server-comms-address <address>
parameter.- The address to use is your new DNS record (e.g.
https://<your-polling-url>/
).
- The address to use is your new DNS record (e.g.
Registering a new Tentacle
.\Tentacle register-with --instance MyInstance --server "https://<your-octopus-url>" --server-comms-address "https://<your-polling-url>" --comms-style TentacleActive --apiKey "API-YOUR-KEY" --environment "Test" --role "Web"
Changing an existing Tentacle
.\Tentacle service --instance MyInstance --stop
.\Tentacle configure --reset-trust
.\Tentacle register-with --instance MyInstance --server "https://<your-octopus-url>" --server-comms-address "https://<your-polling-url>" --comms-style TentacleActive --apiKey "API-YOUR-KEY" --environment "Test" --role "Web"
.\Tentacle service --instance MyInstance --start
Registering a new Worker
.\Tentacle register-worker --instance MyInstance --server "https://<your-octopus-url>" --server-comms-address "https://<your-polling-url>" --comms-style TentacleActive --apiKey "API-YOUR-KEY" --workerpool MyWorkerPool
Changing an existing Worker
.\Tentacle service --instance MyInstance --stop
.\Tentacle configure --reset-trust
.\Tentacle register-worker --instance MyInstance --server "https://<your-octopus-url>" --server-comms-address "https://<your-polling-url>" --comms-style TentacleActive --apiKey "API-YOUR-KEY" --workerpool MyWorkerPool
.\Tentacle service --instance MyInstance --start
Learn more
For further reading on the installation and configuration of Tentacle:
Help us continuously improve
Please let us know if you have any feedback about this page.
Page updated on Tuesday, June 25, 2024