From 97b35c055e5a4712d2da967e613a262ccae9e383 Mon Sep 17 00:00:00 2001 From: sk-portkey Date: Fri, 21 Nov 2025 11:40:22 +0530 Subject: [PATCH] chore: support host alias for app deployments --- charts/portkey-app/templates/backend/deployment.yaml | 4 ++++ charts/portkey-app/templates/clickhouse/stateful-set.yaml | 4 ++++ charts/portkey-app/templates/dataservice/deployment.yaml | 4 ++++ charts/portkey-app/templates/frontend/deployment.yaml | 4 ++++ charts/portkey-app/templates/gateway/deployment.yaml | 4 ++++ charts/portkey-app/templates/mysql/stateful-set.yaml | 4 ++++ charts/portkey-app/templates/redis/stateful-set.yaml | 4 ++++ charts/portkey-app/values.yaml | 7 +++++++ 8 files changed, 35 insertions(+) diff --git a/charts/portkey-app/templates/backend/deployment.yaml b/charts/portkey-app/templates/backend/deployment.yaml index 53473c4..1cd57e7 100644 --- a/charts/portkey-app/templates/backend/deployment.yaml +++ b/charts/portkey-app/templates/backend/deployment.yaml @@ -156,6 +156,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.backend.deployment.hostAlias }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.backend.deployment.volumes }} volumes: {{- toYaml . | nindent 8 }} diff --git a/charts/portkey-app/templates/clickhouse/stateful-set.yaml b/charts/portkey-app/templates/clickhouse/stateful-set.yaml index 96950a3..e1511c5 100644 --- a/charts/portkey-app/templates/clickhouse/stateful-set.yaml +++ b/charts/portkey-app/templates/clickhouse/stateful-set.yaml @@ -124,6 +124,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.clickhouse.statefulSet.hostAlias }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - name: clickhouse-conf configMap: diff --git a/charts/portkey-app/templates/dataservice/deployment.yaml b/charts/portkey-app/templates/dataservice/deployment.yaml index c460d46..6712302 100644 --- a/charts/portkey-app/templates/dataservice/deployment.yaml +++ b/charts/portkey-app/templates/dataservice/deployment.yaml @@ -128,6 +128,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.dataservice.deployment.hostAlias }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.dataservice.deployment.volumes }} volumes: {{- toYaml . | nindent 8 }} diff --git a/charts/portkey-app/templates/frontend/deployment.yaml b/charts/portkey-app/templates/frontend/deployment.yaml index d9a4255..75f8ec5 100644 --- a/charts/portkey-app/templates/frontend/deployment.yaml +++ b/charts/portkey-app/templates/frontend/deployment.yaml @@ -135,6 +135,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.frontend.deployment.hostAlias }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: {{- with .Values.frontend.deployment.volumes }} {{- toYaml . | nindent 8 }} diff --git a/charts/portkey-app/templates/gateway/deployment.yaml b/charts/portkey-app/templates/gateway/deployment.yaml index 833cb43..c22847b 100644 --- a/charts/portkey-app/templates/gateway/deployment.yaml +++ b/charts/portkey-app/templates/gateway/deployment.yaml @@ -134,6 +134,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.gateway.deployment.hostAlias }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.gateway.deployment.volumes }} volumes: {{- toYaml . | nindent 8 }} diff --git a/charts/portkey-app/templates/mysql/stateful-set.yaml b/charts/portkey-app/templates/mysql/stateful-set.yaml index 00197a1..08bea96 100644 --- a/charts/portkey-app/templates/mysql/stateful-set.yaml +++ b/charts/portkey-app/templates/mysql/stateful-set.yaml @@ -138,6 +138,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.mysql.statefulSet.hostAlias }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.mysql.statefulSet.volumes }} volumes: {{- toYaml . | nindent 8 }} diff --git a/charts/portkey-app/templates/redis/stateful-set.yaml b/charts/portkey-app/templates/redis/stateful-set.yaml index d6b5e8a..b93c8b2 100644 --- a/charts/portkey-app/templates/redis/stateful-set.yaml +++ b/charts/portkey-app/templates/redis/stateful-set.yaml @@ -117,6 +117,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.redis.statefulSet.hostAlias }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.redis.statefulSet.volumes }} volumes: {{- toYaml . | nindent 8 }} diff --git a/charts/portkey-app/values.yaml b/charts/portkey-app/values.yaml index 43d3151..fd1de02 100644 --- a/charts/portkey-app/values.yaml +++ b/charts/portkey-app/values.yaml @@ -209,6 +209,7 @@ backend: affinity: {} volumes: [] volumeMounts: [] + hostAlias: [] service: type: ClusterIP port: 8080 @@ -293,6 +294,7 @@ gateway: affinity: {} volumes: [] volumeMounts: [] + hostAlias: [] service: type: ClusterIP port: 8787 @@ -374,6 +376,7 @@ dataservice: affinity: {} volumes: [] volumeMounts: [] + hostAlias: [] service: type: ClusterIP port: 8081 @@ -451,6 +454,7 @@ frontend: affinity: {} volumes: [] volumeMounts: [] + hostAlias: [] autoscaling: enabled: false # If enabled, use the following values to configure the HPA. You can also use your own HPA configuration by not creating an HPA. @@ -556,6 +560,7 @@ mysql: affinity: {} volumes: [] volumeMounts: [] + hostAlias: [] persistence: enabled: false size: 2Gi @@ -635,6 +640,7 @@ redis: affinity: {} volumes: [] volumeMounts: [] + hostAlias: [] persistence: enabled: false size: 2Gi @@ -725,6 +731,7 @@ clickhouse: volumes: - name: data emptyDir: {} + hostAlias: [] # We recommend using a persistent volume and increasing the storage size to something like 50Gi when using in a production environment! persistence: enabled: false