This file contains hidden or 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
#!/bin/bash | |
if [ -z "$KRSYNC_STARTED" ]; then | |
export KRSYNC_STARTED=true | |
exec rsync --blocking-io --rsh "$0" $@ | |
fi | |
# Running as --rsh | |
namespace='' | |
pod=$1 |
This file contains hidden or 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: iat-dind | |
spec: | |
containers: | |
- name: iat-dind | |
image: docker:19.03-dind | |
securityContext: | |
privileged: true |
This file contains hidden or 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
#!/bin/bash | |
# This script is inspired by https://serverfault.com/questions/741670/rsync-files-to-a-kubernetes-pod | |
# It is especially useful when your docker daemon is running in remote server | |
if [ -z "$DRSYNC_STARTED" ]; then | |
export DRSYNC_STARTED=true | |
exec rsync --blocking-io --rsh "$0" "$@" | |
fi | |
# Running as --rsh |