Skip to content

Instantly share code, notes, and snippets.

View Stono's full-sized avatar
💭
coding!

Karl Stoney Stono

💭
coding!
View GitHub Profile
#!/bin/bash
set -e
array=( istio istio-crd istio-grafana istio-prometheus istio-jaeger )
for i in "${array[@]}"
do
echo "Installing: $i"
helm upgrade --install $i --namespace istio-system $i/ --debug -f $ENV
done
#!/usr/bin/env ruby
require 'psych'
require 'fileutils'
require 'yaml'
# These mappings are used by looking at the Type of the resource, and then
# from that deciding the sub folder
@mappings = {
'CustomResourceDefinition' => 'custom-resources',
'ClusterRole' => 'rbac/role',
#!/bin/bash
if [ -z "$RELEASE_NAME" ]; then
echo "ERROR: Please set \$RELEASE_NAME"
exit 1
fi
if [ -z "$GO_PIPELINE_COUNTER" ]; then
echo "ERROR: Please set \$GO_PIPELINE_COUNTER"
exit 1
fi
APP="aws/helm-$RELEASE_NAME"
#!/bin/bash
set -e
function get_secret {
VAR=".data[\"$1\"]"
kubectl -n istio-system get secret istio-ca-secret -o json | jq -r $VAR | base64 --decode
}
function clean {
# Cleanup database
rm -f ca/index.txt*

Keybase proof

I hereby claim:

  • I am stono on github.
  • I am kstoney (https://keybase.io/kstoney) on keybase.
  • I have a public key ASAfkF1lJjrHhDseYf6l1dF4VDvnN-HjhaXKFP_pfAv0Ngo

To claim this, I am signing this object:

@Stono
Stono / 99-install-facetime-camera.sh
Created February 27, 2017 10:35
Install the kernal module required for the facetimehd camera to work on Linux
#!/bin/bash
set -e
export CONFIG_MODULE_SIG=n
export CONFIG_MODULE_SIG_ALL=n
export KERNELRELEASE=${1}
echo "Installing FacetimeHD camera for $KERNELRELEASE"
cd /tmp
git clone https://github.com/patjak/bcwc_pcie.git
@Stono
Stono / kshell
Created July 21, 2016 20:36
A shell script which enables easy execing into kube pods
#!/bin/sh
if [ "$1" = "" ]; then
echo "Usage: kshell <pod>"
exit 1
fi
echo Getting pods...
PODS=$(kubectl get pods --no-headers --output=name | grep $1)
PODS=(${PODS})
NUM_PODS=${#PODS[@]}
@Stono
Stono / create-docker-tls.sh
Last active February 27, 2024 08:17
Creating and setting up Docker for TLS
#!/bin/bash
# This script will help you setup Docker for TLS authentication.
# Run it passing in the arguement for the FQDN of your docker server
#
# For example:
# ./create-docker-tls.sh myhost.docker.com
#
# The script will also create a profile.d (if it exists) entry
# which configures your docker client to use TLS
#