Template repository for deploying SRS to TKE(Tencent Kubernetes Engine).
Step 1: Create TKE cluster and user:
- Create a K8s cluster by TKE, check by command
kubectl get namespace
- Create a new CAM user, with access AdministratorAccess
Step 2: Click the Use this template to create your repository, then set the secrets:
TENCENT_CLOUD_SECRET_ID
is the SecretId of CAM user.TENCENT_CLOUD_SECRET_KEY
is the SecretKey of CAM user.TKE_CLUSTER_ID
is the TKE K8s cluster ID at TKE > Basic Information.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.m3u8
Try to motify the srs.yaml, then push to your repository, your K8s will be updated automatically.