Skip to content

Commit

Permalink
add release type and canary deployment file
Browse files Browse the repository at this point in the history
  • Loading branch information
dwdraju committed Sep 26, 2018
1 parent a1fb8df commit 4033bd1
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
54 changes: 54 additions & 0 deletions helm/templates/deployment-canary.yaml
@@ -0,0 +1,54 @@
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: {{ include "explore.fullname" . }}-canary
labels:
app.kubernetes.io/name: {{ include "explore.name" . }}
helm.sh/chart: {{ include "explore.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
track: canary
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "explore.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
track: canary
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "explore.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
track: canary
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
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 }}
3 changes: 3 additions & 0 deletions helm/templates/deployment.yaml
Expand Up @@ -7,17 +7,20 @@ metadata:
helm.sh/chart: {{ include "explore.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
track: release
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "explore.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
track: release
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "explore.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
track: release
spec:
containers:
- name: {{ .Chart.Name }}
Expand Down

0 comments on commit 4033bd1

Please sign in to comment.