Alibabacloud.com offers a wide variety of articles about container technology virtualization, easily find your container technology virtualization information here online.
In the previous section we prepared the Macvlan experimental environment, and today we create Macvlan network Mac_net1 in Host1 and host2: Note: also execute the same command in Host2. ①NBSP; -d Macvlan NBSP; specifies driver as Macvlan. ②macvlan Network is the local network, in order to ensure that cross-host communication, users need to manage their own IP subnet.③ Unlike other networks, Docker does not create a gateway for Macvlan, where the gateway should be real, or the
. close k8s-node2 k8s-node1 Verify the consistency of the data:The MySQL service is restored and the data is intact.SummaryIn this chapter we discuss how Kubernetes manages storage resources.The Emptydir and Hostpath types of Volume are convenient, but are not durable and Kubernetes support a variety of external storage systems Volume.PV and PVC separate the responsibilities of administrators and ordinary users, making them more suitable for production environments. We also learned how to
://192.168.56.105:31614/ Configure logon PermissionsDashboard SupportKubeconfigand theTokentwo kinds of authentication methods, in order to simplify the configuration, we pass the configuration filedashboard-admin.yamlgive admin permissions to the Dashboard default user. execute kubectl apply make it effective. now directly click on the login page skip can enter Dashboard. In the next section we will use Kubernetes Dashboard.Books:1. 5 minutes a day kubernetes " https://item.jd.co
/ Kubernetes-dashboard.yamlDashboard will be in kube-system Create your own Deployment and Service in namespace. because the Service isClusterIPtype, for ease of use, we cankubectl --namespace=kube-system edit service kubernetes-dashboardmodified intoNodePorttype. Save the changes and the Service has been assigned a port 31614 at this time . Access Dashboard https://192.168.56.105:31614/ through the browser , the login interface is as follows:Configure logon PermissionsDashboard SupportKubeconfi
from Eth2.10, discovers that the destination address is 172.16.20.11, and looks at its own routing table:The packet is then forwarded from the eth2.20.③ through the ARP record information, the router can know 172.16.20.11 on the host2, so the data packets sent to HOST2.④HOST2 data is packets to BBOX4 based on destination address and VLAN information.The connectivity and isolation of the Macvlan network relies entirely on VLANs, IP subnet, and routing, and Docker itself does not have any limitat
learn Kubernetes in the order of chapters, and Master Kubernetes's theoretical knowledge and practical skills through the experiments in the tutorials.
Experienced OPS personnel can use this tutorial as a reference material to view relevant knowledge points in the actual work.
It is hoped that readers will be able to lay a solid foundation through this tutorial, to be able to operate the Kubernetes calmly, and to build a practical container
hope everyone can master.In the next section we begin to learn about the container network across hosts.650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20170711-1499780326078042943.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20170728-1501192822377093870.jpg "alt=" QR code + fingerprint. png "style=" border:0px;font-family: ' Helvetica Neue ', Helvetica, ' Hiragino Sans GB ', ' Micro
, remove the optical drive, start rancheros again, boot if it fails, check the configuration file. Important thing to say three times: boot if it fails, check the configuration file. If the boot fails, check the configuration file. If the boot fails, check the configuration file. Please pay attention to the failure prompt, you can open a recording screen in the virtual machine, in order to replay, to find the error message, there is a similar hint of the row 11,col 1, which indicates that the 1
current cluster is to execute kubeadm reset it on each node . You can then initialize the cluster as we did in the "Initializing Master" section of the "Deploying Kubernetes Cluster" chapter earlier. Kubeadm Init--apiserver-advertise-address 192.168.56.105--pod-network-cidr=10.244.0.0/16then follow the documentation https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/ install Canal. The documentation lists the installation methods for various network scenarios:Execute the follow
I. Description of the EnvironmentTo run Consul as a container:through http://192.168.56.1 in : 8500 Visit Consul modify docker02 Span style= "; font-family: Equal line; font-size:14px" > and dockerdaemon configuration file Span style= "; font-family: Equal line; font-size:14px", Docker02 and DOCKER03 are registered in the consul database Vim /ETC/SYSTEMD/SYSTEM/DOCKER.SERVICE.D /10-machine.confRestart Docker daemonSystemctl Daemon-reloadSystemctl Restart DockerTemporary something, cont
Policy:
busybox Pod has no access Service. if Pod added label access: "true" can access the app, but Ping has been banned.
The cluster node has no access to the Service, nor does it Ping the replica Pod.
The Service cannot be accessed outside the cluster (192.168.56.1).
If you want to have the cluster nodes and the outside of the cluster (192.168.56.1) also have access to the application, you can make the following modifications to Network Policy:Apply the new Network P
/ Upload-ueditor-image-20170726-1501021545647062517.jpg "style=" border:0px;float:none; "/>Currently the current environment is as follows650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20170726-1501021447267085122.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20170726-1501021545844047169.jpg "style=" border:0px;float:none; "/>The next section learns how to manage machine.650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.cl
learned how to pass configuration information to the Pod. Use Secret If the information requires encryption, or use Configmap if it is a generic configuration information.
Secret and Configmap support four methods of definition. Pod can choose Volume mode or environment variable mode when using them, but only the Volume mode supports dynamic update.
In the next section, we will begin to learn about the Helm-kubernetes package Manager.
Books:
1. "5 minutes a day to play Kubernetes"Https://item.j
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.