Skip to content

Commit

Permalink
Add proxy http port for metrics (#5)
Browse files Browse the repository at this point in the history
* Add proxy http management port

* Generate docs

* Run helm-docs via docker the same way CI does

* Bump minor version

* Use camel case

* Generate readme

* add http port to zenith proxy deployment template

Co-authored-by: Andrey Taranik <[email protected]>
  • Loading branch information
bojanserafimov and cicdteam authored Jan 17, 2022
1 parent f9ddd67 commit 86477ba
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/zenith-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: zenith-proxy
description: Zenith Proxy
type: application
version: 1.0.3
version: 1.1.1
appVersion: "0.1.0"
kubeVersion: "^1.18.x-x"
home: https://zenith.tech
Expand Down
3 changes: 2 additions & 1 deletion charts/zenith-proxy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# zenith-proxy

![Version: 1.0.3](https://img.shields.io/badge/Version-1.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/zenithdb/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/zenithdb/helm-charts/actions/workflows/lint-test.yaml)
![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/zenithdb/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/zenithdb/helm-charts/actions/workflows/lint-test.yaml)

Zenith Proxy

Expand Down Expand Up @@ -44,6 +44,7 @@ Kubernetes: `^1.18.x-x`
| resources | object | `{}` | |
| securityContext | object | `{}` | zenith-proxy's containers Security Context |
| service.annotations | object | `{}` | Annotations to add to the service |
| service.httpPort | int | `9090` | Http management port |
| service.port | int | `7000` | Service management port |
| service.type | string | `"ClusterIP"` | Service type |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
Expand Down
5 changes: 5 additions & 0 deletions charts/zenith-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ spec:
- 0.0.0.0:5432
- --mgmt
- 0.0.0.0:7000
- --http
- 0.0.0.0:9090
{{- if .Values.settings }}
{{- with .Values.settings.uri }}
- -u
Expand All @@ -56,6 +58,9 @@ spec:
- name: mgmt
containerPort: 7000
protocol: TCP
- name: http
containerPort: 9090
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
4 changes: 4 additions & 0 deletions charts/zenith-proxy/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ spec:
targetPort: mgmt
protocol: TCP
name: mgmt
- port: {{ .Values.service.httpPort }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "zenith-proxy.selectorLabels" . | nindent 4 }}
2 changes: 2 additions & 0 deletions charts/zenith-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ service:
type: ClusterIP
# service.port -- Service management port
port: 7000
# service.httpPort -- Http management port
httpPort: 9090

exposedService:
# exposedService.annotations -- Annotations to add to the exposed service
Expand Down

0 comments on commit 86477ba

Please sign in to comment.