Skip to content

Instantly share code, notes, and snippets.

View mml's full-sized avatar
🕳️

Matt Liggett mml

🕳️
  • Santa Rosa Plain, California Floristic Province
View GitHub Profile
---
apiVersion: v1
kind: Namespace
metadata:
name: sonobuoy
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
@mml
mml / gist:1a24775b6fceea4685c84aee2f548f6b
Created May 12, 2017 21:09
kubectl drain-based node upgrades!
== Pre-Upgrade Node OS and Kubelet Versions ==
name: "e2e-master", osImage: "Container-Optimized OS from Google", kubeletVersion: "v1.7.0-alpha.3.278+a365e02e018731-dirty"
name: "e2e-minion-group-5f66", osImage: "Debian GNU/Linux 7 (wheezy)", kubeletVersion: "v1.7.0-alpha.3.278+a365e02e018731-dirty"
name: "e2e-minion-group-ls90", osImage: "Debian GNU/Linux 7 (wheezy)", kubeletVersion: "v1.7.0-alpha.3.278+a365e02e018731-dirty"
Project: mml-e2e
Zone: us-central1-f
INSTANCE_GROUPS=e2e-minion-group
NODE_NAMES=e2e-minion-group-5f66 e2e-minion-group-ls90
== Preparing node upgrade (to v1.7.0-alpha.3.272+69ad6addcc5c25). ==
== Ensuring that new Node base OS image matched the existing Node base OS image
@mml
mml / test-migration.sh
Created November 10, 2016 03:29
migration test script
#!/bin/sh
set -o nounset
migrate_if_needed() {
export TARGET_STORAGE="$1"
export TARGET_VERSION="$2"
echo "Migrating to ${TARGET_STORAGE}/${TARGET_VERSION}"
t0=$(date +%s)
/usr/local/bin/migrate-if-needed.sh >> /var/log/migrate.log 2>&1
[
["f", "Show next/latest diffs", "setProposedRevRanges()"],
["n", "Next unreviewed file", "nextUnreviewedFile()"],
["p", "Previous unreviewed file", "prevUnreviewedFile()"],
["shift+n", "Next changed file", "nextChangedFile()"],
["shift+p", "Previous changed file", "prevChangedFile()"],
[null, "Next visible file", "nextVisibleFile()"],
[null, "Previous visible file", "prevVisibleFile()"],
[null, "Next file", "nextFile()"],
STEP: Waiting for federation-apiserver to be ready
STEP: federation-apiserver is ready
STEP: Building a namespace api object
STEP: Waiting for a default service account to be provisioned in namespace
[BeforeEach] [k8s.io] [Feature:Federation] Federated Services
/usr/local/google/home/mml/gocode/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/federated-service.go:121
Jun 23 10:36:14.081: INFO: Creating cluster object: federation-e2e-gce-us-central1-f (https://104.197.36.79, secret: federation-e2e-gce-us-central1-f)
Jun 23 10:36:14.121: INFO: Successfully created cluster object: federation-e2e-gce-us-central1-f (https://104.197.36.79, secret: federation-e2e-gce-us-central1-f)
STEP: Obtaining a list of all the clusters
Jun 23 10:36:14.160: INFO: 1 clusters registered, waiting for 1
% rake -t rails:freeze:gems
(in /Users/mml/s/nq)
** Invoke rails:freeze:gems (first_time)
** Execute rails:freeze:gems
Freezing to the gems for Rails 2.3.5
rm -rf vendor/rails
mkdir -p vendor/rails
cd vendor/rails
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /opt/local/lib/ruby/gems/1.8 directory.
test:
python fiddle.py
ruby fiddle.rb
#!/bin/bash
# See http://github.com/mml/needy for a new project based on this script.
# Script to let me know which projects are getting a bit stale.
#
# Sample output:
# flickr: 379.8 hours
# ol: 219.6 hours
# lj: 65.4 hours
There once was a man from Nantucket