mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #578 from kelseyhightower/readme_fixes
Update the broken pod.json example in the README
This commit is contained in:
		
							
								
								
									
										20
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								README.md
									
									
									
									
									
								
							@@ -89,13 +89,29 @@ Where pod.json contains something like:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  "ID": "nginx",
 | 
					  "id": "php",
 | 
				
			||||||
  "desiredState": {
 | 
					  "desiredState": {
 | 
				
			||||||
 | 
					    "manifest": {
 | 
				
			||||||
 | 
					      "version": "v1beta1",
 | 
				
			||||||
 | 
					      "id": "php",
 | 
				
			||||||
 | 
					      "containers": [{
 | 
				
			||||||
 | 
					        "name": "nginx",
 | 
				
			||||||
        "image": "dockerfile/nginx",
 | 
					        "image": "dockerfile/nginx",
 | 
				
			||||||
    "networkPorts": [{
 | 
					        "ports": [{
 | 
				
			||||||
          "containerPort": 80,
 | 
					          "containerPort": 80,
 | 
				
			||||||
          "hostPort": 8080
 | 
					          "hostPort": 8080
 | 
				
			||||||
 | 
					        }],
 | 
				
			||||||
 | 
					        "livenessProbe": {
 | 
				
			||||||
 | 
					          "enabled": true,
 | 
				
			||||||
 | 
					          "type": "http",
 | 
				
			||||||
 | 
					          "initialDelaySeconds": 30,
 | 
				
			||||||
 | 
					          "httpGet": {
 | 
				
			||||||
 | 
					            "path": "/index.html",
 | 
				
			||||||
 | 
					            "port": "8080"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      }]
 | 
					      }]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "labels": {
 | 
					  "labels": {
 | 
				
			||||||
    "name": "foo"
 | 
					    "name": "foo"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user