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 registrydocker tag nodejs qio01:5000/nodejs:1.0.1 docker push qio01:5000/nodejs:1.0.1Deploy 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文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/27042.html
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 ...
摘要: 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...
摘要: 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...
摘要: 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 -...
閱讀 767·2023-04-25 17:33
閱讀 3626·2021-07-29 14:49
閱讀 2480·2019-08-30 15:53
閱讀 3435·2019-08-29 16:27
閱讀 2000·2019-08-29 16:11
閱讀 1030·2019-08-29 14:17
閱讀 2432·2019-08-29 13:47
閱讀 2016·2019-08-29 13:28