ObjectiveThis article is a reading note, specific reference to Mr. Nu Bongfei's original "Kubernetes Guide", thank the original author, salute!I. Introduction of BorgBorg is a large-scale cluster management system within Google, which is responsible for the scheduling and management of many core services within Google.The goal of Borg is to enable users to focus on their core business without having to worry about resource management, and to maximize
Kubernetes Auto Release and rollbackDeployment was introduced to better solve the problem of pod orchestration.
Create a Deployment object to generate the corresponding replica set and complete the creation of the pod copy
Check the status of the deployment to see if the deployment action is complete (the number of
# to it. Uncomment only if the default does not work. - --apiserver-host=http://192.168.206.129:8080 #注意这里是api的地址 livenessProbe: httpGet: path: / port: 9090 initialDelaySeconds: 30
Kind:serviceApiversion:v1MetadataLabelsApp:kubernetes-dashboardName:kubernetes-dashboardNamespace:kube-systemSpecType:nodeportPorts
Port:80targetport:9090SelectorApp:kubernetes-dashboard '
Create Depolyment:Kubectl create-f
What is the POD type?
The full name of POD is Plain Old Data. In general, a class or struct can keep its data unchanged after being copied in binary format, so it is a POD type.
Ordinary Definition
1. There are ordinary Constructors
2. There is an ordinary copy constructor
3. There are ordinary mobile Constructors
4. There are ordinary copy assignment operators
5
What is the pod type? Pod Full name plain old Data. In layman's words, a class or struct can keep its data intact after a binary copy, so it is a pod type. An ordinary definition1. There are trivial constructors2. There are trivial copy constructors3. There are trivial move constructors4. There is a trivial copy assignment operator5. There is a trivial move assig
What is the pod type? Pod Full name plain old Data. In layman's words, a class or struct can keep its data intact after a binary copy, so it is a pod type. An ordinary definition1. There are trivial constructors2. There are trivial copy constructors3. There are trivial move constructors4. There is a trivial copy assignment operator5. There is a trivial move assig
. AddCommand (Newcmdget (f, out)) Cmds. AddCommand (Newcmddescribe (f, out)) Cmds. AddCommand (Newcmdcreate (f, out)) ... return cmds}
So cmd := cmd.NewKubectlCommand(cmdutil.NewFactory(nil), os.Stdin, os.Stdout, os.Stderr) what you get cmd is a cobra.Command pointer to it.
cmdutil.NewFactoryCode ( k8s.io/kubernetes/pkg/kubectl/cmd/util/factory.go ):
Newfactory creates a factory with the default Kubernetes
-admin #将集群管理员的角色赋予dashboard apiGroup: rbac.authorization.k8s.ioAfter the creation, in the download of the deployment file there is a place to change, before the deployment used by the ServiceAccount is Kubernetes-dashboard, need to change it to the ServiceAccount created here for dashboard.
Start deployment:
kubectl create-f dashboard-rbac.yaml-f kubernetes-dashboard.yaml #先部署RBAC再部署deplo
--r--. 1 root root 4 Aug 13 09:43 ygqygq2-rw-r--r--. 1 root root 5 Aug 13 09:34 ygqygq2.txtThe deployment is complete.4. SummaryThis article Glusterfs is installed under the physical system, not kubernetes, all need manual maintenance, the next introduction in Kubernetes installation using Gluster. Glusterfs's volume model is flexibly applied according to the business. It is important to note that if you us
# Kubectl get rc# Kubectl get svc# Kubectl get pod
# Kubectl describe pod redis-slave-gsk1p
The main reason for pod creation failure is that the image cannot be pulled from the local warehouse. This error is reported even if the image already exists locally. Because kubernetes's imagePullPolicy obtains the image policy, the default value is Always.
The nginx in
I. Background INTRODUCTION
As we all know, due to the domestic network reasons, in the construction of kubernetes environment, often encountered the need for the mirror can not find the situation.
After all, it is not a good idea to pick up rubbish in Dockerhub, this article teaches everyone to build their own mirror warehouse in Dockerhub.
Request: Have GitHub account number, have dockerhub account number, do not register.
Second, the basic steps
2.1
http://blog.csdn.net/samoy/article/details/51956799Sometimes, when we execute pod install or pod search order, the terminal is stuck in the ' Pod Setup ' interface,In fact, the situation may not really be stuck, the following two solutions are given.Scenario 1:
When executing the pod install command, add the p
health check function for Skydns service
Working principle Analysis
1. The Kube2sky container application obtains all srvice information in the cluster by invoking the API of K8s Master, and continuously monitors the generation of the new service and writes to ETCD
2, according to the Kubelet startup parameter setting (--CLUSTER-DNS), KUBECTL will set the DNS domain name resolution profile/etc/resolv.conf in each newly created pod,
clusterrolebinding kubelet-bootstrap--clusterrole=system:node-bootstrapper--user=kubelet-bootstrapFifth step: Start Kubelet on the node server, you can view the CSR certificate on MasterAfter the certificate is generated, you need to allow the certificateKUBECTL Certificate Approve certificate name (that is, the name value above)Then you can see the status of the cluster.KUBECTL Get nodeAt this point, the k8s cluster deployment is complete.Next, we'll test the deployment WebUI.See3. Deploy WebU
kubernetes Common Commands1. View class Commandskubectl cluster-info----View cluster informationkubectl-s http://localhost:8080 Get componentstatuses----View individual component informationkubectl Get PODS----List all the current podsKubectl get pods-o wide----View the running node where the pods is locatedKubectl Get pods-o yaml----View details of the pods definitionKubectl get RC----View replication Controller informationKubectl Get Service----View
In this blog post, let's say a question about customizing the configuration in the pod of kubernetes.We know that in almost all application development, configuration file changes are involved, such as in the Web program, the need to connect to the database, cache, and even queues. And one of our applications starts with writing the first line of code, going through the development environment, the test environment, the pre-release environment only to
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.