Skip to content

Instantly share code, notes, and snippets.

@mickmcgrath13
mickmcgrath13 / README.md
Last active November 22, 2021 19:08
k8s create clusterrole

apply ci-account.yaml

then get the token:

$k -n kube-system get secret $($k -n kube-system get secret | grep ci-user | awk '{print $1}') -o json | jq -r ".data.token" | base64 -d

Use the token to create your kubeconfig: my.kubeconfig

@mickmcgrath13
mickmcgrath13 / st2-upgrade-packs-pack.sh
Created June 22, 2020 22:03
StackStorm - Update packs pack script
# back up the existing pack just in case
sudo mkdir /opt/stackstorm-temp-packs
sudo cp -rf /opt/stackstorm/packs/packs /opt/stackstorm-temp-packs
# get the latest pack (v3.2)
sudo mkdir /opt/st2-temp
# clone OS repo
sudo git clone --branch v3.2 https://github.com/StackStorm/st2.git /opt/st2-temp
# debug before
sudo cat /opt/stackstorm/packs/packs/pack.yaml
# copy new files