-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation with clearer instructions for setup and deployment #88
Conversation
dff8701
to
777cc7e
Compare
2. Design a simple hosting architecture. We recommend: Firewall/Loadbalancer -> Fleet Telemetry -> Kafka. | ||
### Vehicle Compatibility | ||
|
||
Vehicles must be running firmware version 2023.20.6 or later. You may find this information under your VIN in the Tesla Mobile App or the Software tab in the vehicle's infotainment system. Some older model S/X are not supported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aaronpkahn we might want to drop a line here about the new self-service version.
1affa23
to
d7c4e13
Compare
d7c4e13
to
80501c0
Compare
3c8fe23
to
eda646d
Compare
eda646d
to
f622385
Compare
f622385
to
b27c4e9
Compare
@@ -9,21 +9,38 @@ Fleet Telemetry is a server reference implementation for Tesla's telemetry proto | |||
|
|||
The service handles device connectivity as well as receiving and storing transmitted data. Once configured, devices establish a WebSocket connection to push configurable telemetry records. Fleet Telemetry provides clients with ack, error, or rate limit responses. | |||
|
|||
## Configuring and running the service | |||
## Requirements | |||
These are the minimum system requirements for a Fleet Telemetry server, with 10 active vehicles connected, running on a Debian-based server with regular day-to-day usage. The requirements will change based on vehicle usage and quantity of vehicles. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: the first comma here isn't grammatically correct.
Maybe reword to something like: These minimum system requirements assume a server with: 10 active vehicles connected, running on a Debian-based image, and with regular day-to-day vehicle usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we having 10 active vehicle as a reference? probably better to have 1k.
|
||
4. Configure the server | ||
Before you deploy your Fleet Telemetry server, you will need to configure your server (the docker image will check the config mounted on `/etc/fleet-telemetry/config.json`). Server config template: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested rewordding: "Create a server configuration, which by default is mounted on /etc/fleet-telemetry/config.json
. Template:"
### Deploy using Kubernetes with Helm Charts (recommended for large fleets) | ||
Hosting on [Kubernetes](https://kubernetes.io/) will enable the service to scale for large fleets. Helm Charts help you define, install, and upgrade applications on Kubernetes. Reference Helm chart [here](https://github.com/teslamotors/helm-charts/blob/main/charts/fleet-telemetry/README.md). | ||
|
||
You must have [Kubernetes](https://kubernetes.io/docs/setup/) amd [Helm](https://helm.sh/docs/intro/install/) installed for this deployment method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reword: "Requires installation of Kubernetes and Helm."
|
||
### Deploy using Docker | ||
|
||
1. Pull the Tesla Fleet Telemetry image (you may find all images in [docker hub](https://hub.docker.com/r/tesla/fleet-telemetry/tags)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reword: "Pull the Tesla Fleet Telemetry image. Images are located in docker hub):"
```sh | ||
docker pull tesla/fleet-telemetry:v0.1.8 | ||
``` | ||
2. Run and deploy your docker image with your mTLS certificate, private key, and config.json locally mounted on `/etc/fleet-telemetry`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reword: "Run and deploy the docker image with an mTLS certificate, private key, and config.json locally mounted on /etc/fleet-telemetry
"
@@ -77,7 +94,28 @@ For ease of installation and operation, we recommend running Fleet Telemetry on | |||
``` | |||
Example: [server_config.json](./examples/server_config.json) | |||
|
|||
5. Deploy and run the server. Get the latest docker image information from our [docker hub](https://hub.docker.com/r/tesla/fleet-telemetry/tags). This can be run as a binary via `./fleet-telemetry -config=/etc/fleet-telemetry/config.json` directly on a server, or as a Kubernetes deployment. Example snippet: | |||
### Deploy using Kubernetes with Helm Charts (recommended for large fleets) | |||
Hosting on [Kubernetes](https://kubernetes.io/) will enable the service to scale for large fleets. Helm Charts help you define, install, and upgrade applications on Kubernetes. Reference Helm chart [here](https://github.com/teslamotors/helm-charts/blob/main/charts/fleet-telemetry/README.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Helm Charts help you define
-> Helm Charts is used to define
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, inconsistent capitalization: Reference Helm chart
-> Reference Helm Chart
? Or make chart lowercase in all examples?
### Install manually (skip this if you have installed with Helm on Kubernetes) | ||
1. Allocate and assign a [FQDN](https://en.wikipedia.org/wiki/Fully_qualified_domain_name). This will be used in the server and client (vehicle) configuration. | ||
## Configuring and running the service | ||
You may generate [self-signed certificates](https://en.wikipedia.org/wiki/Self-signed_certificate) for your domain and the generated tls certificate + private key pair will be used to authenticate vehicles to your Fleet Telemetry server. Tesla vehicles rely on a mutual TLS (mTLS) WebSocket to create a connection with the backend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use a self signed certificate to start the server, but /api/1/vehicles/fleet_telemetry_config
will reject anything not signed by Tesla's CA. I do not believe this line is accurate in my experience.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you post what error you are receiving? I used a self-signed certificate for the fleet-telemetry server and it should be working as long as it registers properly with the endpoint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you post what error you are receiving? I used a self-signed certificate for the fleet-telemetry server and it should be working as long as it registers properly with the endpoint.
{'response': None, 'error': 'Please follow instructions https://developer.tesla.com/docs/fleet-api#fleet-telemetry to send CSR to Tesla', 'error_description': ''}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Brett
The error is because as discussed #41 (comment).
We are onboarding new csr submissions incrementally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Brett
The error is because as discussed #41 (comment).
We are onboarding new csr submissions incrementally.
That's correct, so I am trying to point out that proposed documentation change from @thefireblade that says you can use a self signed certificate is incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I don't think thats the issue. If you have mailed your CSR and haven't heard back, that means your account isn't ready for step 3 as mentioned in https://developer.tesla.com/docs/fleet-api#fleet-telemetry
Description
Updating the README with relevant information on setup requirements including what kind of system is needed in order to deploy a Tesla Fleet Telemetry server as well updating documentation flow for setting up certificates, keys, and configuration files.
Also adding examples on how to run the server through Docker and manually.
Type of change
Please select all options that apply to this change:
Checklist:
Confirm you have completed the following steps: