Install packages in minideb before execute it

This commit is contained in:
Carlos Rodriguez Hernandez
2018-10-25 09:21:22 +00:00
parent 1225567123
commit 99749dbf58
2 changed files with 3 additions and 3 deletions
@@ -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:
+1 -1
View File
@@ -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