Skip to content

Instantly share code, notes, and snippets.

View AndrewKoryakin's full-sized avatar

Andrei Koriakin AndrewKoryakin

View GitHub Profile
@AndrewKoryakin
AndrewKoryakin / ctl_ns.sh
Last active October 11, 2017 19:41
Configure defaultTolerations and node-selector for namespace
#!/usr/bin/env bash
set -e
! read -rd '' HELP_STRING <<"EOF"
Usage: ctl_ns.sh [OPTION]... --namespace NAMESPACE --key KEY --value VALUE
Install kubernetes-dashboard to Kubernetes cluster.
Mandatory arguments:
-c, --configure configure namespace
-d, --delete remove node-selector and default toleration from namespace
@AndrewKoryakin
AndrewKoryakin / gensa.sh
Last active October 11, 2017 14:28
Create sa flant-readonly and generate config
#!/bin/bash -e
! read -rd '' HELP_STRING <<"EOF"
Usage: gensa.sh [OPTION]
Create sa flant-readonly and generate config
Mandatory arguments:
-n, --new create new sa flant-readonly (default)
-g, --generate generate config for existing sa
-d, --delete remove everything
Optional arguments: