Tags: WordPress MySQL KubernetesWordPress is the main platform for editing and publishing Web content. In this tutorial, I'll step through how to use kubernetes to build a high availability (HA) WordPress deployment.WordPress consists of two main components: a wordpress PHP server and a database for storing user information, posts, and website data. We need to make these two components in the entire applica
Tags: Host file Create request Val SSM LOB environment ant followThis article describes the deployment of MySQL master-slave cluster in a kubernetes environment, with data persistence using NFS. I. Introduction to the EnvironmentMySQL Version: 5.7 Mysql Master node:Host Name: VM1IP Address: 192.168.115.5/24 Mysql slave
mode TCP balance Leastconn server MARIADB1 192.168.91.141:330 6 Check port 3306 inter 2s rise 1 Fall 2 maxconn server mariadb2 192.168.91.142:3306 Check port 3306 inter 2s rise 1 Fall 2 Maxconn-server mariadb3 192.168.91.143:3306 Check port 3306 inter 2s rise 1 Fall 2 Maxconn ###### #Rabbit MQ Configuration ################# LisTen RABBITMQ bind 0.0.0.0:5672 mode TCP balance Leastconn server rabbitmq1 192.168.91.141:5672 Check port 5672 inter 2s ri SE 1 Fall 2 maxconn server rabbitmq2 192.168.9
Apiversion:v1Kind:replicationcontrollerMetadataName:mywebSpec: //spec is a concrete description of the RC object Replicas: 5SelectorApp:mywebTemplateMetadataLabels://selector, used to select the object'sApp:myweb//I chose the pod labeled App:myweb. Spec: //specific description of the pod template containers: -image:kubeguide/tomcat-app:v1 16 name:myweb /span> resources: Limits:
Understanding of the role of 1.configmapWhat role does the Configmap play?For example, enable a MySQL container. In general, the MySQL container is important for two parts, one for storing data and the other for configuration file MY.CNF.As previously tested, the storage data can be decoupled with the PV PVC implementation and the separation of the containers.The configuration file can also be decoupled fro
and Dockerswarm, etc.), thanks to three main reasons:Cloud-Native Design: Supports the deployment and running of next-generation applications.Open source features: Fast innovation to avoid vendor lock-in.Portability: Deploy anywhere, whether in the cloud, in On-premise, in a virtual machine, and so on.Shows the role that kubernetes plays in cloud-native deployments:
has the following key features:
Have a unique named name
Have a virtual IP and port number
Ability to provide remote service
is mapped to a set of container applications that provide this service capability
Service processes are based on socket communication for external services (such as Redis, Memcache, MYSQL, Web Server), and a service is typically serviced by multiple related service processes. Each service process has a
Controller information to etcd.3.1.5 Endpoints Registry
Endpoints Registry is responsible for collecting Service Endpoints, such as Name: "mysql", Endpoints: ["10.10.1.1: 1909", "10.10.2.2: 8834"], the same as Pod Registry, the Controller Registry also implements the RESTful API interface of the Kubernetes API Server. It can perform Create, Get, List, Update, Delete, and watch operations.3.1.6 Binding Regi
to create, Get, The List, Update, delete operations, and watch operations that monitor the replication controller changes, and store the replication controller information in ETCD.3.1.5. Endpoints RegistryEndpoints Registry is responsible for collecting service endpoint, such as name: "MySQL", Endpoints: ["10.10.1.1:1909", "10.10.2.2:8834"], same pod Registry,controller Registry also implements the RESTful API interface for
wide parameter display detailsNAME cluster-ip external-ip PORT (S) Age SELECTORKube-dns 10.254.0.10 Kubernetes 10.254.0.1 2. Test DNS for normal parsing:First, create a pod named: Mysql-service Service and BusyBox, respectively.[Email protected] Master yaml]# cat Mysql-server.yamlApiversion:v1Kind:serviceMetadataLabelsName:mysqlRole:serviceName:mysql-serviceSpec
. Endpoints Registry
Endpoints Registry is responsible for collecting service endpoint, such as name: "MySQL", Endpoints: ["10.10.1.1:1909", "10.10.2.2:8834"], with pod Registry,controller Registry also implements the RESTful API interface for Kubernetes API server, which can do create, get, List, Update, delete, and watch operations. 3.1.6. Binding Registry
Binding includes an ID that needs to bind the pod
an example:The following pod consists of two containers: file puller and Web serverFile puller periodically pulls the latest files from the external Content manager and stores them in the shared volume. The Web Serverv reads the file from volume and responds to consumer requests.The two containers are tightly coordinated, together they provide the latest data for consumer, and they share data through volume. So it's appropriate to put it in a pod.One more example: do you need to put Tomcat and
. With these interfaces, we can create, Get, List, Update, delete operations on the service, and watch operations that monitor service changes, and store service information in ETCD.3.1.4 Controller RegistryController Registry is responsible for tracking all Replication controller,replication controllers in the Kubernetes cluster maintaining a specified number of copies of the pod copy (replicas). If one of the containers dies, the Replication control
the service's Yaml file as App:my-web, the service will Pod-->metadata-->labeks label as the app: The My-web pod acts as the backend for the distribution request. When the pod changes (increase, decrease, rebuild, etc.), the service is updated in a timely manner. As a result, the service can serve as the access portal for the pod, acting as a proxy server, and for visitors to access through the service without having to directly perceive the pod.It is important to note that the fixed IP assigne
The Kubernetes network model is made up of four parts from inside to outside:
The network where the pod interior container resides
The network where the pod resides
Network for communication between pod and service
Network of communication between outside and service
It is recommended that you understand the network model of Docker before reading this article. Refer to the author's first two articles [
" and "Services". The purpose of Kubernetes is to support as many loads as possible, including stateful, stateless, data-processing loads, so long as the application can run in a container, it can run well in kubernetes. Kubernetes does not provide middleware (such as message bus), data processing frameworks (such as Spark), databases (such as
databases, caches and so on. With this scheme, the container can be connected horizontally and can be accessed vertically. The external connection container can be connected directly through the container IP address, or it can be accessed through load balancing. The container can also directly access virtual, physical machine resources, as well as MySQL and other component Services outside the Leengine system.
We have written our own and CNICTL mana
Concept GroomingIn order to solve the above-mentioned problem, Kubernetes does not need to find a way, after all, is the network security level of the problem, every service will encounter problems, the industry has a mature solution to solve. Here we look at industry scenarios and related concepts.
Symmetric encryption/Asymmetric encryptionThese two concepts belong to cryptography, which is not easy to understand for the students who have n
; "Src=" https://s3.51cto.com/wyfs02/M01/9B/1A/wKioL1leCtKTVDupAAF7iJk43zQ642.jpg-wh_500x0-wm_ 3-wmp_4-s_2100036219.jpg "style=" Float:none; "title=" 1.jpg "alt=" Wkiol1lectktvdupaaf7ijk43zq642.jpg-wh_50 "/>Modular management of applications and automated application buildingThe time required for the microservices migration of traditional service platforms is long and difficult, with all kinds of unknown problems in the middle. In contrast to the traditional container management platform, Ecos-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.