Skip to content

Commit 2c5130d

Browse files
authored
Include server port config on the generated application.yml (#696)
* Include server port config on the generated application.yml * Add additional documentation Co-authored-by: Khor Shu Heng <khor.heng@gojek.com>
1 parent de8e4e1 commit 2c5130d

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

infra/charts/feast/charts/feast-core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ Current chart version is `0.5.0-alpha.1`
6666
| service.grpc.targetPort | int | `6565` | Container port serving GRPC requests |
6767
| service.http.nodePort | string | `nil` | Port number that each cluster node will listen to |
6868
| service.http.port | int | `80` | Service port for HTTP requests |
69-
| service.http.targetPort | int | `8080` | Container port serving HTTP requests |
69+
| service.http.targetPort | int | `8080` | Container port serving HTTP requests and Prometheus metrics |
7070
| service.type | string | `"ClusterIP"` | Kubernetes service type |

infra/charts/feast/charts/feast-core/templates/configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ data:
2727
type: statsd
2828
host: {{ .Release.Name }}-prometheus-statsd-exporter-udp
2929
port: 9125
30+
31+
server:
32+
port: {{ .Values.service.http.targetPort }}
3033
{{- end }}
3134

3235
application-override.yaml: |

infra/charts/feast/charts/feast-core/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ application.yaml:
1414
enabled: true
1515

1616
application-generated.yaml:
17-
# "application-generated.yaml".enabled -- Flag to include Helm generated configuration for Feast database URL, Kafka bootstrap servers and jobs metrics host. This is useful for deployment that uses default configuration for Kafka, Postgres and StatsD exporter. Please set `application-override.yaml` to override this configuration.
17+
# "application-generated.yaml".enabled -- Flag to include Helm generated configuration for http port, Feast database URL, Kafka bootstrap servers and jobs metrics host. This is useful for deployment that uses default configuration for Kafka, Postgres and StatsD exporter. Please set `application-override.yaml` to override this configuration.
1818
enabled: true
1919

2020
# "application-secret.yaml" -- Configuration to override the default [application.yaml](https://github.com/gojek/feast/blob/master/core/src/main/resources/application.yml). Will be created as a Secret. `application-override.yaml` has a higher precedence than `application-secret.yaml`. It is recommended to either set `application-override.yaml` or `application-secret.yaml` only to simplify config management.
@@ -89,7 +89,7 @@ service:
8989
http:
9090
# service.http.port -- Service port for HTTP requests
9191
port: 80
92-
# service.http.targetPort -- Container port serving HTTP requests
92+
# service.http.targetPort -- Container port serving HTTP requests and Prometheus metrics
9393
targetPort: 8080
9494
# service.http.nodePort -- Port number that each cluster node will listen to
9595
nodePort:

infra/charts/feast/charts/feast-serving/templates/configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ data:
2929
job_store:
3030
redis_host: {{ .Release.Name }}-redis-master
3131
redis_port: 6379
32+
33+
server:
34+
port: {{ .Values.service.http.targetPort }}
3235
{{- end }}
3336

3437
application-override.yaml: |

infra/charts/feast/charts/feast-serving/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ application.yaml:
1414
enabled: true
1515

1616
application-generated.yaml:
17-
# "application-generated.yaml".enabled -- Flag to include Helm generated configuration for Feast Core host, Redis store and job store. This is useful for deployment that uses default configuration for Redis. Please set `application-override.yaml` to override this configuration.
17+
# "application-generated.yaml".enabled -- Flag to include Helm generated configuration for http port, Feast Core host, Redis store and job store. This is useful for deployment that uses default configuration for Redis. Please set `application-override.yaml` to override this configuration.
1818
enabled: true
1919

2020
# "application-secret.yaml" -- Configuration to override the default [application.yaml](https://github.com/gojek/feast/blob/master/serving/src/main/resources/application.yml). Will be created as a Secret. `application-override.yaml` has a higher precedence than `application-secret.yaml`. It is recommended to either set `application-override.yaml` or `application-secret.yaml` only to simplify config management.
@@ -84,7 +84,7 @@ service:
8484
http:
8585
# service.http.port -- Service port for HTTP requests
8686
port: 80
87-
# service.http.targetPort -- Container port serving HTTP requests
87+
# service.http.targetPort -- Container port serving HTTP requests and Prometheus metrics
8888
targetPort: 8080
8989
# service.http.nodePort -- Port number that each cluster node will listen to
9090
nodePort:

0 commit comments

Comments
 (0)