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

title

Prerequisites

Cloud side

Install golang

  1. wget https://dl.google.com/go/go1.12.15.linux-amd64.tar.gz
  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 https://dl.google.com/go/go1.12.15.linux-amd64.tar.gz
  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

Deployment

precondition

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. 139.162.127.39 node1
  3. 139.162.121.213 node2
  4. 139.162.97.24 node3
  5. 139.162.127.39 apiserver.example.com

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 \
  10. https://download.docker.com/linux/centos/docker-ce.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 https://istio.io/downloadIstio | 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:

    exportPATH=PWD/bin:$PATH

    • 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.

Prerequisities

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

Installation

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

    wget https://github.com/kubeless/kubeless/releases/download/v1.0.4/kubeless_linux-amd64.zip
    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

PREFLIGHT CHECKLIST

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.

CEPH-DEPLOY SETUP

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 https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

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 https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm

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 https://ftp.postgresql.org/pub/source/v10.0/postgresql-10.0.tar.gz
  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

Installation

download

download package from

  1. wget https://nchc.dl.sourceforge.net/project/symmetricds/symmetricds/symmetricds-3.10/symmetric-server-3.10.3.zip

Creating

Configuration

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.

for pg.properties

  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 https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.26-el7-x86_64.tar.gz
  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

title

Configuration

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 http://fedoraproject.org/wiki/Systemd
  14. [mysqld_safe]
  15. log-error=/data/mysql/mariadb.log
  16. pid-file=/data/mysql/mariadb.pid
  17. #
  18. #
1/7