add ingress
This commit is contained in:
		
							
								
								
									
										16
									
								
								kustomize/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								kustomize/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: networking.k8s.io/v1
 | 
				
			||||||
 | 
					kind: Ingress
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: toy-ingress
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  rules:
 | 
				
			||||||
 | 
					    - http:
 | 
				
			||||||
 | 
					        paths:
 | 
				
			||||||
 | 
					          - path: /
 | 
				
			||||||
 | 
					            pathType: Prefix
 | 
				
			||||||
 | 
					            backend:
 | 
				
			||||||
 | 
					              service:
 | 
				
			||||||
 | 
					                name: toy
 | 
				
			||||||
 | 
					                port:
 | 
				
			||||||
 | 
					                  name: web
 | 
				
			||||||
@@ -5,3 +5,4 @@ namespace: toy
 | 
				
			|||||||
resources:
 | 
					resources:
 | 
				
			||||||
  - deployment.yaml
 | 
					  - deployment.yaml
 | 
				
			||||||
  - services.yaml
 | 
					  - services.yaml
 | 
				
			||||||
 | 
					  - ingress.yaml
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user