, each time a new service is created, the apiserver randomly selects an IP address in this address segment as the IP address of the service, and the port is determined in advance. For the redis-master service, the service address is 10.10.206 and the port is 6379.
[root@kubernetes guestbook]# kubecfg -h http://192.168.230.3:8080 list servicesName Labels Selector
IP address and port, but access s Ervice this virtual IP and port, the service forwards the request to the pod behind it.Kubernetes, when creating a service, finds the pod based on the service's label selector (label Selector), creating a endpoints object with the same name as the service. When the address of the pod changes, the endpoints changes as well. When the service accepts the request, it can find
process into the appropriate pod, making it a container (Container) that runs in the pod. to establish the relationship between service and pod, kubernetes first labels each pod and then assigns a label selector (label Selector) to the corresponding service. This cleverly solves the problem of service-pod correlation. Pod:pod runs in the node environment, which
. 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)
Description: Use the Grafana official plugins (Grafana-kuberneres-app) Link Prometheus show kubernetes informationNote: All monitoring-related information is placed on the Namespace=monitorGithub:https://github.com/grafana/kubernetes-app1, Installation PrometheusProm-rbac.yamlapiVersion: rbac.authorization.k8s.io/v1beta1kind: ClusterRolemetadata: name: prometheus namespace: monitorrules:- apiGroups: [""]
cluster for Spark application, the submission mechanism is:
L Spark Create Spark Driver, run in a kubernetes pod.
L driver creates executors, runs in kubernetes pods, and executes application code.
L When the application completes, the Executor pods is terminated and cleaned, but driver pod is persisted to the log, and the "Finish" state remains in Kubernetesapi until the final garbage collection or manual
Service is automatically assigned a cluster IP address (a virtual address that can be accessed only within the cluster) and a DNS name. Other containers can access the Service through this address or DNS, you do not need to know how the backend container runs.
apiVersion: v1kind: Servicemetadata: name: nginxspec: ports: - port: 8078 # the port that this service should serve on name: http # the container on each pod to connect to, can be a name # (e.g. 'www') or a number (e.g. 80)
seem to work ). The Kubernetes cluster depends on two third-party components: etcd and docker. The former provides status storage, and the two are used to manage containers. Clusters can also use distributed storage to provide storage space for containers. Displays the components of the current system:
Kubernetes proxy nodes Kubelet and Kube-proxy run on the proxy node. They listen to Service node informa
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 to support, through the proxy port and servic
. 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 service delivery container, External performance as a single provider, the outside does not need to understand how to run the backend, whi
rangeIPC Namespaces: Multiple containers in the pod can communicate using SYSTEMV IPC or POSIX Message Queuing.UTS namespace: Multiple containers in the pod share a host name.Volumes (Shared storage volume): Each container in the pod can access the Volumes defined at the pod level.LabelLabel is a core concept in the kubernetes system. Labels are attached to various objects in the form of Key/value key-value pairs, such as pods, service, RC, node, and
, destroyed, dispatched, and managed. The associated one or more containers (Container) Form 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.2.2 ServicesServices is also the basic operating unit of Kubernetes, is the abstraction of real application services, each service has a lot of corres
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
": "Backend", "tier": "Cache""Partition": "Customera", "Partition": "Customerb""Track": "Daily", "track": "Weekly"For example, when you define the RC in the Yaml file of the RC selector label is App:my-web, then this RC will pay attention to the Pod-->metadata-->labeks label in the app: My-web's pod. Changing the label of the corresponding pod will leave the pod out of RC control. Similarly, when RC is running normally, attempting to continue creating
One, jQuery selectorIntroduction to the JQuery Selector-JQuery selector is similar to CSS selection (positioning elements, applying styles), enabling positioning elements, imposing behavior-Use the JQuery selector to separate content from behavior-Learn to use selectors is the basis of learning JQueryThe advantages of the JQuery
本身的维护; 而kubernetes实际上也是状态的维护, 只不过是容器级别的状态维护; 不过kubernetes在容器级别要做到不仅仅状态的维护, 还需要docker跨机器之间通信的问题.Related concepts
1:pod
A pod is a collection of containers, each of which can contain one or more containers; For ease of management the same container that runs the same business in a pod
Containers of the same pod share the same system stack (network, storage)
The same pod can on
In general, the Picker engine rule is: $ (' query string ').Most commonly used most basic is: 1, Tag Selector (with document element as the selector): $ ("div"), 2, ID selector (with ID as the selector): $ ("#demo1"), 3, class selector (with class as the
-controller.json file to tell kubernetes how to create this controller. Of course, the name of the file can be arbitrary, as long as you can understand the line. Tomca-controller.json probably looks like this:{"id": "Tomcatcontroller","Kind": "Replicationcontroller","Apiversion": "V1beta1","Desiredstate": {"Replicas": 2,"Replicaselector": {"name": "Tomcatcluster"},"Podtemplate": {"Desiredstate": {"Manifest": {"Version": "V1beta1","id": "Tomcat","Conta
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.