Giter Club home page Giter Club logo

dockerimages's Introduction

Description

This is a repo to learn docker with some simple projects

Todo

Problem Solving

Module Function Feture Action
DevOps HA Multi cluster nodes System cannot work properly in k8s-worker-2

Feature & Function

Module Function Feture Action
DevOps CI/CD Github Actions Implement
DevOps Initial Container used by database initial Implement
DevOps Persistent Volume used by database initial Implement
DevOps ConfigMap used by Frontend Implement
DevOps Namespace used by project Implement
DevOps Node Selector used by database Implement
DevOps Rename Nodes used by admin Implement
DevOps K8S Logs EFK Implement
DevOps Monitering Promethesus & Grafana Implement
DevOps Private Docker Registry Aliyun Implement

Architecture

System

tie app name function
backend postgres dbpg database
backend redis chrd cache
backend rabbit mqrbt MQ
backend nestjs restapi restfulapi
backend nodejs worker service worker
frontend nginx admin-antd admin
frontend nginx demo-material user
frontend nginx www pages

Infrastructure

Role Hostname FQDN IP OS RAM CPU Storage
Master k8s-master-1 master1.k8s.com 192.168.83.131 CentOS 7 4G 2x 20GB
Worker k8s-worker-1 worker1.k8s.com 192.168.83.132 CentOS 7 4G 2x 20GB
Worker k8s-worker-2 worker2.k8s.com 192.168.83.134 CentOS 7 2G 2x 20GB

Cluster

  • Kubernetes Client: v1.17.1
  • Kubernetes Server: v1.17.1
  • Docker Client: v19.03.5
  • Docker Server: v19.03.5
  • Docker Compose: 1.22.0

Integration

  • Git: 1.8.3.1
  • NPM: 6.13.4
  • Nodejs: 12.14.1

Images

  • node:12.14.1-alpine
  • postgres:12.1-alpine
  • nginx:1.17.6-alpine
  • traefik:v1.7
  • kubernetesui/dashboard:v2.0.0-rc2

Release Notes

Version

Functions & Features

HA

CI/CD

Secret

Persistent Storage

Start to User

Check-List

Development Environment

  • Set local host file
  • Set environment variables
  • Create database

Production Environment

  • Set up URL DNS

Docker Compose Mode

Setup

Need to setup docker componse and cluster environment first.

Clone

sh clone.dockerimages.sh
cd dockerimages

Build

yarn build
docker images

Start

yarn start
docker ps
docker network ls

Check

Clean Up

yarn stop:compose

or

docker stop dockerimages_frontend_1 dockerimages_restapi_1 dockerimages_dbpg_1
docker rm dockerimages_frontend_1 dockerimages_restapi_1 dockerimages_dbpg_1
docker network rm dockerimages_bridgenet

Kubernetes Cluster Mode

Setup

Need to setup Kubernetes Cluster and Ingress first.

Start

kubectl create -f all.yaml

Clean Up

yarn stop:cluster

or

kubectl delete -f all.yaml

Update Ingress Resource

kubectl edit ing ingress-resource

Upgrade

Rollback

dockerimages's People

Contributors

yunzhiwei avatar

Stargazers

 avatar Kate avatar  avatar

Watchers

James Cloos avatar  avatar

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.