Commit 66f48466 authored by Kris Moore's avatar Kris Moore

Small performance improvement. No need to chown the entire directory

after the first init.
parent 1e333b07
...@@ -26,7 +26,7 @@ spec: ...@@ -26,7 +26,7 @@ spec:
initContainers: initContainers:
- name: init-init - name: init-init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['/bin/sh', '-c', '[ ! -e /data/ipfs/config ] && /usr/local/bin/ipfs init ; exit 0'] command: ['/bin/sh', '-c', '[ ! -e /data/ipfs/config ] && (/usr/local/bin/ipfs init ; chown -R 1000:100 /data/ipfs) ; exit 0']
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: data - name: data
...@@ -80,7 +80,7 @@ spec: ...@@ -80,7 +80,7 @@ spec:
mountPath: /export mountPath: /export
- name: init-chown - name: init-chown
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['chown', '-R', '1000:100', '/data/ipfs'] command: ['chown', '1000:100', '/data/ipfs/config']
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts: volumeMounts:
- name: data - name: data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment