Skip to content

Commit

Permalink
changes in deploymnet chart
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal-devtron committed Jun 17, 2024
1 parent 33f6e42 commit b3b3c58
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: deployment-chart_4-18-0
version: 4.18.0
name: deployment-chart_4-19-0
version: 4.19.0
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{- end }}

{{- $hasPVCExists := false -}}
{{- if .Values.peristentVolumeClaim.name }}
{{- if .Values.persistentVolumeClaim.name }}
{{- $hasPVCExists = true }}
{{- end }}

Expand Down Expand Up @@ -490,6 +490,14 @@ spec:
- name: {{ $.Chart.Name }}-sidecontainer-{{ add1 $i }}
image: "{{ $.Values.server.deployment.image }}:{{ $.Values.server.deployment.image_tag }}"
imagePullPolicy: {{ $.Values.image.pullPolicy }}
{{- if .env }}
env:
{{ toYaml .env | indent 12 }}
{{- end }}
{{- if .envFrom }}
envFrom:
{{ toYaml .env | indent 12 }}
{{- end }}
{{- if .securityContext }}
securityContext:
{{ toYaml .securityContext | indent 12 }}
Expand All @@ -513,6 +521,7 @@ spec:
{{- end}}
{{- end}}


volumes:
{{- if $.Values.appMetrics }}
- name: envoy-config-volume
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{{- if .Values.peristentVolumeClaim.name }}
{{- if .Values.persistentVolumeClaim.name }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{.Values.peristentVolumeClaim.name }}
name: {{.Values.persistentVolumeClaim.name }}
labels:
app: {{ template ".Chart.Name .name" $ }}
chart: {{ template ".Chart.Name .chart" $ }}
{{- if .Values.appLabels }}
{{ toYaml .Values.appLabels | indent 4 }}
{{- end }}
{{- with .Values.peristentVolumeClaim }}
{{- with .Values.persistentVolumeClaim }}
spec:
accessModes:
{{- range .accessMode }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ spec:
{{- end }}
selector:
app: {{ template ".Chart.Name .name" . }}
{{- if .Values.service.sessionAffinity.enabled }}
sessionAffinity: ClientIP
{{- end }}
{{- if .Values.service.sessionAffinityConfig }}
sessionAffinityConfig:
{{ toYaml .Values.service.sessionAffinityConfig | indent 4 }}
{{- end }}
{{- if eq .Values.deploymentType "BLUE-GREEN" }}
---
apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ service:
annotations: {}
# test1: test2
# test3: test4
sessionAffinity:
enabled: false

istio:
enable: false
Expand Down Expand Up @@ -584,15 +586,18 @@ initContainers: []
# # This will assign your application's docker image to init container.
# reuseContainerImage: true

containers: []
containers:
## Additional init containers to run before the Scheduler pods.
## for example, be used to run a sidecar that chown Logs storage .
#- name: volume-mount-hack
# image: busybox
# command: ["sh", "-c", "chown -R 1000:1000 logs"]
# volumeMounts:
# - mountPath: /usr/local/airflow/logs
# name: logs-data
- name: volume-mount-hack
image: busybox
command: ["sh", "-c", "chown -R 1000:1000 logs"]
volumeMounts:
- mountPath: /usr/local/airflow/logs
name: logs-data
envFrom:
- configMapRef:
name: kamal


rawYaml: []
Expand Down Expand Up @@ -703,4 +708,4 @@ tolerations: []
imagePullSecrets: []
# - test1
# - test2
peristentVolumeClaim: {}
persistentVolumeClaim: {}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ spec:
{{- end }}
selector:
app: {{ template ".Chart.Name .name" . }}
{{- if .Values.service.sessionAffinity.enabled }}
sessionAffinity: ClientIP
{{- end }}
{{- if .Values.service.sessionAffinityConfig }}
sessionAffinityConfig:
{{ toYaml .Values.service.sessionAffinityConfig | indent 4 }}
{{- end }}



{{- if eq .Values.deploymentType "BLUE-GREEN" }}
---
apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ service:
annotations: {}
# test1: test2
# test3: test4
sessionAffinity:
enabled: false
sessionAffinityConfig: {}


server:
deployment:
Expand Down

0 comments on commit b3b3c58

Please sign in to comment.