* Fix for helm 3 and k8s 1.16 * Inclusion of archived directory under k8s * separate deploy-all powershell script for local Mac OS deployment.
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| apiVersion: apps/v1beta2
 | |
| kind: Deployment
 | |
| metadata:
 | |
|   name: {{ template "basket-data.fullname" . }}
 | |
|   labels:
 | |
|     app: {{ template "basket-data.name" . }}
 | |
|     chart: {{ template "basket-data.chart" . }}
 | |
|     release: {{ .Release.Name }}
 | |
|     heritage: {{ .Release.Service }}
 | |
| spec:
 | |
|   replicas: {{ .Values.replicaCount }}
 | |
|   selector:
 | |
|     matchLabels:
 | |
|       app: {{ template "basket-data.name" . }}
 | |
|       release: {{ .Release.Name }}
 | |
|   template:
 | |
|     metadata:
 | |
|       labels:
 | |
|         app: {{ template "basket-data.name" . }}
 | |
|         release: {{ .Release.Name }}
 | |
|     spec:
 | |
|       containers:
 | |
|         - name: {{ .Chart.Name }}
 | |
|           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
 | |
|           imagePullPolicy: {{ .Values.image.pullPolicy }}
 | |
|           ports:
 | |
|             - name: http
 | |
|               containerPort: 6379
 | |
|               protocol: TCP
 | |
|           resources:
 | |
| {{ toYaml .Values.resources | indent 12 }}
 | |
|     {{- with .Values.nodeSelector }}
 | |
|       nodeSelector:
 | |
| {{ toYaml . | indent 8 }}
 | |
|     {{- end }}
 | |
|     {{- with .Values.affinity }}
 | |
|       affinity:
 | |
| {{ toYaml . | indent 8 }}
 | |
|     {{- end }}
 | |
|     {{- with .Values.tolerations }}
 | |
|       tolerations:
 | |
| {{ toYaml . | indent 8 }}
 | |
|     {{- end }}
 |