mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-20 18:46:11 +10:00
Install packages in minideb before execute it
This commit is contained in:
@@ -13,7 +13,7 @@ spec:
|
||||
matchLabels:
|
||||
app: {{ template "elasticsearch.name" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
role: "master"
|
||||
role: "master"
|
||||
replicas: {{ .Values.master.replicas }}
|
||||
template:
|
||||
metadata:
|
||||
@@ -60,7 +60,7 @@ spec:
|
||||
- name: sysctl
|
||||
image: {{ template "sysctl.image" . }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
|
||||
command: ["sysctl", "-w", "vm.max_map_count=262144"]
|
||||
command: ['sh', '-c', 'install_packages systemd && sysctl -w vm.max_map_count=262144']
|
||||
securityContext:
|
||||
privileged: true
|
||||
containers:
|
||||
|
||||
@@ -238,7 +238,7 @@ extraInitContainers: []
|
||||
## Containers, which are run before the app containers are started.
|
||||
# - name: init-myservice
|
||||
# image: bitnami/minideb
|
||||
# command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;']
|
||||
# command: ['sh', '-c', 'install_packages dnsutils && until nslookup myservice; do echo waiting for myservice; sleep 2; done;']
|
||||
|
||||
stats:
|
||||
enabled: false
|
||||
|
||||
Reference in New Issue
Block a user