Template repository for deploying SRS to any K8s service by GitHub Actions.
Step 1: Create K8s cluster, update the kubeconfig, check by kubectl cluster-info
:
- TKE(Tencent Kubernetes Engine), see doc.
- ACK(Alibaba Cloud Container Service for Kubernetes), see doc.
- EKS(Amazon Elastic Kubernetes Service), see doc.
- AKS(Azure Kubernetes Service), see doc.
Step 2: Click the Use this template to create your repository, then set the secrets:
KUBECONFIG
is the config of K8s, for example, the content ofcat $HOME/.kube/config
.
Step 3: Run workflow from Actions to deploy to your K8s, for example, if your external IP is 81.70.125.89
:
- Website is http://81.70.125.89:8080
- Publish RTMP to rtmp://81.70.125.89/live/livestream
- Play RTMP from rtmp://81.70.125.89/live/livestream
- Play HTTP-FLV from http://81.70.125.89:8080/live/livestream.flv
- Play HLS from http://81.70.125.89:8080/live/livestream.m3u8
Try to motify the srs.yaml, then push to your repository, your K8s will be updated automatically.