hostnameKubelet_hostname= "--hostname-override=k8s-node1"# Location of the Api-serverKubelet_api_server= "--api-servers=http://k8s-master:8080"# POD Infrastructure containerKubelet_pod_infra_container= "--pod-infra-container-image=registry.access.redhat.com/rhel7/pod-infrastructure:latest"# ADD Your own!#KUBELET_ARGS = ""kubelet_args= "--cluster-dns=223.5.5.5--cluster-domain=k8s-master"6. Restart the service on node[Master]For SERVICES in Flanneld etcd kube
corresponding.Modify its configuration file/etc/sysconfig/flanneld content as follows:# Flanneld configuration options # ETCD URL location. Point the server where Etcd runsflannel_etcd_endpoints="https://10.10.90.105:2379,https://10.10.90.106:2379,https://10.10.90.107:2379"# ETCD config key. This is the configuration key, which flannel queries# for address range Assignment#flannel_etcd_prefix="/atomic.io/network"Flannel_etcd_prefix="/kube-centos/netw
k8s Basic Concepts1. NodeNode as a working node in the cluster, running a real application, the smallest running unit kubernetes managed on node is the pod. Node runs Kubernetes's kubelet, Kube-proxy service processes, which are responsible for pod creation, startup, monitoring, restart, destruction, and load balancing for software patterns. The information that node contains:
node address: The IP
From my space turn over, space address http://user.qzone.qq.com/29185807/blog/1458270203
And then an article.
We're back in k8s.io\kubernetes\pkg\master\master.go.
Func (M *master) init (c *config) {
From the code, it generates a lot of storage,podstorage,eventstorage,nodestorage.
These storage are then registered in master's storage variable, which is the restful route, but not the restful routing format.
So where are these routes registered?
L
Docker Pull Docker.gaoxiaobang.com/kubernetes/skydns : 2015-10-13-8c72f8c Docker pull docker.gaoxiaobang.com/kubernetes/exechealthz:1.0 2. Create a namespace According to the namespace divided into different namespaces, the system services unified into a separate space: Kube-system, because the default space is only defaulted, we first want to create
": [ { "C": "CN", "ST": "Beijing", "L": "Beijing", " O ":" K8s ", " OU ":" System " } ]}eofTips: CNThat is, Common name,kube-apiserver extracts the field from the certificate as the requested user name; OThat is, Organization,kube-apiserver extracts the field from the certificate as the group to which the requesting user belongs;Generate the CA certificate with CFSSL and is
Before installation, the three CENTOS7 servers are banned from the firewall, and the mirror that needs to be started 2 node machines must be kept consistent, otherwise the pod will not start1 has three CENTOS7 servers: 10.1.1.170 (Master), 10.1.1.169 node1,10.1.1.171 Node22 Install NTP service on three machines to ensure all time can be synchronized#yum-y Install NTP#systemctl Start NTPD#systemctl Enable NTPD3 Installing Kubernetes Master on 10.1.1.17
Enable FlanneldIt is important to note that if you want Docker to use Flannel's network, Docker must start after flannel, so you need to restart Docker:Systemctl Restart Docker4, install Kubernetes service sideI'm using a private kubernetes yum source provided by someone online, as follows:650) this.width=650; "src="/img/fz.gif "alt=" Copy Code "/>VIM/ETC/YUM.REPOS.D/KUBE.REPO[
apiserverkube_master="--master=http:// 192.168.5.221:8080 "Five, disable the firewallSystemctl Disable iptables-services firewalldsystemctl stop iptables-services FIREWALLDVi. Configuring the Kubernetes service on the master nodeModify the configuration file/etc/etcd/etcd.conf, make sure ETCD listens to all addresses, modify the following:Etcd_name=defaultetcd_data_dir= "/var/lib/etcd/default.etcd" etcd_listen_client_urls= "http://0.0.0.0:2379"Modify
.
NetworkNetwork-policy
[Beta] CIDR-based Networkplicy policy support.
[Beta] Egressrules is supported in Networkpolicy.
Kube-proxy Ipvs Mode
[Alpha] Kube-proxy supports Ipvs mode.
API MachineryKube-apiserver
Fixed an issue with Apiservice autoenrollment. This issue has affected the rolling restart of the HA API to add or remove API groups.
[Alpha] The
file), Then, based on the configuration information, a proxy process is started on Minion and the corresponding service port is monitored, and when an external request occurs, proxy distributes the request to the correct container processing on the backend based on the load balancer.Therefore, the proxy not only solves the problem of the same host service port conflict, but also provides the service forwarding service Port's ability to provide services externally, the proxy backend uses the ran
Create a Kubernetes-dashboard
In the previous article (SEE), deploy the Kubernetes-dashboard Based on the deployed kubernetes. It is an official user management Kubernets cluster visualization tool; deploying a dashboard is the same as deploying other applications in kubernets. Just create the Replication Controller and Service services required by the dashboard;
I. Introduction of COREDNSKubernetes includes the DNS server Kube-dns for service discovery. The DNS server leverages Skydns's libraries to provide DNS requests for kubernetes pods and services. SkyDNS2 's author, Miek Gieben, created a new DNS server, Coredns, which was built with a more modular, extensible framework. Infoblox has partnered with Miek to use this DNS server as a substitute for
Kubernetes API Server FeaturesThe core function of Kubernete API server is to provide an HTTP rest interface for kubernetes, deleting, changing, checking, and watch for various resource objects (such as Node,pod,service, etc.).The API server is the central hub for data interaction and communication between the various functional modules in the cluster, in addition to the following features:
API Por
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.