admin.conf,kubelet.conf,controller-manager.conf,scheduler.conf configuration file.Master recommends using--config to initialize the cluster for multiple nodes, but the official website tip:Caution: The config file is still considered alpha and may change in F Uture versions.Reference: https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/Config.yaml file, refer to the following:Apiversion:kubeadm.k8s.io/v1alpha1kind:masterconfigurationkubernetesversion:v1.10.4networking:podsubne
status of the cluster ETCD Kubectl get CS
2. Deploying node ComponentsThe first step: put the file created in SSL above
Bootstrap.kubeconfig,kube-proxy.kubeconfig
Copy to Node
Scp-r *kubeconfig root@192.168.161.152:/opt/kubernetes/cfgScp-r *kubeconfig root@192.168.161.153:/opt/kubernetes/cfg
Step Two: Locate the K8s file component required by the node server i
This is a creation in
Article, where the information may have evolved or changed.
Overview of related principles
What is the first thing to say about the MLM?
The MLM (Container network interface) is an operation container network specification, including method specification, parameter specification and so on.It only cares about the network connection of the container, allocates network resources when the container is created, and deletes the allocated resources when the container is deleted. B
Pod is the most basic deployment dispatch unit in Kubernetes, and it can contain container, which logically represents an instance of a certain application. For example, a Web site application is built from the front end, back end, and database, and these three components will run in their respective containers, so we can create a pod containing three container. This paper will do a simple analysis of the basic processing flow of
Haven't written a blog for a long time, the company engaged in a period of 997 is too brutal. 997 End also fast 1 weeks, finally slow down a bit, first two easy article, and then a little work, write a Kubernetes series. This article mainly introduces the kubernetes related commands, for the initial contact Kubernetes reference.Kubernetes through the kube-apiserv
Kubectl related
Keyword ConceptsPodsLabelsReplication ControllerServicesVolumesKubectl Command Detailed description
Get pod ListThe # command returns the list of pods that are currently created by the kubernetes, mainly displaying the following message # NAME ready STATUS restarts age$ kubectl get pod # NAME Ready STATUS restarts Age# etcd-global-9002d 1/1 Running 0 2d#
This is a creation in
Article, where the information may have evolved or changed.
Node(also known minion as) runs docker container , and master is responsible for scheduling the management of these container .
MasterRun the following services:
API Server-nearly All the components on the master and nodes accomplish their respective tasks by making API calls. These is handled by the API Server running on the master.
ETCD-
Configuring the Kubernetes Network
Installation is required on both master and nodes flannel
Yum Install flannel
Configuration is required on both master and nodes flannel
Vi/etc/sysconfig/flanneld
# Flanneld configuration options# ETCD URL location. Point the server where ETCD runsFlannel_etcd
This is a creation in
Article, where the information may have evolved or changed.
This series of documentation describes kubernetes all the steps of using a binary deployment cluster, rather than kubeadm deploying the cluster using automated methods;
During deployment, the startup parameters of each component are listed in detail, their meanings, and the problems they may encounter.
Once the deployment is complete, you will understand the interaction
labor, so the installation of different services, the final installation completed, Master and node start the core services are as follows:
Image Name
Version
Swarm2 (Master)
Swarm1
K8s.gcr.io/kube-apiserver-amd64
v1.10.0
Need
Don't need
K8s.gcr.io/kube-controller-manager-amd64
v1.10.0
Need
Don't need
K8s.gcr.io/kube-scheduler-amd64
v1.10.0
Need
Don't need
balancing, the subordinate node needs to report its status and resource status to the main control node, and finally carry out the business.Similarly, Kubernetes does provide the basic functions of the principal and subordinate roles described above, and identifies specific components to divide and conquer specific functions:On master, ETCD load persistent storage, used to store various types of resources
Controller manager and scheduler. To achieve this reliably, we are want to having one actor modifying state at a time, but we want replicated instances of th ESE actors, in case a machine dies. To achieve this, we is going to use a lease-lock with the API to perform master election. We'll use --leader-elect the flags for each scheduler and Controller-manager, using a lease in the API would ensure that's only 1 ins Tance of the Scheduler and Controller-manager is running at once.That is, Control
Kubernetes is a master-slave structure, it mainly implements the Docker of the dispatch, the following detailed introduction of my understanding of the Kubernetes architecture:
Master node :
API Server: Provides the API interface of cluster management, it becomes the central hub of data interaction and communication between each function module in the cluster, and has the complete cluster security mechani
1: Install VirtualBox, and download Centos-7-x86_64-dvd-1708.iso, install CENTOS7, the specific process can be Baidu.2: Start the CentOS ssh with the following steps:(1) Yum List installed | grep openssh-server See if SSH is already installed and if not installed, enter yum install Openssh-server(2) Vim/etc/ssh/sshd_config,Open the listening port and listening address:Allow remote logins:Turn on use user name password to authenticate as connection(3) SSH service enabled: sudo service sshd startC
DescriptionThis document directs the use of binary packages to rapidly deploy highly available kubernetes clusters.Script hosting: k8s-ansibleReference: high-availability kubernetes clustersComponent version
Components
version
Notes
Centos
7.5
Linux kernel version not less than 3.10, this document is based on the CentOS release version
Ha
spark2.3.0+kubernetes Application Deployment
Spark can be run in Kubernetes managed clusters, using native kubernetes scheduling features have been added to spark. At present, kubernetes scheduling is experimental, in future versions, Spark may have behavioral changes in configuration, container images, and portals.
(1
1.kubectl get namespace annoying-namespace-to-delete -o json > tmp.jsonThen edit Tmp.json and remove"kubernetes"curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json https://kubernetes-cluster-ip/api/v1/namespaces/annoying-namespace-to-delete/finalizeAnd it should delete your namespace,2.Kubernetes forced to delete the terminating state of th
This article transferred from: http://blog.csdn.net/xingwangc2014/article/details/51204224Kubernetes through the kube-apiserver as the entire cluster management portal. Apiserver is the primary management node for the entire cluster, where the user configures and organizes the cluster through Apiserver, while the interactions between the nodes in the cluster and the ETCD store interact with the Apiserver. Apiserver implements a set of Restfull interfa
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.