https://github.com/ossrs/srs-aks-template
Template repository for deploying SRS to AKS(Azure Kubernetes Service)
https://github.com/ossrs/srs-aks-template
Last synced: 4 months ago
JSON representation
Template repository for deploying SRS to AKS(Azure Kubernetes Service)
- Host: GitHub
- URL: https://github.com/ossrs/srs-aks-template
- Owner: ossrs
- License: mit
- Created: 2022-01-01T09:12:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T23:47:09.000Z (over 3 years ago)
- Last Synced: 2025-01-05T00:44:41.290Z (5 months ago)
- Homepage: https://discord.gg/yZ4BnPmHAd
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# srs-aks-template

[](https://github.com/ossrs/srs-aks-template/actions/workflows/azure-kubernetes-service.yml)Template repository for deploying SRS to [AKS(Azure Kubernetes Service)](https://docs.microsoft.com/en-us/azure/aks/).
## Usage
**Step 1:** Create AKS cluster and user:
1. Create a [subscription](https://portal.azure.com/?quickstart=true#blade/Microsoft_Azure_Billing/SubscriptionsBlade) and [resource group](https://portal.azure.com/?quickstart=true#blade/HubsExtension/BrowseResourceGroups).
1. Create a K8s cluster by [AKS](https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough-portal), check by command `kubectl get namespace`
1. Create a new [CREDENTIALS](https://docs.microsoft.com/en-us/azure/aks/kubernetes-action#create-a-service-principal) with `subscription` and `resource group`.**Step 2:** Click the Use this template to create your repository, then set the [secrets](https://github.com/ossrs/srs-aks-template/settings/secrets/actions):
1. `AZURE_CREDENTIALS` is the [CREDENTIALS](https://docs.microsoft.com/en-us/azure/aks/kubernetes-action#create-a-service-principal).
1. `RESOURCE_GROUP` is the [resource group](https://portal.azure.com/?quickstart=true#blade/HubsExtension/BrowseResourceGroups).
1. `CLUSTER_NAME` is the name of [AKS](https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough-portal) cluster.**Step 3:** Run Actions to deploy to your K8s, for example, if your external IP is `52.149.197.10`:
* Website is http://52.149.197.10:8080
* Publish RTMP to rtmp://52.149.197.10/live/livestream
* Play RTMP from rtmp://52.149.197.10/live/livestream
* Play HTTP-FLV from http://52.149.197.10:8080/live/livestream.flv
* Play HLS from http://52.149.197.10:8080/live/livestream.m3u8Try to motify the [srs.yaml](srs.yaml), then push to your repository, your K8s will be updated automatically.