-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jens Schulze
committed
Jan 18, 2023
1 parent
ecef86a
commit 38881a4
Showing
6 changed files
with
92 additions
and
37 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,3 +1,61 @@ | ||
# restinthemiddle-helm | ||
# restinthemiddle | ||
|
||
Helm chart for restinthemiddle | ||
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) | ||
|
||
HTTP logging proxy | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| affinity | object | `{}` | | | ||
| applicationName | string | `"restinthemiddle"` | | | ||
| autoscaling.enabled | bool | `false` | Handle with care! Autoscaling will make sense only if you have centralized logging. | | ||
| autoscaling.maxReplicas | int | `2` | | | ||
| autoscaling.minReplicas | int | `1` | | | ||
| autoscaling.targetCPUUtilizationPercentage | int | `80` | | | ||
| config.exclude | string | `""` | | | ||
| config.excludePostBody | string | `""` | | | ||
| config.excludeResponseBody | string | `""` | | | ||
| config.headers | object | `{}` | | | ||
| config.listenIp | string | `"0.0.0.0"` | | | ||
| config.listenPort | string | `"8000"` | | | ||
| config.logPostBody | bool | `true` | | | ||
| config.logResponseBody | bool | `true` | | | ||
| config.loggingEnabled | bool | `true` | | | ||
| config.setRequestId | bool | `false` | | | ||
| config.targetHostDsn | string | `"https://username:[email protected]:4443/example/path"` | | | ||
| fullnameOverride | string | `""` | | | ||
| image.pullPolicy | string | `"IfNotPresent"` | | | ||
| image.registry | string | `"docker.io"` | | | ||
| image.repository | string | `"jdschulze/restinthemiddle"` | | | ||
| image.tag | string | `"2.0.0-alpha.11"` | | | ||
| imagePullSecrets | list | `[]` | | | ||
| ingress.annotations | object | `{}` | | | ||
| ingress.className | string | `""` | | | ||
| ingress.enabled | bool | `false` | | | ||
| ingress.hosts[0].host | string | `"restinthemiddle.local"` | | | ||
| ingress.hosts[0].paths[0].path | string | `"/"` | | | ||
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | | ||
| ingress.tls | list | `[]` | | | ||
| nameOverride | string | `""` | | | ||
| namespace | string | `"default"` | | | ||
| nodeSelector | object | `{}` | | | ||
| podAnnotations | object | `{}` | | | ||
| podSecurityContext | object | `{}` | | | ||
| replicaCount | int | `1` | Leave this at 1 if you do not have centralized logging. | | ||
| resources | object | `{"limits":{"cpu":"100m","memory":"64Mi"},"requests":{"cpu":"10m","memory":"32Mi"}}` | Adjust those values to your needs. These values are only suggestions! | | ||
| securityContext.capabilities.drop[0] | string | `"ALL"` | | | ||
| securityContext.readOnlyRootFilesystem | bool | `true` | | | ||
| securityContext.runAsGroup | int | `1000` | | | ||
| securityContext.runAsNonRoot | bool | `true` | | | ||
| securityContext.runAsUser | int | `1000` | | | ||
| service.portOverride | string | `""` | Use this only if you have to override config.listenPort because you want to use a privileged port. | | ||
| service.type | string | `"ClusterIP"` | | | ||
| serviceAccount.annotations | object | `{}` | | | ||
| serviceAccount.create | bool | `false` | | | ||
| serviceAccount.name | string | `""` | | | ||
| tolerations | list | `[]` | | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) |
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
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 |
---|---|---|
@@ -1,17 +1,10 @@ | ||
{{- if .Values.config -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: restinthemiddle-config | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
config.yaml: |+ | ||
targetHostDsn: {{ .Values.config.targetHostDsn }} | ||
listenIp: {{ .Values.config.listenIp }} | ||
listenPort: {{ .Values.config.listenPort | quote }} | ||
headers: | ||
{{- range $name, $value := .Values.config.headers }} | ||
{{ $name }}: {{ $value }} | ||
{{- end }} | ||
loggingEnabled: {{ .Values.config.loggingEnabled }} | ||
setRequestId: {{ .Values.config.setRequestId }} | ||
exclude: {{ .Values.config.exclude | quote }} | ||
config.yaml: | | ||
{{- toYaml .Values.config | nindent 4 }} | ||
{{- end }} |
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
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 |
---|---|---|
|
@@ -2,24 +2,28 @@ namespace: default | |
applicationName: restinthemiddle | ||
|
||
image: | ||
repository: docker.io/jdschulze/restinthemiddle | ||
registry: docker.io | ||
repository: jdschulze/restinthemiddle | ||
pullPolicy: IfNotPresent | ||
tag: "" | ||
tag: "2.0.0-alpha.11" | ||
|
||
imagePullSecrets: [] | ||
|
||
nameOverride: "" | ||
fullnameOverride: "" | ||
|
||
config: | ||
targetHostDsn: https://example.com:4443 | ||
listenIp: 0.0.0.0 # Usually you shouldn’t change this value | ||
listenPort: "8000" # Non-privileged ports only! Use service.portOverride if you want to use a privileged port. | ||
headers: | ||
User-Agent: Rest in the middle logging proxy | ||
loggingEnabled: true # You know, for Logging | ||
setRequestId: false # Add an X-Request-Id header if not already present | ||
exclude: "" # Exclude requests that match this URL RegEx | ||
exclude: "" # Exclude requests that match this URL RegEx | ||
excludePostBody: "" # Do not log the Request body if the URL path matches this RegEx | ||
excludeResponseBody: "" # Do not log the Response body if the URL path matches this RegEx | ||
headers: {} | ||
listenIp: 0.0.0.0 # Usually you shouldn’t change this value | ||
listenPort: "8000" # Non-privileged ports only! Use service.portOverride if you want to use a privileged port. | ||
logPostBody: true # Log the Request body | ||
logResponseBody: true # Log the Response body (if it is not chunked) | ||
loggingEnabled: true # You know, for Logging | ||
setRequestId: false # Add an X-Request-Id header if not already present | ||
targetHostDsn: https://username:[email protected]:4443/example/path | ||
|
||
serviceAccount: | ||
create: false | ||
|
@@ -42,36 +46,37 @@ securityContext: | |
|
||
service: | ||
type: ClusterIP | ||
portOverride: "" # Use this only if you have to override config.listenPort because you want to use a privileged port. | ||
# -- Use this only if you have to override config.listenPort because you want to use a privileged port. | ||
portOverride: "" | ||
|
||
ingress: | ||
enabled: false | ||
className: "" | ||
annotations: {} | ||
# kubernetes.io/ingress.class: nginx | ||
# kubernetes.io/tls-acme: "true" | ||
hosts: | ||
- host: restinthemiddle.local | ||
paths: | ||
- path: / | ||
pathType: ImplementationSpecific | ||
tls: [] | ||
# - secretName: chart-example-tls | ||
# - secretName: restinthemiddle-tls | ||
# hosts: | ||
# - chart-example.local | ||
# - restinthemiddle.local | ||
|
||
# -- Adjust those values to your needs. These values are only suggestions! | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 64Mi | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
cpu: 10m | ||
memory: 32Mi | ||
|
||
autoscaling: | ||
# -- Handle with care! Autoscaling will make sense only if you have centralized logging. | ||
enabled: false | ||
minReplicas: 1 | ||
maxReplicas: 100 | ||
maxReplicas: 2 | ||
targetCPUUtilizationPercentage: 80 | ||
# targetMemoryUtilizationPercentage: 80 | ||
|
||
|
@@ -81,5 +86,5 @@ tolerations: [] | |
|
||
affinity: {} | ||
|
||
# Probably you should leave this untouched | ||
# -- Leave this at 1 if you do not have centralized logging. | ||
replicaCount: 1 |