--- title: 'NET Conf 2020 - Lab-5' disqus: hackmd --- .NET Conf 2020 - Lab-5 === ## 其他功能 >1. 部署後端 ```gherkin= oc apply -f https://raw.githubusercontent.com/microsoft/aroworkshop/master/yaml/ostoy-microservice-deployment.yaml ``` >2. 部署前端 ```gherkin= oc apply -f https://raw.githubusercontent.com/microsoft/aroworkshop/master/yaml/ostoy-fe-deployment.yaml ``` >3.取得路由 ```gherkin= oc get route ``` >4.取得pod名稱 ```gherkin= oc get pods -o name ``` >5.查看日誌 ```gherkin= oc logs <frontend-pod-name> ``` >6. 彈性伸縮 ```gherkin= oc autoscale deployment/ostoy-microservice --cpu-percent=80 --min=1 --max=10 ``` ###### tags: `Event` `.NET Conf 2020`