-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(k8s): fix build-sync Pod crash loop issue
- Loading branch information
Showing
6 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM alpine:3.11.3 | ||
|
||
RUN apk add --no-cache rsync | ||
|
||
ADD entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
VOLUME=${VOLUME:-/data} | ||
ALLOW=${ALLOW:-192.168.0.0/16 172.16.0.0/12} | ||
|
||
mkdir -p ${VOLUME} | ||
|
||
cat <<EOF > /etc/rsyncd.conf | ||
uid = 0 | ||
#gid = | ||
use chroot = no | ||
log file = /dev/stdout | ||
reverse lookup = no | ||
munge symlinks = yes | ||
[volume] | ||
hosts deny = * | ||
hosts allow = ${ALLOW} | ||
read only = false | ||
path = ${VOLUME} | ||
comment = docker volume | ||
EOF | ||
|
||
exec /usr/bin/rsync --no-detach --daemon --config /etc/rsyncd.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Module | ||
type: container | ||
name: rsync-server | ||
description: The rsync server image, used for hot reloading and in-cluster build syncs | ||
image: gardendev/rsync:0.2.0 | ||
dockerfile: Dockerfile |