https://github.com/ossrs/srs-tke-template
Template repository for deploying SRS to TKE(Tencent Kubernetes Engine)
https://github.com/ossrs/srs-tke-template
Last synced: 4 months ago
JSON representation
Template repository for deploying SRS to TKE(Tencent Kubernetes Engine)
- Host: GitHub
- URL: https://github.com/ossrs/srs-tke-template
- Owner: ossrs
- License: mit
- Created: 2022-01-01T01:10:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T23:39:18.000Z (over 3 years ago)
- Last Synced: 2025-02-23T01:56:57.896Z (4 months ago)
- Homepage: https://discord.gg/yZ4BnPmHAd
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# srs-tke-template

[](https://github.com/ossrs/srs-tke-template/actions/workflows/tencent.yml)Template repository for deploying SRS to [TKE(Tencent Kubernetes Engine)](https://cloud.tencent.com/document/product/457/6759).
## Usage
**Step 1:** Create TKE cluster and user:
1. Create a K8s cluster by [TKE](https://console.cloud.tencent.com/tke2/cluster?rid=8), check by command `kubectl get namespace`
1. Create a new [CAM user](https://console.cloud.tencent.com/cam), with access AdministratorAccess**Step 2:** Click the Use this template to create your repository, then set the [secrets](https://github.com/ossrs/srs-tke-template/settings/secrets/actions):
1. `TENCENT_CLOUD_SECRET_ID` is the SecretId of [CAM user](https://console.cloud.tencent.com/cam).
1. `TENCENT_CLOUD_SECRET_KEY` is the SecretKey of [CAM user](https://console.cloud.tencent.com/cam).
1. `TKE_CLUSTER_ID` is the TKE K8s cluster ID at TKE > Basic Information.
1. `TKE_REGION` is the region of cluster, for example, `ap-beijing`**Step 3:** Run Actions to deploy to your K8s, for example, if your external IP is `49.233.120.79`:
* Website is http://49.233.120.79:8080
* Publish RTMP to rtmp://49.233.120.79/live/livestream
* Play RTMP from rtmp://49.233.120.79/live/livestream
* Play HTTP-FLV from http://49.233.120.79:8080/live/livestream.flv
* Play HLS from http://49.233.120.79:8080/live/livestream.m3u8Try to motify the [srs.yaml](srs.yaml), then push to your repository, your K8s will be updated automatically.