Make Kustomize manifests more modular
This commit is contained in:
		
							
								
								
									
										8
									
								
								kustomize/app/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								kustomize/app/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					namespace: toy
 | 
				
			||||||
 | 
					resources:
 | 
				
			||||||
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - services.yaml
 | 
				
			||||||
 | 
					  - ingress.yaml
 | 
				
			||||||
@@ -3,6 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			|||||||
kind: Kustomization
 | 
					kind: Kustomization
 | 
				
			||||||
namespace: toy
 | 
					namespace: toy
 | 
				
			||||||
resources:
 | 
					resources:
 | 
				
			||||||
  - deployment.yaml
 | 
					  - namespace.yaml
 | 
				
			||||||
  - services.yaml
 | 
					  - ./app
 | 
				
			||||||
  - ingress.yaml
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								kustomize/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								kustomize/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: toy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Reference in New Issue
	
	Block a user