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
The introduction on GitHub:Ambassador is a open source kubernetes-native API Gateway built on Envoy, designed for MicroServices . Key features include:
Self-Service configuration, via Kubernetes annotations
First Class GRPC and HTTP/2 support
Support for CORS, timeouts, weighted round robin (Canary), and more
Istio Integration
Authentication
Robust TLS support, including TLS c
Outline:
? How to discover services in Kubernetes
? How to discover the services provided by pod
? How to use service discovery Services
? How to use the Kube-dns discovery service
? Kube-dns principle
? Composition
? Domain name format
? Configuration
Note: this share is based on the Kubernetes 1.2 version!Let's start with a simple example.1.How to discover service
images through projects. Kubernetes in the namespace to isolate resources, in an enterprise-level scenario, the combination of the two can effectively manage and access control of the mirrored resources used by kubernetes, enhancing the security of the image. Especially in multi-tenancy scenarios, the management and access control of multi-tenant mirrored resources can be achieved through a combination of
1:helm (deployment tool that can be used to deploy common applications, instead of Kubelet native commands)Https://github.com/kubernetes/helmApplication list: https://github.com/kubernetes/charts/tree/master/stable2:prometheus Operator (k8s system monitoring)https://github.com/coreos/prometheus-operator/3:dashboard (Kubernetes Web UI Management Interface)Https://
I. When deploying the Kubernetes cluster, we used Acs-engine to generate 3 JSON files and some certificate files, as follows:
Apimodel.json-Cluster configuration file
Azuredeploy.json-Core Arm (Azure Resource Model) template for deploying k8s clusters
Azuredeploy.parameters.json-Deployment parameters file, where parameters can be customized
Certificate and Access config Files-kubernetes
This article will introduce the creation and use of Kube-ui (also called dashboard) on the basis of the previous article. This thing is essentially the WebUI connection Master API interface, through the API to obtain information about the k8s cluster, and then on the web display, for the user is more friendly, the actual use is not very large.One, download the image file and incorporate the unified management of the local warehouse# docker pull docker.io/mritd/
There are two requirements for stateful cluster services: one is storage requirements and the other is cluster requirements.For storage requirements, the Kubernetes solution is: Volume, persistent Volume. For PV, in addition to manually creating a PV pool, the storage system can be automatically created by storage class.For cluster requirements, the Kubernetes solution is pet Set. The Pet Set also initializ
To succeed in today's fast-paced development environment,Leveraging container technology and DEVOPS practicesIt is important to build and continuously deliver microservices.As a Java developer,As you integrate the latest tools and development methodologies,You need to take advantage of some of the powerful features of the Java language.Today, we're going to learn how to deploy Java-based microservices applications to Kubernetes clusters using Micropro
In a production environment kubernetes if you provide only HTTP or HTTPS services, you can use seven-tier load balancing software such as nginx-ingress or Traefik. Of course, you can also expose HTTP or TCP services in a nodeport way. If you do not want to directly use the port number exposed by Nodeport, and the server is running on the Ali Cloud, you can expose the TCP service or Controller service externally using the
Objective
in the Kubernetes system, Scheduler is the only one in the plugin form of the module, this pluggable design to facilitate user-defined scheduling algorithm, so the source path for the plugin directory of CMD and pkg/scheduler
Scheduler is responsible for arranging the pod to the specific node, monitoring the Pods through the interface provided by API Server, acquiring the pod to be scheduled, ranking each node nodes according to a series
Kubernetes has developed a Elasticsearch add-on to enable log management of the cluster. This is a combination of Elasticsearch, FLUENTD and Kibana. Elasticsearch is a search engine that is responsible for storing logs and providing query interfaces; Fluentd is responsible for collecting logs from Kubernetes and sending Elasticsearch;kibana a Web GUI that users can browse and search for stored in Logs in th
to the build image.
In addition, OPS will want this OpenStack lifecycle management system to span bare metal, IaaS, and even PAAs.What Atomic, Docker, Kubernetes bringIf you have an OpenStack service lifecycle management scenario, the following benefits can be created:
Isolated, lightweight, portable, detachable
The service relationship of the running state is easy to describe
Easy to run, easy to update
Manage service life
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 developed and maintained by CoreOS, primarily for sha
Article from: Listen to the Cloud blogAs our business continues to grow, our number of applications has exploded. With the growth of application explosion, the difficulty of management is increased. How to quickly complete the expansion while the business explosion is growing is a big challenge. The advent of Docker happened to solve our problem. With Docker, we can quickly complete the expansion and contraction, and the configuration is uniform and error-prone.In the Docker cluster management s
Kubernetes about the service exposure is mainly through the Nodeport way, through the binding minion host of a port, then the pod request forwarding and load balancing, but this way the defect is
The service may have many, if each is bound to a node host port, the host needs to open the perimeter of a heap of ports to make services calls, management confusion
Cannot apply firewall rules required by many companies
The ideal way is thr
footprint.3. Log in hub.docker.com using the Docker login command4. Push the local image to hub.docker.com using a command such as Docker push Chenxizhang/mvcapp, which may take a certain amount of time, depending on your network configurationIf all goes well, you can see the following resultsNote: If you are creating your own Docker warehouse, you can learn about the Azure Container Registry service. (https://azure.microsoft.com/zh-cn/services/container-registry/), do not unfold here.Create
The next one is to deploy and expand the Kubernetes cluster based on rancher7. Configuring Redis with ConfigmapHttps://github.com/kubernetes/kubernetes.github.io/blob/master/docs/user-guide/configmap/redis/redis-configRedis-configMaxMemory 2MB Maxmemory-policy Allkeys-lru# kubectl Create Configmap example-redis-config--from-file=./redis-config# Kubectl Get configmap example-redis-config-o yamlapiversion:v1d
OverviewKubernetes is a powerful container orchestration tool that enables users to reliably deploy and run containerized applications on a scalable system. Within the container area, k8s has undoubtedly become a community standard for container orchestration and management, and even Docker has announced support for K8s. The fighting in the field of container orchestration has been turned around, and the dust settles, and k8s has been unanimously endorsed by the players including Google, Huawei,
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.