sighup
This commit is contained in:
parent
a11947c5e7
commit
949cf77c4e
2 changed files with 2 additions and 3 deletions
|
@ -9,5 +9,5 @@ data:
|
||||||
echo "Starting sidecar listener on port 8080..."
|
echo "Starting sidecar listener on port 8080..."
|
||||||
while true; do
|
while true; do
|
||||||
echo -e "HTTP/1.1 200 OK\n\nSIGHUP sent to OpenBAO" | nc -l -p 8080
|
echo -e "HTTP/1.1 200 OK\n\nSIGHUP sent to OpenBAO" | nc -l -p 8080
|
||||||
kill -SIGHUP $(pidof bao) || echo "OpenBAO process not found"
|
kill $(pidof bao) || echo "OpenBAO process not found"
|
||||||
done
|
done
|
||||||
|
|
|
@ -24,7 +24,7 @@ server:
|
||||||
subPath: passwd
|
subPath: passwd
|
||||||
- name: logrotate2
|
- name: logrotate2
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
command: ["/bin/sh", "-c", "sleep infinity"]
|
command: ["/bin/sh", "-c", "/tmp/sidecar.sh"]
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 100
|
runAsUser: 100
|
||||||
ports:
|
ports:
|
||||||
|
@ -74,7 +74,6 @@ server:
|
||||||
echo $(grep "Unseal Key 5:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key5.txt
|
echo $(grep "Unseal Key 5:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key5.txt
|
||||||
bao login $(grep "Initial Root Token:" /tmp/init.txt | awk '{print $NF}')
|
bao login $(grep "Initial Root Token:" /tmp/init.txt | awk '{print $NF}')
|
||||||
rm /tmp/init.txt
|
rm /tmp/init.txt
|
||||||
# bao audit enable file file_path=stdout
|
|
||||||
bao audit enable -path="file" file file_path=/openbao/logs/openbao/openbao.log
|
bao audit enable -path="file" file file_path=/openbao/logs/openbao/openbao.log
|
||||||
ui:
|
ui:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Reference in a new issue