Add Kubernetes service
This commit is contained in:
		@@ -4,3 +4,4 @@ kind: Kustomization
 | 
				
			|||||||
namespace: toy
 | 
					namespace: toy
 | 
				
			||||||
resources:
 | 
					resources:
 | 
				
			||||||
  - deployment.yaml
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - services.yaml
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										13
									
								
								kustomize/services.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								kustomize/services.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: toy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					    - name: web
 | 
				
			||||||
 | 
					      port: 80
 | 
				
			||||||
 | 
					      targetPort: web
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: toy
 | 
				
			||||||
		Reference in New Issue
	
	Block a user