Kubernetes is a distributed cluster of Google's Docker based, with the following main components ETCD: High-availability storage sharing configuration and service discovery, used as a companion to flannel on Minion machines, to enable Docker running on each minion to have different IP segments The ultimate goal is to make the Docker Containner running on different minion have an IP address that is not the same as any other Containner (Docker Containn
https://github.com/kubernetes/community/blob/master/contributors/devel/development.md# Building-kubernetes-on-a-local-osshell-environmentDownload various mirrors as requiredGo get GITHUB.COM/TOOLS/GODEPDownload Kubernetes code placed in a temp directoryThen create the K8s.io under Gopath because the import path of the code inside the source is k8s.io/xxx/xxxAfter
This is the culture and education everyone step by step compile kubernetes. Ready to
Before compiling the kubernetes, you should install the build environment first, you need to install the go, install the tutorial please own Baidu. compiling
Create a folder
Create a Go project folder
mkdir kube
cd kube
mkdir src
cd src
mkdir k8s.io
cd K8s.io
Download Source PackageUnder the K8s.io
Kubernetes client (Universal App) Development essay-the App also needs to be packaged before logistics, universalapp
Think of a joke: Tang Miao and his entourage came to the front of the Buddha, ready to learn the scriptures, the Buddha asked softly: Have you brought a USB flash drive? Four mentoring students immediately fell to the ground. Well, it's a long journey, but I want to tell you that the preparations must be in place.
The package and relea
/etc/hosts172.18.1.6 k8s-node-1172.18.1.7 k8s-node-2172.18.1.8 k8s-node-3172.18.1.9 k8s-node-42. Installing the ETCD Cluster2.1 K8s-node-1 operation (individual ports can be controlled by themselves)Yum-y Install etcd# Create ETCD Data Modify configuration file,/etc/etcd/etcd.conf need to modify the following parameters: etcd_name=etcd1etcd_listen_peer_urls= "/http 172.18.1.6:2380 "etcd_listen_client_urls=" http://172.18.1.6:2379,http://127.0.0.1:2379 "Etcd_initial_advertise_ peer_urls= "http://
This article describes how to quickly deploy a set of kubernetes clusters, so let's get started quickly!
Preparatory work//关闭防火墙systemctl stop firewalld.servicesystemctl disable firewalld.service//关闭selinux,修改/etc/selinux/configSELINUX=disabledMachine Deployment Planning
Host
IP
Deploying Components
Master Master Node
192.168.199.206
ETCD, Kube-apiserver, Kube-controller-manager, Kube-sch
Kubernetes components and role distribution component functions:
-Etcd a highly available k/v key value to the storage and service discovery system-Flannel The communication of the container network of the boast host-Kube-apiserver provides API calls to Kubernetes clusters-Kube-controller-manager ensure Cluster service-Kube-scheduler dispatch container, assign to Node-Kubelet boot container on node
Kubernetes client UAP development and client uapPreface
Page navigation is a basic skill in the App. For a general App, you only need to perform simple Navigate + Back, A complex App may require a mixture of navigation modes to achieve the best user experience.SplashScreen startup Screen
Let's start with the initial SplashScreen. If you make the boot screen into a Page, it will be displayed first when you start the screen, and then pretend to be busy
Batch JobsJobsOne job creates one or more pods and ensures that a specified number of Pods are successfully terminated. When all pods are completed successfully, the job will track the process. When the number of successful finishes reaches the specified number, the job itself ends.Reference Documentation:https://kubernetes.io/docs/user-guide/jobs/This article is from the Linux SA John blog, so be sure to keep this source http://john88wang.blog.51cto.
The pod is a container group, so let's create a pod now, just like Dockerfile.VI Nginx-pod.yaml (to pay great attention to the space, usually two spaces)Add to:Apiversion:v1Kind:podMetadataName:nginx1SpecContainers-NAME:NGINX1Image:docker.io/nginxPorts-containerport:9001Start podKubectl create-f Nginx-pod.yamlUse get Pods to view650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/88/89/wKioL1f7Tn_RJAOUAAAQwjCNxUA018.png "title=" 817cc777-d671-4aee-b74b-ca8300524af7.png "alt=" Wkiol1f7tn_r
Kubernetes 1.9 clusters use traefik to publish services
This section describes how to use traefik to publish services in the kubernetes 1.5.2 cluster environment. Traefik is deployed in the daemonset mode. The http protocol is used to connect to the api-server, and rbac is not configured. This article describes how to deploy traefik in k8s 1.9 using deployment for service release.
Before starting, You Need
1, kubernetes installation of the creation of Kubeconfig filehttps://jimmysong.io/blogs/kubernetes-create-kubeconfig/2. Easy to understand kubernetes authentication functionhttp://qinghua.github.io/kubernetes-security/3. Security Configuration of Kubernetes clusterhttp://ton
Brief Description:This article covers 3 Ubuntu machines, 1 Rke deployment Machines (192.168.3.161), 2 kubernetes cluster machines (3.162 and 3.163).On the Windows machine, download the rke_linux-amd64 from GitHub, rename it to Rke, edit the cluster.yml cluster deployment file, and upload the file to the 3.161 machine using the PSCP command provided by Putty. On the 3.161 machine, execute the rke command to deploy the cluster to the 3.162 and 3.163 mac
Brief description:This article covers 3 Ubuntu machines, 1 Rke deployment Machines (192.168.3.161), 2 kubernetes cluster machines (3.162 and 3.163).On the Windows machine, download the rke_linux-amd64 from GitHub, rename it to Rke, edit the cluster.yml cluster deployment file, and upload the file to the 3.161 machine using the PSCP command provided by Putty. On the 3.161 machine, execute the rke command to deploy the cluster to the 3.162 and 3.163 mac
kubernetes clinet-go Development (I.)
Kubernetes currently provides two ways to create the required pod,service,replicationcontroller, one is through Kubectl create-f, a restful interface via HTTP, because of the work item's reason, Need to be customized according to the actual business needs of the development of K8s API, I used the library is the official, code base address: Https://github.com/
Service on the line to the top of the live pressure, carry the test, or to be said or we do things brother, remember this scene above?
The old method is a service cluster deployment, but there is always a limit, before with Ali when they have a flexible calculation can be set by the CPU's threshold to dynamically expand and shrink computing capacity, at that time the feeling is very strong, at least at that time our conventional approach is difficult to do, Did not expect to have
kubernetes Introduction
Kubernetes is a container cluster management system that Google Open-source in June 2014, using the Go language development, Kubernetes also called k8s.
K8s is a Borg container cluster management system inside Google, Borg has been operating on Google's mass production for 10 years.
K8s is mainly used for automated deployment, expansion
Kubernetes client UAP development-custom control's right arm and right armPreface
The last time we talked about the App's genie: custom controls. This time, let's continue with this topic to talk about two useful assistants for custom controls:
Selector-TemplateSelector
Converter-Converter
These two things can help custom controls to be used more easily and easily, so they must be mastered.Value Converter
You may not be familiar with this because
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.