成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專欄INFORMATION COLUMN

Deploy NodeJS Docker to QiO Edge Cloud using Kuber

W4n9Hu1 / 1318人閱讀

Create App and build docker image

Create a file of the name Dockerfile with the content below and put into your project root folder.

# specify the node base image with your desired version node:
FROM node:8

WORKDIR /app

RUN chown -R node:node /usr/local/lib/node_modules
RUN chown -R node:node /usr/local/bin
USER node

RUN npm install node-red -g
RUN npm install node-red-node-mongodb -g
RUN npm i node-red/node-red-dashboard -g

# port 1880 for node-red-dashboard
EXPOSE 1880

CMD node-red

Build using docker build -t nodejs .

Tag & Push docker image to the private registry
docker tag nodejs qio01:5000/nodejs:1.0.1
docker push qio01:5000/nodejs:1.0.1
Deploy in Kubenetes

Goto default Stack.

Add a service, fill in Name, Hostname, Select Image, and rote Port Map.

Goto nginx load balancer in Rancher.

Add a port rule, select Protocol and Target image, fill in host Port and target Port.

Enjoy

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/32573.html

相關(guān)文章

  • Deploy NodeJS Docker to QiO Edge Cloud using Kuber

    Create App and build docker image Create a file of the name Dockerfile with the content below and put into your project root folder. # specify the node base image with your desired version node: FROM ...

    lentoo 評(píng)論0 收藏0
  • Deploy MySQL using Helm in Kubernetes with Persist

    摘要: How to deploy MySQL-Server Docker using Helm Chart in Kubernetes with Persistent Volume! Pull MySQL Server docker image from Docker repository, tag it asappreciate, then push to private repos...

    Gilbertat 評(píng)論0 收藏0
  • Deploy MySQL using Helm in Kubernetes with Persist

    摘要: How to deploy MySQL-Server Docker using Helm Chart in Kubernetes with Persistent Volume! Pull MySQL Server docker image from Docker repository, tag it asappreciate, then push to private repos...

    zhoutk 評(píng)論0 收藏0
  • Deploy NodeJS with node-red, mongodb, dashboard in

    摘要: Docker File Create this file with the name Dockerfile and put into your project root folder. # specify the node base image with your desired version node: FROM node:8 WORKDIR /app RUN chown -...

    iKcamp 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<