Code Monkey home page Code Monkey logo

edgexfoundry-k8s's Introduction

Automate deploy edgexfoundry on kubernetes

Currently only supports Centos kuternetes cluster ,Suggest Centos 6+ amd64
自动化部署edgexfoundry到K8S集群,目前只支持操作系统Centos K8S 集群,建议 Centos 6+

Warning: the shell scripts mentioned below, make sure to execute in the bin directory
警告:下面提到的shell 脚本,需在bin目录下执行

Install on k8s master host

Step 1: Grant executable permissions in the bin directory

chmod -R +x ./bin

Step 2: Modify config file

edit edgex.conf, modify NFS_HOST to your nfs server real IP
edit hosts, modify IPs to your k8s master host IP

Step 3: Put images into images directory

In directory of images holds using images which is defined in *-deploy.yaml file in directory of edgex-service

Step 4: Modify deploy files

In the directory of edgex-service ,modify image to yours in *-deploy.yaml file

Step 5: Perform the installation

cd ./bin
./install-edgex-master.sh

Install on k8s normal nodes

INSTALL normal nodes MUST AFTER master install finished !

Step 1: Grant executable permissions in the bin directory

chmod -R +x ./bin

Step 2: Modify config file

modify edgex.conf, change NFS_HOST to your nfs server real IP

Step 3: Put images into images directory

same to master host

Start or Stop edgex services

execute the following command to start or stop edgex:

cd ./bin

./start-edgex.sh redis
or
./start-edgex.sh mongo

./stop-edgex.sh redis
or
./stop-edgex.sh mongo

Start or Stop single service

cd ./bin

Creating services is different

For core、support、export、service use:
./create-edgex-service.sh SERVICENAME

Other service use: ./create-service.sh

Delete service is the same, both use: ./delete-service.sh SERVICENAME

value of SERVICENAME is file name in directory of edgex-service,Support fuzzy matching, but make sure to locate the only service you want

Unload edgexfoundry

if you want to unload edgexfoundry from k8s cluster, execute the following command:

cd ./bin

first unload on k8s master host:
./uninstall-edgex-master.sh

then unload on normal k8s nodes host:
./uninstall-edgex-node.sh

Package release

Finally, you can package it into a * .tar.gz and publish it.

Video learning

视频学习 ![QQ群:951136547]

application images

image image image image image 安装界面
安装完成
UI显示图片 KAFKA接收消息 ![QQ群:951136547]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.