update deployment for multi-environment setup
This commit is contained in:
		
							
								
								
									
										22
									
								
								base/memcached/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								base/memcached/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| apiVersion: apps/v1 | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: memcached | ||||
| spec: | ||||
|   replicas: 1 | ||||
|   selector: | ||||
|     matchLabels: | ||||
|       app: memcached | ||||
|   template: | ||||
|     metadata: | ||||
|       labels: | ||||
|         app: memcached | ||||
|     spec: | ||||
|       containers: | ||||
|       - name: memcached | ||||
|         securityContext: | ||||
|           allowPrivilegeEscalation: false | ||||
|         image: memcached | ||||
|         imagePullPolicy: IfNotPresent | ||||
|         ports: | ||||
|         - containerPort: 11211 | ||||
							
								
								
									
										13
									
								
								base/memcached/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								base/memcached/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||||
| kind: Kustomization | ||||
|  | ||||
|  | ||||
| resources: | ||||
|   - deployment.yaml | ||||
|   - service.yaml | ||||
|    | ||||
|  | ||||
| images: | ||||
|   - name: memcached | ||||
|     newName: memcached | ||||
|     newTag: 1.6.29 | ||||
							
								
								
									
										11
									
								
								base/memcached/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								base/memcached/service.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| apiVersion: v1 | ||||
| kind: Service | ||||
| metadata: | ||||
|   name: memcached | ||||
| spec: | ||||
|   selector: | ||||
|     app: memcached | ||||
|   ports: | ||||
|     - protocol: TCP | ||||
|       port: 11211 | ||||
|       targetPort: 11211 | ||||
		Reference in New Issue
	
	Block a user