Skip to content

Commit c94f8d6

Browse files
committed
updating chart values and templates
1 parent 9eb7eff commit c94f8d6

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ pipeline {
3737
}
3838
stage('Build Release') {
3939
when {
40-
branch 'master'
40+
branch 'develop'
4141
}
4242
steps {
4343
container('maven') {
4444
// ensure we're not on a detached head
45-
sh "git checkout master"
45+
sh "git checkout develop"
4646
sh "git config --global credential.helper store"
4747

4848
sh "jx step git credentials"
@@ -67,7 +67,7 @@ pipeline {
6767
}
6868
stage('Promote to Environments') {
6969
when {
70-
branch 'master'
70+
branch 'develop'
7171
}
7272
steps {
7373
dir ('./charts/spring-cloud-k8s-boss') {

charts/spring-cloud-k8s-boss/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
metadata:
1212
labels:
1313
draft: {{ default "draft-app" .Values.draft }}
14-
app: {{ template "fullname" . }}
14+
app: {{ .Values.service.name }}
1515
{{- if .Values.podAnnotations }}
1616
annotations:
1717
{{ toYaml .Values.podAnnotations | indent 8 }}

charts/spring-cloud-k8s-boss/templates/service.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
{{- end }}
99
labels:
1010
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
11+
type: boss
1112
{{- if .Values.service.annotations }}
1213
annotations:
1314
{{ toYaml .Values.service.annotations | indent 4 }}
@@ -20,4 +21,4 @@ spec:
2021
protocol: TCP
2122
name: http
2223
selector:
23-
app: {{ template "fullname" . }}
24+
app: {{ .Values.service.name }}

charts/spring-cloud-k8s-boss/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ service:
1717
resources:
1818
limits:
1919
cpu: 500m
20-
memory: 512Mi
20+
memory: 768Mi
2121
requests:
2222
cpu: 400m
23-
memory: 512Mi
23+
memory: 768Mi
2424
probePath: /actuator/health
2525
livenessProbe:
2626
initialDelaySeconds: 60
2727
periodSeconds: 10
2828
successThreshold: 1
2929
timeoutSeconds: 1
3030
readinessProbe:
31-
periodSeconds: 10
31+
periodSeconds: 40
3232
successThreshold: 1
3333
timeoutSeconds: 1
3434
terminationGracePeriodSeconds: 10

0 commit comments

Comments
 (0)