-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added helm charts for internal-gateway-scg (#2488)
- Loading branch information
1 parent
8e17b41
commit 1469afc
Showing
7 changed files
with
156 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
deploy-as-code/helm/charts/core-services/internal-gateway-scg/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: v2 | ||
name: internal-gateway-scg | ||
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://../../common |
2 changes: 2 additions & 0 deletions
2
deploy-as-code/helm/charts/core-services/internal-gateway-scg/templates/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# deployment.yaml | ||
{{- template "common.deployment" . -}} |
24 changes: 24 additions & 0 deletions
24
deploy-as-code/helm/charts/core-services/internal-gateway-scg/templates/role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- $envOverrides := index .Values (tpl .Chart.Name .) -}} | ||
{{- $baseValues := .Values | deepCopy -}} | ||
{{- $values := dict "Values" (mustMergeOverwrite $baseValues $envOverrides) -}} | ||
{{- with mustMergeOverwrite . $values }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
labels: | ||
app: {{ .Chart.Name }} | ||
group: gateway | ||
name: {{ .Chart.Name }} | ||
namespace: {{ .Values.namespace }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- services | ||
- endpoints | ||
- pods | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
{{- end -}} |
21 changes: 21 additions & 0 deletions
21
deploy-as-code/helm/charts/core-services/internal-gateway-scg/templates/rolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- $envOverrides := index .Values (tpl .Chart.Name .) -}} | ||
{{- $baseValues := .Values | deepCopy -}} | ||
{{- $values := dict "Values" (mustMergeOverwrite $baseValues $envOverrides) -}} | ||
{{- with mustMergeOverwrite . $values }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
labels: | ||
app: {{ .Chart.Name }} | ||
group: gateway | ||
name: {{ .Chart.Name }} | ||
namespace: {{ .Values.namespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: {{ .Chart.Name }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ .Values.serviceAccount }} | ||
namespace: {{ .Values.namespace }} | ||
{{- end -}} |
2 changes: 2 additions & 0 deletions
2
deploy-as-code/helm/charts/core-services/internal-gateway-scg/templates/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# service.yaml | ||
{{- template "common.service" . -}} |
15 changes: 15 additions & 0 deletions
15
deploy-as-code/helm/charts/core-services/internal-gateway-scg/templates/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- $envOverrides := index .Values (tpl .Chart.Name .) -}} | ||
{{- $baseValues := .Values | deepCopy -}} | ||
{{- $values := dict "Values" (mustMergeOverwrite $baseValues $envOverrides) -}} | ||
{{- with mustMergeOverwrite . $values }} | ||
{{- if or .Values.serviceAccount -}} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app: {{ .Chart.Name }} | ||
group: gateway | ||
name: {{ .Values.serviceAccount }} | ||
namespace: {{ .Values.namespace }} | ||
{{- end -}} | ||
{{- end -}} |
66 changes: 66 additions & 0 deletions
66
deploy-as-code/helm/charts/core-services/internal-gateway-scg/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Common Labels | ||
labels: | ||
app: "internal-gateway-scg" | ||
group: "gateway" | ||
|
||
serviceAccount: internal-gateway-scg | ||
namespace: egov | ||
|
||
# Ingress Configs | ||
ingress: | ||
enabled: true | ||
zuul: true | ||
context: "internal-gateway-scg" | ||
|
||
# Init Containers Configs | ||
initContainers: {} | ||
|
||
# Container Configs | ||
image: | ||
repository: "internal-gateway-scg" | ||
replicas: "1" | ||
healthChecks: | ||
enabled: true | ||
livenessProbePath: "/health" | ||
readinessProbePath: "/health" | ||
custom-filter-property: "false" | ||
posthook-config: "" | ||
prehook-config: "" | ||
heap: "-Xmx192m -Xms192m" | ||
appType: "java-spring" | ||
tracing-enabled: true | ||
server-tomcat-max-threads: "350" | ||
server-tomcat-max-connections: "1500" | ||
java-args: "" | ||
eventlog-enabled: "false" | ||
#eventlog-topic: "zuul-event-log" | ||
eventlog-urls-whitelist: "" | ||
home-isolation-chatbot-router-enabled: false | ||
|
||
# Additional Container Envs | ||
env: | | ||
- name: SERVER_PORT | ||
value: "8080" | ||
- name: JAVA_OPTS | ||
value: {{ index .Values "heap" | quote }} | ||
- name: ZUUL_HOST_CONNECT_TIMEOUT_MILLIS | ||
value: "20000" | ||
- name: ZUUL_HOST_SOCKET_TIMEOUT_MILLIS | ||
value: "60000" | ||
{{- if index .Values "tracing-enabled" }} | ||
- name: TRACER_OPENTRACING_ENABLED | ||
value: "true" | ||
{{- end }} | ||
- name: SECURITY_BASIC_ENABLED | ||
value: "false" | ||
- name: MANAGEMENT_SECURITY_ENABLED | ||
value: "false" | ||
- name: JAVA_ARGS | ||
value: {{ index .Values "java-args" | quote }} | ||
- name: EGOV_SERVICE_CONFIG_PATH | ||
value: "https://raw.githubusercontent.com/egovernments/configs/central-instance/internal-gateway.json" | ||
- name: STATE_LEVEL_TENANT_ID | ||
valueFrom: | ||
configMapKeyRef: | ||
name: egov-config | ||
key: egov-state-level-tenant-id |