Category - 安装部署

2020-01-10 08:29:53    21    0    0

KubeEdge is composed of cloud and edge parts. It is built upon Kubernetes and provides core infrastructure support for networking, application deployment and metadata synchronization between cloud and edge.

So if we want to setup kubeedge, we need to setup kubernetes cluster, cloud side and edge side.

on cloud side, we need to install docker, kubernetes cluster and cloudcore.
on edge side, we need to install docker, mqtt and edgecore.

Go dependency and Kubernetes compatibility please refer



Cloud side

Install golang

  1. wget
  2. tar zxvf go1.12.15.linux-amd64.tar.gz
  3. mv go /opt/go
  4. vi .bash_profile
  5. export GOROOT=/opt/go
  6. export PATH=$PATH:$GOROOT/bin
  7. export GOPATH=/root/go
  8. export PATH=$PATH:$GOPATH/BIN

Edge side

Install golang

  1. wget
  2. tar zxvf go1.12.15.linux-amd64.tar.gz
  3. mv go /opt/go
  4. vi .bash_profile
  5. export GOROO
2019-05-06 06:51:53    132    0    0



disable firewall

  1. systemctl stop firewalld
  2. systemctl disable firewalld

disable swap

  1. swapoff -a

config hostname ensure local hostname reachable

  1. vi /etc/hosts
  2. node1
  3. node2
  4. node3

Install docker

  1. # Install Docker from CentOS/RHEL repository:
  2. yum install -y docker
  3. ----------------------------
  4. # or install Docker CE 18.06 from Docker's CentOS repositories:
  5. ## Install prerequisites.
  6. yum install yum-utils device-mapper-persistent-data lvm2
  7. ## Add docker repository.
  8. yum-config-manager \
  9. --add-repo \
  11. ## Install docker.
  12. yum update && yum install docker-ce-18.06.1.ce
  13. ## Create /etc/docker directory.
  14. mkdir /etc/docker
  15. mkdir /docker
  16. # Setup daemon.
  17. cat > /etc/docker/daemon.json <<EOF
  18. {
  19. "log-driver": "json-file",
  20. "log-opts": {
  21. "max-size": "100m"
  22. },
  23. "storage-opts": [
  24. "ov
2019-12-03 06:37:04    6    0    0

Download the release

Download the Istio release which includes installation files, samples, and the istioctl command line utility.

  • Go to the Istio release page to download the installation file corresponding to your OS. Alternatively, on a macOS or Linux system, you can run the following command to download and extract the latest release automatically:

    $ curl -L | sh -

  • Move to the Istio package directory. For example, if the package is istio-1.4.0:

    $ cd istio-1.4.0

The installation directory contains:

  • Installation YAML files for Kubernetes in install/kubernetes
  • Sample applications in samples/
  • The istioctl client binary in the bin/ directory. istioctl is used when manually injecting Envoy as a sidecar proxy.

    • Add the istioctl client to your path, on a macOS or Linux system:


    • You c
2019-11-13 09:26:30    29    0    0

An Apache Ignite cluster can be easily deployed in and maintained by Kubernetes which is an open-source system for automating deployment, scaling, and management of containerized applications.

First, you need to choose how you would like to use Ignite:

  • If it will be used in the pure in-memory mode or as a caching layer on top of a 3rd party database (RDBMS, NoSQL) then refer to the Stateless Deployment guide.
  • If Ignite will be deployed as a memory-centric database with Ignite persistence enabled then refer to the Stateful Deployment documentation.


Makes sure that you've done the following:

  • Deployed a Kubernetes cluster in the desired environment.
  • Configured RBAC Authorization
  • Deployed Ignite Service

Configured RBAC Authorization

It's recommended to set up RBAC for your Ignite deployments to have fine-grained control of your deployments and to avoid any security-related issues.

vi rbac.yaml

  1. apiVe
2019-09-27 05:31:27    17    0    0


Install kubeless

Installation is made of three steps:

  • Download the kubeless CLI from the release page.
  • Create a kubeless namespace (used by default)
  • Then use one of the YAML manifests found in the release page to deploy kubeless. It will create a functions Custom Resource Definition and launch a controller.

    Download the kubeless CLI

    cd bundles/kubeless_linux-amd64
    cp kubeless /usr/local/bin

    Create a kubeless namespace

    kubectl create ns kubeless

    export RELEASE=

2019-10-18 02:58:50    9    0    0

Typical Uses

  • Mashup'ing and processing outputs of various Nginx upstream outputs (proxy, drizzle, postgres, redis, memcached, and etc) in Lua,
  • doing arbitrarily complex access control and security checks in Lua before requests actually reach the upstream backends,
  • manipulating response headers in an arbitrary way (by Lua)
  • fetching backend information from external storage backends (like redis, memcached, mysql, postgresql) and use that information - to choose which upstream backend to access on-the-fly,
  • coding up arbitrarily complex web applications in a content handler using synchronous but still non-blocking access to the - database backends and other storage,
  • doing very complex URL dispatch in Lua at rewrite phase,
  • using Lua to implement advanced caching mechanism for Nginx's subrequests and arbitrary locations.

The possibiliti

2019-05-06 06:51:53    66    0    0


The ceph-deploy tool operates out of a directory on an admin node. Any host with network connectivity and a modern python environment and ssh (such as Linux) should work.


register the target machine with subscription-manager, verify your subscriptions, and enable the “Extras” repository for package dependencies. For example:

  1. yum install subscription-manager -y
  2. sudo subscription-manager repos --enable=rhel-7-server-extras-rpms

Install and enable the Extra Packages for Enterprise Linux (EPEL) repository:

  1. sudo yum install -y

Add the Ceph repository to your yum configuration file at /etc/yum.repos.d/ceph.repo with the following command. Replace {ceph-stable-release} with a stable Ceph release (e.g., luminous.) For example:

  1. cat << EOM > /etc/yum.repos.d/ceph.repo
  2. [ceph-noarch]
  3. name=Ceph noarch packages
  4. baseurl=https:
2019-05-06 06:51:53    1290    0    0

Install PostgreSQL

Install from repository

Install the repository RPM

  1. yum install

Install the client packages:

  1. yum install postgresql10

Optionally install the server packages:

  1. yum install postgresql10-server

Optionally initialize the database and enable automatic start:

  1. /usr/pgsql-10/bin/postgresql-10-setup initdb
  2. systemctl enable postgresql-10
  3. systemctl start postgresql-10
  4. su - postgres
  5. psql
  6. \password postgres
  7. xxxpgxxx

Install from source

  1. wget
  2. tar zxvf postgresql-10.0.tar.gz
  3. cd postgresql-10.0
  4. export PYTHON=/usr/bin/python3
  5. ./configure --prefix=/usr/local/postgres10 --with-python --with-openssl --with-libxml --with-ldap --with-libxslt --enable-thread-safety
  6. make
  7. make install
  8. mkdir /home/pgdata/pg10/pgdata
  9. ./initdb -D /home/pgdata/pg10/pgdata
  10. psql
  11. \passwo
2019-08-22 03:56:54    28    0    0



download package from

  1. wget



Once SymmetricDS has been installed, we will need to populate the database with the configuration and sym tables. To do this, execute the following steps:

Node Properties

create node properties file in enginnes folder. Each properties file in the engines directory represents a SymmetricDS node.


  1. #
  2. # Licensed to JumpMind Inc under one or more contributor
  3. # license agreements. See the NOTICE file distributed
  4. # with this work for additional information regarding
  5. # copyright ownership. JumpMind Inc licenses this file
  6. # to you under the GNU General Public License, version 3.0 (GPLv3)
  7. # (the "License"); you may not use this file except in compliance
  8. # with the License.
  9. #
  10. # You should have received a copy of the GNU General Pu
2019-06-17 12:09:20    8    0    0

Download Binary

  1. wget
  2. tar zxvf mysql-5.7.26-el7-x86_64.tar.gz

Init Database

  1. mysql_install_db --basedir=/usr/local/mysql --datadir=/data/mysql
  2. mysqld --initialize --basedir=/usr/local/mysql --datadir=/data/mysql --user=pgdata



default config file

  1. mysqld --verbose --help |grep -A 1 'Default options'

configure mysql

  1. vi /etc/my.cnf
  2. [mysqld]
  3. basedir=/usr/local/mysql
  4. datadir=/data/mysql
  5. port=20769
  6. user=pgdata
  7. socket=/data/mysql/mysql.sock
  8. # Disabling symbolic-links is recommended to prevent assorted security risks
  9. symbolic-links=0
  10. # Settings user and group are ignored when systemd is used.
  11. # If you need to run mysqld under a different user or group,
  12. # customize your systemd unit file for mariadb according to the
  13. # instructions in
  14. [mysqld_safe]
  15. log-error=/data/mysql/mariadb.log
  16. pid-file=/data/mysql/
  17. #
  18. #