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
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
Reference: http://kubernetes.kansea.com/docs/hellonode/Now you should be able to access this via this address service : Http://EXTERNAL_IP: 8080 or runcurl http://EXTERNAL_IP:8080If you are accessing a new Web service through a browser or CURL, you should see some running logs:kubectl logs One of the great features of Kubernetes is that he can easily expand your application. Suppose you suddenly need to add your app; you just need to tell
:
-containnerport:80
livenessprobe:
tcpsocket:
Port:
timeoutseconds:1 initialdelayseconds:15
3) Httpgetaction: Calls the HTTP GET method through the container's IP address, port number and path, if the response state code is greater than or equal to 200 and less than 400, then the container is considered healthy.
APIVERSION:V1
kind:pod
metadata:
name:pod-with-healthcheck
Spec:
containers:
-Name: Nginx
Image:nginx
ports:
-containnerport:80
Introduction and practice of pod in kubernetes
The concept of podDetailed pod explanation can refer to k8s official website, the concept of pod mainly has the following points:(1) Pod is the smallest and simplest unit that you can create and deploy in
What is PodPods are the smallest deployable units that can be used to create and manage kubernetes calculations. A pod represents a process that runs in a cluster.Pods are like pea pods, which consist of one or more containers (such as Docker containers) that share container storage, network, and container run configuration items. The containers in the pod are al
"Editor's words" The Kubernetes Scheduler dispatches the pod to the work node according to a specific algorithm and strategy. By default, the Kubernetes scheduler can meet most of the requirements, such as scheduling pods to run on resource-rich nodes, or scheduling pod dispersal to different nodes to make cluster node
This is a creation in
Article, where the information may have evolved or changed.
All the places involved in storage are very prone to "pits", Kubernetes is no exception.
First, the cause of the problem
The problem began yesterday by upgrading the operation of a stateful service. The pod under the service is mounted with a persistent Volume provided with Ceph RBD. The p
Pod is the most basic deployment dispatch unit in Kubernetes, and it can contain container, which logically represents an instance of a certain application. For example, a Web site application is built from the front end, back end, and database, and these three components will run in their respective containers, so we can create a
, creating and inspecting Executor pods. The service account used by Driver pod must have the appropriate permissions on the Driver operation. Specifically, at least service accounts must be granted role or clusterrole roles, and running driverpods can create pods and services. By default, if the pod is created without a service-specified account, Driver pod auto
This is a creation in
Article, where the information may have evolved or changed.
Kubernetes cluster has been set up, has been running very stable. Previous concerns have focused more on installation, configuration, and component debugging, and some of the minutiae has been overlooked. The settings for the time zone in the pod are one of them. I'm going to try to solve this problem today.
First, the problem
Deployment model, including Pod, Replication controller, Label, and Service.
Pod
The minimum deployment unit of Kubernetes is Pod rather than container. As a First class API citizen, Pods can be created, scheduled, and managed.
=506797335, workload.user.cattle.io/workloadselector=deployment-default-Jdkmysql-5ffdf958d9-7qdnv1/1Running13d pod-template-hash=1998951485, workload.user.cattle.io/workloadselector=deployment-default-mysql#-L show pod with app tag and print value under App tab $ kubectl get pods--all-namespaces-L appnamespace NAME rea
Recently started to study kubernetes, the operation of the container, the discovery has been in the containercreating state, sad a reminder, just started to encounter a bit of trouble, the following talk about how to find the problem and solve theTo run the container command:KUBECTL-F Create Redis.yamlKubectl Get pod RedisNAME Ready STATUS RestartsREDIS-MASTER-6JGSL 0/1 containercreating 0 12sAlways in cont
You need to remove the following pod, but you cannot delete it using the following command: KUBECTL delete pod kong-rc-2364486572-3hgpk
Looking at this instance's information, we found that the container was running on kubernetes node, but now that node is down.
So now that node is down, it's time to just remove node.
After node deletion, the
The pod is a container group, so let's create a pod now, just like Dockerfile.VI Nginx-pod.yaml (to pay great attention to the space, usually two spaces)Add to:Apiversion:v1Kind:podMetadataName:nginx1SpecContainers-NAME:NGINX1Image:docker.io/nginxPorts-containerport:9001Start podKubectl create-f Nginx-pod.yamlUse get Pods to view650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/88/89/wKioL1f7Tn_RJA
Detailed guide for manual installation and deployment of Kubernetes on Ubuntu, ubuntukubernetes
Background
Two Ubuntu16.04 servers: 192.168.56.160 and 192.168.56.161.
Kubernetes version: 1.5.5
Docker version: 1.12.6
Etcd version: 2.2.1
Flannel version: 0.5.6
Among them, 160 servers are both master nodes of Kubernetes a
[TOC]1. Exception information: Failed to pull image "spark:0.1": rpc Error:code = Unknown desc = Repository Docker.io/spark not found:does not E Xist or no pull access2. Exception information: Error from Server (badrequest): Container ' Xej ' in pod ' XEJ-545694F448-JTMBF ' is waiting to start:trying and Faili Ng to pull image3. Exception information: Starting container process caused \ "process_linux.go:286:decoding sync type from init pipe caused \
Log restrictions can be done through Docker option, but first change the log-driver to Json-file mode# cat/etc/sysconfig/docker OPTIONS='--log-opt max-size=50m--log-opt max-file=5' Empty log through# cat/dev/null >/var/lib/docker/containers/container_id/container_id-/dev/null > $ (Docker inspect--format='{. LogPath}}' container_id)The default log is stored under/var/lib/docker/containers/Kubernetes pod lo
Name=redis 1Tomcatcontroller Tutum/tomcat Name=tomcatcluster 2Please ignore Redis, this time see Tomcat Replicationcontroller has been up, Replicas=2 said to run 2 Docker,docker in the cluster running image is Tutum/tomcat, If your minion does not have this image then Kubernetes will go to the Docker hub for you to download, if there is a local image then kubernetes directly on the minion for you to run 2
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.