Guide for Akraino Apps run on Tencent Cloud
This guide will show you how to run Akraino apps on TKE of Tencent Cloud.
Content
...
...
Table of Contents |
---|
Sign Up for An Account of Tencent Cloud
...
Configure your cluster name, location, and network. If you do not have a private network, you can click Create a new one now to create.
Select your billing model, node network, and machine model, and click Next step
...
Code Block | ||
---|---|---|
| ||
cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg EOF yum install -y kubectl |
Connect To TKE Cluster
Open APIServer of your Cluster
...
Code Block | ||||
---|---|---|---|---|
| ||||
# Configure repo cd /opt yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo # Install docker yum install -y docker-ce docker-ce-cli containerd.io systemctl enable docker # Install docker-compose curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose docker-compose --version |
Install Openvidu
Code Block |
---|
curl https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install_openvidu_2.13.0.sh | bash |
Configuration
Edit file .env
, add your host public IP and admin password.
Code Block | ||||
---|---|---|---|---|
| ||||
vi /opt/openvidu/.env # Add your host IP and admin password OPENVIDU_DOMAIN_OR_PUBLIC_IP= $your_host_IP OPENVIDU_SECRET= $admin_PW |
Start Openvidu
Code Block | ||||
---|---|---|---|---|
| ||||
cd /opt/openvidu/ ./openvidu start |
Install Frontend
Install http-server-ssl
and clone frontend code, edit app.js
...