:
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/
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
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
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
, 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
" # Partial flannel configuration, see roles/flannel/templates/kube-flannel.yaml.j2flannel_backend= "Vxlan" # service CIDR, Deployment Road is unreachable, deployed after cluster using ip:port up to Service_cidr= "10.68.0.0/16" # POD segment (Cluster CIDR), Deployment forward unreachable, * * After Deployment * * Routing up to Cluster_cidr= "172.21.0.0/16" # Serv
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
: containers: -name:kube-tomcat image:docker.io/chenyufeng/tomcat-centos imagepullpolicy:always ports: -containerport:8080 nbSp;protocol:tcp args: # uncomment the following line to manually specify Kubernetes API server Host NBSP;NBSP;NBSP;N bsp;# If not specified, Dashboard'll attempt to auto discover the API server and con Nect # to it. Uncomment only if the default is does not work. ---apiserver-host=http://47.97.90.38:8080## Please revise for
command to querykubectl exec -it tools-dns-5665d49688-8jrnw /bin/bash
View a record (that is, address record IPv4)
Nslookup-query=a _http._tcp.curl.kube-system
View SRV records (a domain Name System (DNS) resource record that identifies the computer that hosts a particular service)
Nslookup-query=srv _http._tcp.curl.kube-system(Description: Service = 10 (priority) 100 (specific gravity) 80 (port) curl.kube-system.svc.cluster.local (host name).)
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
DescriptionWe use an example to demonstrate the basic configuration of the Kubernetes deployment application.This is a relatively simple example of a tomcat application plus a MySQL databaseRunning a simple webappp in Tomcat, this app accesses MySQL to get the data. and displayed on the page. For demonstration and simplification purposes, as long as the program is properly connected to the database, it auto
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
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
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.