times development. Through Google's fame and relatively perfect ecosystem, we finally chose Kubernetes + CoreOS + Docker as the basis for scheduling the entire platform.
Every time we buy a machine, usually hundreds of nodes, so the deployment of the entire platform is very headache, especially CoreOS and kubernetes, must use ladder to install and update, peopl
/log/nginx", #容器内的目录 "name": "nginx-conf" #数据卷名称 }]},{ "name": "Master2", #第二个容器的名称 "image": "Redis", "Ports":[{ "Containerport":6379, "Hostport":7480 }]}], "volumes": [{ "name": "nginx-conf", NBsp; #对应上面的数据卷名称 "EmptyDir": {} #本地挂载目录, here is the empty directory, path in/$K 8S installation path/pkg/volume/empty_dir}]}}2. Create this podKubectl create-f Obj.jsonPod "Podtest" created3. View the pods you have createdKubectl Get podIf you are prompted to have 2 running then normal, if not,
kubelet-bootstrap Pendingnode-csr-ZAKQ_kY84ORptLMMIJPHu12BraxOLBMFJ33wj_mLM9Q 10m kubelet-bootstrap Pendingnode-csr-vKRJanqdwG9TPXtY1x5e6KP0DJ5XvCWbr7e1tQb0-10 41s kubelet-bootstrap PendingRequest through CSR:kubectl certificate approve node-csr--vERPmYzSaAZqezwWDKoeyyXjK6KvVHAf5e1SQdHPZocertificatesigningrequest.certificates.k8s.io "node-csr-XeGvv-LBiJ_Q-WXtSCQV3nTIMP6B_L6o69EOIH2utY0" approved
Can be done with a command: Kubectl get CSR | grep Pending | a
:
Kind:podApiversion:v1beta1Desiredstate:ManifestVersion:v1beta1id:phpContainers-Name:nginxImage:dockerfile/nginxPorts-CONTAINERPORT:80# defines the health checkingLivenessprobe:# Turn on application health checkingEnabled:trueType:http# Length of time to wait-a pod to initialize# after Pod startup, before applying health checkingInitialdelayseconds:30# an HTTP probeHttpGet:Path:/_status/healthzport:8080
References
Https://github.com/GoogleCloudPlatform/
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 t
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
prepare the Kubernetes/pause imageDocker Pull Docker.io/kubernetes/pauseDocker tag f9d5de079539 gcr.io/google_containers/pause:2.0 this is equivalent to renaming the Docker.io to gcr.io,f9d5de079539 as the image ID (Docker images) that was pulled down.9) Confirm that the k8s is starting successfullyKubectl Get Nodes9 Deployment of Nginx cluster1) Create Nginx
Kubernetes 1.5 installation and cluster environment deploymentArticle reprinted from: http://www.cnblogs.com/tynia/p/k8s-cluster.htmlBrief introduction:Docker: An open-source application container engine that can create a lightweight, portable, self-sufficient container for your application.Kubernetes: The Docker container Cluster Management system, which is open source by Google, provides the functions of resource scheduling,
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
running at Https://192.168.77.140:6443/api/v1/namespaces/kube-system/services/ Kibana-logging/proxykube-dns is running at Https://192.168.77.140:6443/api/v1/ Namespaces/kube-system/services/kube-dns:dns/proxymonitoring-grafana is running at https: //192.168.77.140:6443/api/v1/namespaces/kube-system/services/monitoring-grafana/ Proxymonitoring-influxdb is running at Https://192.168.77.140:6443/api/v1/namespaces/ Kube-system/services/monitoring-influxdb:http/proxy # cat ~/k8s_addons_access
Introduction to deploying Calico Network Calico Components:
The Felix:calico agent runs on each node, setting network information for the container: IP, routing Rules, iptable rules, etc.
Etcd:calico Back-End storage
BIRD:BGP Client: Responsible for broadcasting Felix's routing information set on each node to the Calico network (via the BGP Protocol).
BGP Route Reflector: Hierarchical routing distribution for large-scale clusters.
Calico:calico command-line administratio
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
Brief introduction:Docker: An open-source application container engine that can create a lightweight, portable, self-sufficient container for your application.Kubernetes: The Docker container Cluster Management system, which is open source by Google, provides the functions of resource scheduling, deployment operation, service discovery, capacity scaling and so on for containerized applications.ETCD: A highly available key-value storage system develope
Kubernetes Dashboard1.8.3 Deployment
DescriptionPlease click images to download and use the image below.
Installing Dashboard#下载yamlwget https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml#查看yaml中imageimage: k8s.gcr.io/
of health. After the pod is rebuilt its IP address can change, in order to provide a stable access interface, K8S introduced the concept of service. Multiple pods can be hung behind a service, enabling high availability of services.
The normal stateful service, compared with stateless services, has more requirements for state preservation. Kubernetes provides a storage system based on volume and persistent volume that enables the state of the ser
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.