Pictured in San Francisco Pier 7:coit Tower
The last time we introduced the Kubernetes deployment Fabric (clickable) of the overall architecture and network, storage planning, this issue is serialized second, detailing the deployment tool design details, including template customization and configuration settings. A PDF version of this method is attached.
3. Description and use of the source code
3.1 Environment Preparation
Assume that the K8s pla
service via 30664 ports, in the form of nodeip:nodeport, and if the NODEIP is an extranet IP, the traffic is distributed to the backend serverTwo. LoadBalancer and external IP designation1. You can specify an external IP that is not maintained by k8s on k8s, and you can distribute the request to the back-end server by using this IP directly on external access① Creating a ServiceVim Loadbalancer.yamlApiversion:v1kind:servicemetadata:name:my-nginxspec:
Multiple different types of resources in a Yaml file can be divided with "---"Name:httpd2-svcNamespace:kube-public #给资源分配网络 Resources will be used in Kube-publicTo create a Nodeport type service:Kubectl Get Service Httpd-svcInExternal-ip: For Port (S): 8080:32312/tcp 8080 indicates clusterip monitored port 32312 indicates the ports that are listening on the nodeKubernetes external access to the cluster exposed port
Use Kubernetes to manage containers on centos 71. Preface
The previous section describes the Kubernetes system architecture, which gives you a preliminary understanding of Kubernetes. However, you may not know how to use Kubernetes. This article describes how to deploy and configure the network environment of the
Guide:Kubernetes a ride on the dust to open, then the enterprise should start to kubernetes migration? Under what circumstances do you really accept it? Some of the technology frontier companies first-step practice is probably the most persuasive and reference value. This article is a good reference.1Kubernetes now rage, it is part of a massive cloud-native movement. All major cloud providers use it as a solution for deploying cloud-native application
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 befor
What is 1.1 kubernetes?First, it is a new, container-based, distributed architecture leading solution. is an open source version of Google's Borg (large-scale cluster management system).Second, if the system design follows the Kubernetes design idea, then the traditional system architecture and business does not have much to do with the underlying code or function modules (such as load balancing,
github and compile it directly. Then, the flannel executable file is generated in the bin or dist directory of flannel (different versions may lead to different directories.
$ Git clone-B v0.5.6 https://github.com/coreos/flannel.git
$ Cd flannel
$./Build
The compilation method may vary. For details, refer to the README. md file in the flannel directory.
Copy the executable file flanneld to the/usr/bin/directory.
Create the/usr/bin/flannel directory and copy the mk-docker-opts.sh file under the
/dependency1.jar,https://path/to/dependency2.jar
--fileshdfs://host:port/path/to/file1,hdfs://host:port/path/to/file2
--confspark.executor.instances=5 \
--confspark.kubernetes.container.image=
Https://path/to/examples.jar
(7) Key management.
The Kubernetes key can be used to provide spark application access security Service certificates. Installs the user-specified key to the driver container, and the user
. Main concepts of Kubernetes 2.1 Pods
In the Kubernetes system, the smallest granularity of scheduling is not simply a container, but a Pod. A Pod is the smallest deployment unit that can be created, destroyed, scheduled, and managed. One or more containers (Container) constitute a Pod. Generally, the containers in the Pod run the same application. Pods contain containers running on the same Minion (Host)
for managing its container cluster is Borg, the predecessor of Kubernetes. In fact, many Google developers working on the Kubernetes project have previously worked on the Borg project. Most Kubernetes application deployment models originate from Borg. Understanding these models is the key to understanding Kubernetes.
Kubernetes container cluster management system basic explanation, kubernetes Management SystemKubernetes Overview
Kubernetes is open-source by GoogleContainer Cluster Management SystemIs an open-source version of Google's large-scale container management technology Brog, which includes the following features:
Container-based application deployment, maintenance,
run code directly in your production environment without having to start a new server
My first touch Kubernetes came from a conversation with my colleague Kamal :
Kamal: Kubernetes You can start a new service with a single command you just need
Julia: How is that possible?
Kamal: For example, you just need to write a profile, then apply it, and then
associated containers into a pod, usually in pod containers running the same application. Pods contain containers that run on the same minion (Host), as a single snap-in that shares the same volumes and network NAMESPACE/IP and port space.3.2. ServicesServices is also the basic operating unit of Kubernetes, is the abstraction of real application services, each service has a lot of corresponding containers
. Services
Services is also the basic unit of operation of Kubernetes, is the abstraction of the real application service, each service has a lot of corresponding containers to support, through proxy port and service Selector decision Service request pass to the back-end
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.