Skip to content

Instantly share code, notes, and snippets.

View anxious-coder-lhs's full-sized avatar

Anxious Coder anxious-coder-lhs

View GitHub Profile
@anxious-coder-lhs
anxious-coder-lhs / rabbitmq-cluster.md
Created March 20, 2019 11:11 — forked from pobsuwan/rabbitmq-cluster.md
How to config rabbitmq server cluster [3 nodes]

How to config rabbitmq server cluster [3 nodes]

Do after install SLGInstallers

Edit /etc/hosts

vi /etc/hosts
192.168.10.157  rabbitmq-1
192.168.10.159  rabbitmq-2
192.168.10.161  rabbitmq-3
@anxious-coder-lhs
anxious-coder-lhs / kubernetes_add_service_account_kubeconfig.sh
Created February 25, 2019 11:41 — forked from innovia/kubernetes_add_service_account_kubeconfig.sh
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi