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
set -x | |
mkdir -p /opt/bin/ | |
#wget -O /opt/bin/criproxy https://github.com/Mirantis/criproxy/releases/download/v0.9.4/criproxy | |
chmod +x /opt/bin/criproxy | |
if [ ! -f /etc/systemd/system/kubelet.service.origin ]; then |
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
kmerge() { | |
NEW_KUBECONFIG=$1 | |
ACTIVE_KUBECONFIG=${KUBECONFIG:-~/.kube/config} | |
BACKUP_KUBECONFIG=$ACTIVE_KUBECONFIG.bak | |
cp $ACTIVE_KUBECONFIG $BACKUP_KUBECONFIG 2>/dev/null || : | |
KUBECONFIG=$BACKUP_KUBECONFIG:$NEW_KUBECONFIG kubectl config view --flatten > $ACTIVE_KUBECONFIG | |
} |
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
helm plugin install https://github.com/databus23/helm-diff --version v2.8.0+1 |
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
#!/usr/bin/env python3 | |
# .drone.yml is used to configure your pipeline at the repo level | |
# let's write a .drone.setup.yml to setup our repo, configure some settings, and push some secrets | |
# | |
# Configure your Drone repo with a git-tracked file, then apply your conf | |
# Use a bit of sops (https://github.com/mozilla/sops) to protect your secrets | |
# First, export your Drone env var (DRONE_SERVER, DRONE_TOKEN) | |
# Run: ./drone-setup.py | |
# |