Skip to content

Instantly share code, notes, and snippets.

View neerfri's full-sized avatar

Neer Friedman neerfri

View GitHub Profile
@neerfri
neerfri / gist:4bd7477920cb33a2a229807ed10c29c2
Created September 6, 2018 08:32
k8s cluster autoscaler command line options
$ docker run k8s.gcr.io/cluster-autoscaler:v1.2.2 /cluster-autoscaler -h
Usage of /cluster-autoscaler:
pflag: help requested
--address string The address to expose prometheus metrics. (default ":8085")
--alsologtostderr log to standard error as well as files
--application-metrics-count-limit int Max number of application metrics to store (per container) (default 100)
--azure-container-registry-config string Path to the file containing Azure container registry configuration information.
--balance-similar-node-groups Detect similar node groups and balance the number of nodes between them
--boot-id-file string Comma-separated list of files to check for boot-id. Use the first one that exists. (default "/proc/sys/kernel/random/boot_id"

Keybase proof

I hereby claim:

  • I am neerfri on github.
  • I am neerfri (https://keybase.io/neerfri) on keybase.
  • I have a public key whose fingerprint is C610 F702 F8E6 8F8C DB07 1FE1 775D BDCA D60A 077C

To claim this, I am signing this object:

@neerfri
neerfri / Dockerfile
Created June 20, 2018 11:53
A Dockerfile to demonstrate a problem with kubesec
FROM alpine:3.7
RUN apk add --update curl && \
curl -Lf https://github.com/shyiko/kubesec/releases/download/0.8.0/kubesec-0.8.0-linux-amd64 -o /root/kubesec && \
chmod +x /root/kubesec
@neerfri
neerfri / test_case.rb
Last active December 17, 2015 04:49
A test case for Moped showing 100% packet drop to a node in a replica set
#Put this in a file named test_case.rb in the moped project dir
#using ruby 1.9.3
#it needs sodu for the ipfw commands, sorry.
#
#run $ sudo ruby test_case.rb
require 'bundler/setup'
require 'moped'
require 'benchmark'