Skip to content

Commit

Permalink
Merge pull request #1 from clementFrancon/redis-fix
Browse files Browse the repository at this point in the history
fixed redis dependencies
  • Loading branch information
clementFrancon authored Feb 21, 2019
2 parents 3725a84 + 6ebd482 commit de0d4ba
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/mulder
/charts/mulder/charts/
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ pipeline {
sh "export VERSION=$PREVIEW_VERSION && skaffold build -f skaffold.yaml"
sh "jx step post build --image $DOCKER_REGISTRY/$ORG/$APP_NAME:$PREVIEW_VERSION"
}
dir('/home/jenkins/go/src/github.com/clementfrancon/mulder/charts/mulder') {
sh "jx step helm build"
}
dir('/home/jenkins/go/src/github.com/clementfrancon/mulder/charts/preview') {
sh "make preview"
sh "jx preview --app $APP_NAME --dir ../.."
Expand Down
4 changes: 4 additions & 0 deletions charts/mulder/requirements.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dependencies:
- name: redis
repository: https://kubernetes-charts.storage.googleapis.com
version: 6.0.1
5 changes: 4 additions & 1 deletion charts/mulder/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- -redis-addr
- {{ .Release.Name }}-redis-master:6379
ports:
- containerPort: {{ .Values.service.internalPort }}
livenessProbe:
Expand All @@ -40,4 +43,4 @@ spec:
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
resources:
{{ toYaml .Values.resources | indent 12 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
2 changes: 2 additions & 0 deletions charts/mulder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ readinessProbe:
successThreshold: 1
timeoutSeconds: 1
terminationGracePeriodSeconds: 10
redis:
usePassword: false

0 comments on commit de0d4ba

Please sign in to comment.