Skip to content

Commit

Permalink
Added common-chart-template
Browse files Browse the repository at this point in the history
  • Loading branch information
SriPadma8997-egov committed Mar 15, 2024
1 parent d4ab060 commit 4adc9b5
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
26 changes: 26 additions & 0 deletions deploy-as-code/charts/common-chart-template/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v2
name: <service_name>
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.16.0

dependencies:
- name: common
version: 0.0.5
repository: file://<path_to_common>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- template "common.deployment" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- template "common.ingress" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- template "common.service" . -}}
34 changes: 34 additions & 0 deletions deploy-as-code/charts/common-chart-template/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Common Labels
labels:
app: "<service_name>"
group: "<service_group>"

# Ingress Configs
ingress:
enabled: true
zuul: true
context: "<service_name>"

# Init Containers Configs
initContainers:
dbMigration:
enabled: true
image:
repository: "<image_name-db>"
tag: <image_tag>

# Container Configs
image:
repository: "<image_name>"
tag: <image_tag>
replicas: "1"
tracing-enabled: true
healthChecks:
enabled: true
livenessProbePath: "/<service_name>/health"
readinessProbePath: "/<service_name>/health"

# Additional Container Envs
env: |
- name: <key>
value: <value>

0 comments on commit 4adc9b5

Please sign in to comment.