0. Preface
Overall architecture directory: ASP. NET core distributed project-Directory
k8s Schema Catalog: Kubernetes (K8S) cluster deployment (K8S Enterprise Docker container cluster Management) series catalog
1. Deploy Master Components
The components of the master server are: Kube-apiserver, Kube-controller-manager, Kube-scheduler
So you need to download k8s master,:github.com/
the service. Kube-proxy uses the ETCD watch mechanism to monitor the dynamic changes of service and endpoint object data in the cluster and to maintain a service-to-endpoint mapping From the page to ensure that the IP changes in the backend pod do not affect the visitor. Kube-proxy also supports session affinity.Kublet:kublet is the agent of master on each node, and is the most important module on node, and it is responsible for maintaining and managing all the containers on that node, but it w
0. PrefaceOverall architecture directory: ASP. NET core distributed project-Directoryk8s Schema Catalog: Kubernetes (K8S) cluster deployment (K8S Enterprise Docker container cluster Management) series catalogfirst, server settings1. Set the selinux of each server to disabledHow to set it up:Vi/etc/selinux/configWill selinux=disabled, then save, and then execute the command: Setenforce 0, make it effective.2
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: k8
:
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/
is much faster than rolling-update subcommand)
# Kubectl Edit Deployment Hello-deployment
Use the Rollout history command to view deployment's historical information
# KUBECTL Rollout History Deployment Hello-deployment
It is mentioned above that RC cannot roll back directly after Rolling-u
manually specify Kubernetes API server Host # If not specified, Dashboard would attempt to a UTO discover the API server and connect # to it. Uncomment only if the default does isn't work. ---apiserver-host=http://192.168.3.216:8080 LivenessProbe:httpGet:path:/port:9090 Initial delayseconds:30 timeoutseconds:30 Dashboard-service.yaml#不需要做修改Kind:serviceApiversion:v1MetadataLabelsApp:kubernetes-dashboardName:kubernetes-dashboardNamespace:kube-syste
, Etcd_name according to ETCD system service inside the configuration one by one corresponds, respectively is INFRA1,INFRA2,INFRA35. Set boot and start ETCDSystemctl daemon-reloadsystemctl enable etcdsystemctl start Etcdsystemctl status Etcd6, detection of cluster workAt any node, either master or node, execute the following commandEtcdctl --ca-file=/etc/kubernetes/ssl/ca.pem --cert-file=/etc/kubernetes
Deployment BookInfo Sample program detailed procedures and procedures (based on kubernetes cluster +istio v1.0)Deploying the BookInfo sample programThe sample application is included in the Samples directory of the downloaded Istio installation package.BookInfo ApplicationsDeploy a sample application that consists of four separate microservices to demonstrate a variety of istio features. This app mimics a c
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
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
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
first introduce what k8s is: (Quote from k8s Chinese community)Kubernetes is a container cluster management system, it is an open source platform, can realize the automatic deployment of container cluster, auto-scaling capacity, maintenance and other functions. Kubernetes you can:
Quick Deploy app
Rapid extension Application
Seam
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.