Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/bee/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
appVersion: 2.5.0
name: bee
version: 0.17.3
version: 0.17.4
kubeVersion: ">=1.19.0-0"
description: Ethereum Swarm Bee Helm chart for Kubernetes
home: https://www.ethswarm.org
Expand Down
16 changes: 12 additions & 4 deletions charts/bee/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ spec:
- -c
- >
mkdir -p /home/bee/.bee/keys;
chown -R 999:999 /home/bee/.bee/keys;
export KEY=$(cat /tmp/bee/libp2p.map | grep $(hostname): | cut -d' ' -f2);
if [ -z "${KEY}" ]; then exit 0; fi;
if [ -z "${KEY}" ]; then chown -R 999:999 /home/bee/.bee/keys; exit 0; fi;
printf '%s' "${KEY}" > /home/bee/.bee/keys/libp2p_v2.key;
chmod 600 /home/bee/.bee/keys/libp2p_v2.key;
chown -R 999:999 /home/bee/.bee/keys;
echo 'node initialization done';
volumeMounts:
- name: data
Expand All @@ -86,10 +87,11 @@ spec:
- -c
- >
mkdir -p /home/bee/.bee/keys;
chown -R 999:999 /home/bee/.bee/keys;
export KEY=$(cat /tmp/bee/swarm.map | grep $(hostname): | cut -d' ' -f2);
if [ -z "${KEY}" ]; then exit 0; fi;
if [ -z "${KEY}" ]; then chown -R 999:999 /home/bee/.bee/keys; exit 0; fi;
printf '%s' "${KEY}" > /home/bee/.bee/keys/swarm.key;
chmod 600 /home/bee/.bee/keys/swarm.key;
chown -R 999:999 /home/bee/.bee/keys;
echo 'node initialization done';
volumeMounts:
- name: data
Expand Down Expand Up @@ -329,6 +331,10 @@ spec:
name: {{ template "bee.fullname" . }}
- name: bee-secret
secret:
## 0440: owner root, group-readable via podSecurityContext.fsGroup (999).
## Without this, Kubernetes defaults to 0644 and the wallet password is
## world-readable by every container in the pod.
defaultMode: 0440
{{- if .Values.existingSecret }}
secretName: {{ .Values.existingSecret }}
items:
Expand All @@ -343,6 +349,7 @@ spec:
{{- if .Values.libp2pSettings.enabled }}
- name: bee-libp2p
secret:
defaultMode: 0440
secretName: {{ template "bee.libp2pKeysSecretName" . }}
items:
- key: {{ template "bee.libp2pKeysSecretKey" . }}
Expand All @@ -351,6 +358,7 @@ spec:
{{- if .Values.swarmSettings.enabled }}
- name: bee-swarm
secret:
defaultMode: 0440
secretName: {{ template "bee.swarmKeysSecretName" . }}
items:
- key: {{ template "bee.swarmKeysSecretKey" . }}
Expand Down
Loading