Skip to content

Instantly share code, notes, and snippets.

Oleg Yurchenko realjktu

Block or report user

Report or block realjktu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
if [ $# != 2 ]; then
echo "Specify sa name and namespace"
exit 2
realjktu / k8s-sa
Created Oct 3, 2018 — forked from mreferre/k8s-sa
Kubernetes Service Account
View k8s-sa
# Inspired by:
# this script creates a service account (user1) on a Kubernetes cluster (tested with AWS EKS 1.9)
# prereqs: a kubectl ver 1.10 installed and proper configuration of the heptio authenticator
# this has been tested on Linux in a Cloud9 environment (for MacOS the syntax may be slightly different)
******* Create an account *******
# Create service account for user user1
kubectl create sa user1
#!/usr/bin/env python
import pika, os, sys, argparse
arg_parser = argparse.ArgumentParser(description='Send message to RabbitMQ queue.', add_help=False)
arg_parser.add_argument('--host', '-h', required=True, help='RammbitMQ host name.')
arg_parser.add_argument('--port', '-p', default=5672, type=int, help='RammbitMQ port. Default: 5672')
arg_parser.add_argument('--queue', '-q', required=True, help='RammbitMQ queue name. Prod queue is "environments"')
arg_parser.add_argument('--data', '-d', required=True, help='Message to RammbitMQ.')
args = arg_parser.parse_args()
print("Sending data to %s:%s/%s"% (, args.port, args.queue))
You can’t perform that action at this time.