Detailed Kubernetes (k8s) YAML file

[Directory] 1. Introduction to yaml file 2. Common yaml Syntax 3. port Details 4. A simple example of yarml V. Label and Selector 6. Differences between kubectl creation or kubectl replace ment 1. Introduction to yaml file Kubernetes only supports the creation of resource objects in YAML and JSON formats, which are used for message delive ...

Added by mithril on Sun, 21 Nov 2021 11:11:23 +0200

Dock deployment mongo sharding

Mongodb shared cluster consists of: Shards: each shard needs to be deployed as a replica set, which is responsible for storing data. Multiple shards can be deployed mongos: equivalent to routing config servers: the configuration server of the entire cluster, which is also a replica set The development environment can be simpler: docker bu ...

Added by daphreeek on Sun, 21 Nov 2021 09:16:04 +0200

docker image creation example

This paper will rustdesk-server-demo Take docker as an example to describe the production process of docker image.1 compile the executable binary fileAfter installing the trust language, compile the rustdesk server Demo:cd ~/github/rustdesk-server-demo mkdir -p target/releae cargo build --releaseThe direct executable binary file path is. / targ ...

Added by titangf on Sun, 21 Nov 2021 07:54:53 +0200

Resource list definition of Linux learning kubernetes

Assets: objects workload: Pod,ReplicaSet,Deployment,StatefulSet,DaemonSet,Job,Cronjob,...Service discovery and balance: service and progressConfiguration and storage: Volume, CSI ConfigMap,SecretDownwardAPI Cluster level resources NameSpace,Node,Role,ClusterRole,RoleBinding,ClusterRoleBinding Metadata resource HPA,PodTemplate,LimitRan ...

Added by rulian on Sun, 21 Nov 2021 05:34:48 +0200

Talk about how to integrate JSP view technology in Spring Boot

Some projects are old, and the view technology used is still JSP. Now it is required to turn these old projects into Spring Boot projects, so that they can be packaged into Docker images and then deployed to containers for management. For convenience of explanation and verification. We created a new Spring Boot project. Then integrate JSP ...

Added by joePHP on Sat, 20 Nov 2021 15:55:08 +0200

Common template commands of docker-compose.yml file

Note: when writing docker-compose.yml file, a space should be added after all colons (:) and dashes (-). 1,command Overrides the default command executed after the container is started command: echo "hello" 2,container_name Specifies the container name. The project name will be used by default_ Service name_ Format such as serial number c ...

Added by paran0id Dan on Tue, 16 Nov 2021 10:25:31 +0200

Running microservices on Docker

Running microservices on Docker Using Dockerfile to build Docker image Dockerfile builds Docker images. Dockerfile is a text file that contains several instructions that describe the details of building an image. 1) Prepare a file named Dockerfile: FORM nginx RUN echo '<h1>test</h1>' > /usr/share/nginx/html/index.html FORM a ...

Added by cheikhbouchihda on Thu, 11 Nov 2021 06:53:19 +0200

Docker learning track I (docker introduction and installation)

Docker introduction What is Docker? When people say "Docker", they usually refer to Docker Engine, which is a client server application, which is controlled by Docker A daemon, a REST API that specifies the interface to interact with the daemon, and a command line interface (CLI) to communicate with the daemon (by encapsulating ...

Added by BostonMark on Thu, 11 Nov 2021 04:49:20 +0200

Docker learning notes

Docker overview Similar to container isolation, jar -- container (mysql,redis) -- publish to warehouse -- download from warehouse Docker history dotcloud was founded in 2010 2013 Docker open source Docker1.0 was released on April 9, 2014 Virtual machines were used before Development based on go language Docker installation #Uninstall ...

Added by donbueck on Tue, 09 Nov 2021 21:12:48 +0200

K8s demo cluster practice 21: MySQL 5.7.35 dual master multi slave GTID test

1, Test scheme Test in a virtual machine (first verify the scheme and configuration, and then deploy to K8S)Master1, port 3310, name mysqlm1, configuration file / opt/mysql/conf/mysqlm1.cnf, database directory / opt/mysql/m1databases, REPLICATION, user name m1slave, password 123456Master2, port 3311, name mysqlm1, configuration file / opt/ ...

Added by acrayne on Tue, 09 Nov 2021 03:28:18 +0200