Add memcached
This commit is contained in:
		@@ -5,3 +5,4 @@ namespace: toy
 | 
				
			|||||||
resources:
 | 
					resources:
 | 
				
			||||||
  - namespace.yaml
 | 
					  - namespace.yaml
 | 
				
			||||||
  - ./app
 | 
					  - ./app
 | 
				
			||||||
 | 
					  - ./memcached
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										21
									
								
								kustomize/memcached/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								kustomize/memcached/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					kind: Deployment
 | 
				
			||||||
 | 
					apiVersion: apps/v1
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: toy-memcached
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: toy-memcached
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        app: toy-memcached
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					        - name: toy-memcached
 | 
				
			||||||
 | 
					          image: memcached:latest
 | 
				
			||||||
 | 
					          ports:
 | 
				
			||||||
 | 
					            - name: memcached
 | 
				
			||||||
 | 
					              containerPort: 11211
 | 
				
			||||||
							
								
								
									
										7
									
								
								kustomize/memcached/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								kustomize/memcached/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					namespace: toy
 | 
				
			||||||
 | 
					resources:
 | 
				
			||||||
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - services.yaml
 | 
				
			||||||
							
								
								
									
										13
									
								
								kustomize/memcached/services.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								kustomize/memcached/services.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: toy-memcached
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					    - name: memcached
 | 
				
			||||||
 | 
					      port: 11211
 | 
				
			||||||
 | 
					      targetPort: memcached
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: toy-memcached
 | 
				
			||||||
		Reference in New Issue
	
	Block a user