Skip to content

Commit

Permalink
sysctl init container for proxy app (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdteam authored Apr 6, 2022
1 parent 670e108 commit 895971b
Show file tree
Hide file tree
Showing 3 changed files with 12 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.2.0
version: 1.2.1
appVersion: "0.1.0"
kubeVersion: "^1.18.x-x"
home: https://zenith.tech
Expand Down
2 changes: 1 addition & 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.2.0](https://img.shields.io/badge/Version-1.2.0-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.2.1](https://img.shields.io/badge/Version-1.2.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
10 changes: 10 additions & 0 deletions charts/zenith-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ spec:
serviceAccountName: {{ include "zenith-proxy.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
- name: sysctl
image: busybox:1.35.0
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
args:
- /bin/sh
- -c
- 'sysctl -w net.ipv4.tcp_keepalive_time=60; sysctl -w net.ipv4.tcp_keepalive_intvl=30'
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down

0 comments on commit 895971b

Please sign in to comment.