Mesos and Kuberneteshttp://dockone.io/article/956 I firmly believe that their use will grow faster in the next year, so it is time to review the summary and prepare for 2016 years. I would like to discuss the current situation of Mesos and kubernetes and enumerate the strengths and weaknesses that will allow you to understand the concept of cluster manager.Mesos and KubernetesBefore I start, I'd like to take the time to roughly compare Mesos and
Colleagues who have studied kubernetes know that kubernetes if you need to enable TLS authentication, making a certificate is an essential step. However, many people encounter a lot of trouble in making certificates. Today is the main record of how I made my certificate during the deployment of Kubernetes. Throughout the process, the startup parameters for each c
Tags: WordPress MySQL KubernetesWordPress is the main platform for editing and publishing Web content. In this tutorial, I'll step through how to use kubernetes to build a high availability (HA) WordPress deployment.WordPress consists of two main components: a wordpress PHP server and a database for storing user information, posts, and website data. We need to make these two components in the entire application both highly available and fault tolerant
This is a creation in
Article, where the information may have evolved or changed.
kubectlFunctions that are actually running ( k8s.io/kubernetes/pkg/kubectl/app/kubectl.go ):
func Run() error { cmd := cmd.NewKubectlCommand(cmdutil.NewFactory(nil), os.Stdin, os.Stdout, os.Stderr) return cmd.Execute()}
NewKubectlCommandThe code ( k8s.io/kubernetes/pkg/kubectl/cmd/cmd.go ):
//Newkubectlcommand creates t
A description of the application scenarioContinuous tracking research kubernetes also for some time, kubernetes as Google open-source production-level container scheduling system from open source has received a lot of attention. A number of research and development companies have researched Kubernetes's design concepts and application scenarios and soon organized developers to combine
KUBERNETES cluster to build the basic environmentSystem Environment # Cat/etc/redhat-releasecentos Linux release 7.3.1611 (Core)
Host name Settings Centos-master 192.168.59.135centos-minion1 192.168.59.132centos-minion2 192.168.59.133Restart server after SELinux and Firewalld are turned off# systemctl Stop firewalld# systemctl disable firewalld# setenforce 0# sed-i ' s/^selinux=.*/selinux=disableds/'/etc/seli Nux/configMaster Node Installation D
The content of this section:
Service Discovery and load balancing
Ingress Combat
First, service discovery and load balancingIn the previous installation deployment Kubernetes cluster, it was simple to demonstrate that pod and Service,kubernetes implemented service discovery and load balancing for containers within the Kubernetes cluster through
Download deployment Files according to official documentshttps://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yamlEdit this and replace the role name with the following command implementation:
Create Kubernetes-dashboard-rbac.yamlDownload the deployment file, there is a place to note, it is created in
There are several ways to install the Kubernetes cluster, the KUBEADM approach is described earlier, and the manual installation method is described in this article.The installation environment has 3 VMS on Azure:HKUBE01:10.0. 1.4 HKUBE02: 10.0. 1.5 Hbube03: 10.0. 1.6Where hkube01 is the master node, it will install Docker, ETCD, Kubernetes Master, flannel required components;HKUBE02 and hkube03 are worker
1. Bash Auto-refill for KUBECTL commandsThis is probably the easiest thing to do in the kubernetes process, but it's also one of the most useful. To add the auto-refill feature, if you use bash, simply execute the following command:echo"sourceIt will add an auto-complete command to your. bashrc file. So each shell window you open supports this feature. I found that auto-completion is especially useful for some long parameters, such as--all-namespaces.
[TOC]Introduction to Rolling UpdatesWhen a service in a kubernetes cluster needs to be upgraded, it is a traditional practice to go offline with the service that is being updated, to update the version and configuration after the business is stopped, and then to restart and provide the service. If the business cluster is large, this work becomes a challenge, and all stops first, and the gradual escalation will result in the service being unavailable f
Add/Remove node to Kubernetes cluster
Minion node pre-operation preparation#关闭防火墙systemctl stop firewalld#禁止防火墙开机启动systemctl disable firewalld#检查selinuxgetenforceDisabled#端口检查
Add node to the Kubernetes clusterWhen the KUBEADM Init initialization operation is complete, the system finally gives the command to join the node to the cluster:kubeadm join 10.0.0.39:6443 --token 4g0p8w.w5p29ukwvitim2ti --dis
"Editor's words" The Kubernetes Scheduler dispatches the pod to the work node according to a specific algorithm and strategy. By default, the Kubernetes scheduler can meet most of the requirements, such as scheduling pods to run on resource-rich nodes, or scheduling pod dispersal to different nodes to make cluster nodes resource balanced. However, in some special scenarios, the default scheduling algorithm
1. Foreword
In the last article "Kubernetes Scheduler Module Analysis", the Scheduler scheduling process and the main algorithm are analyzed. From the overall grasp of the scheduler scheduling mechanism, today want to continue to analyze the more detailed content.
2. Summary
Today, we mainly analyze the caching mechanism of scheduler, Extender extension mechanism and tainttoleration mechanism. These three aspects, although not so macroscopic, but for
:
-Mountpath: /etc/ssl/certs
name:ca-certificates
readonly:true
-Mountpath:/varName:Grafana-Storage env:
-Name:Influxdb_host value:Monitoring-Influxdb-Name:Gf_server_http_port value: " the"# The following env variables is required to make Grafana accessible via # the Kubernetes API-ServerProxy. on Production clusters,We recommend # Removing these env variables,Setup Auth forGrafana,and expose the Grafana # service using a loadbalancer
This is a creation in
Article, where the information may have evolved or changed.
K8s Offline installation package Three-step installation, simple to unbelievable
Kubeadm Source Code Analysis
To say the truth, Kubeadm code is sincere, the quality is not very high.
A few key points to first talk about some of the core things Kubeadm did:
Kubeadm Generate certificate in/etc/kubernetes/pki directory
Kubeadm generate a static pod Yaml configurati
Introduction and practice of pod in kubernetes
The concept of podDetailed pod explanation can refer to k8s official website, the concept of pod mainly has the following points:(1) Pod is the smallest and simplest unit that you can create and deploy in Kubernetes. A pod represents a process that runs in a cluster;(2) How to use pod in kubrenetes cluster;(3) How to manage multiple containers in pod
Unde
[TOC]Introduction to Kubernetes DispatchingIn addition to having the Kubernetes cluster scheduler automatically select a node for the pod resource (the default schedule is that the resources are sufficient and the load is as average as possible), there are situations where we want to have more control over how the pod should be dispatched. For example, some of the machines in the cluster are better configur
Kubernetes is Google 's Open source container cluster management system. It is built on Docker technology and provides a whole set of functions, such as resource scheduling, deployment operation, service discovery, expansion and contraction capacity, for containerized applications, which can be regarded as Mini-paas platform based on container technology. The purpose of this article is to comb the architecture, concepts, and basic workflows of
Official Document: HTTPS://WWW.KUBERNETES.ORG.CN/DOC-11The Kubernetes cluster contains the node agent Kubelet and master components (APIs, scheduler, etc), all based on a distributed storage system. The following diagram is an architectural diagram of the kubernetes.Kubernetes nodeIn this system architecture diagram, we divide the service into services running on the work nodes and the services that make up the cluster-level dashboard.The
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.