Skip to content

Instantly share code, notes, and snippets.

View akutz's full-sized avatar

Andrew Kutz akutz

View GitHub Profile
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.0-alpha.0.1223+7bfd0d358cbe9e", GitCommit:"7bfd0d358cbe9eb1e8dc81c909ae9d03705ec438", GitTreeState:"clean", BuildDate:"2018-09-11T16:26:36Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.0-alpha.0.1223+7bfd0d358cbe9e", GitCommit:"7bfd0d358cbe9eb1e8dc81c909ae9d03705ec438", GitTreeState:"clean", BuildDate:"2018-09-11T16:23:05Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
@akutz
akutz / kubelet.log
Last active September 12, 2018 15:21
Failed Cross-Cloud Deployment pd17855
-- Logs begin at Wed 2018-09-12 07:31:38 UTC, end at Wed 2018-09-12 14:55:55 UTC. --
Sep 12 07:32:48 pd17855-worker-1.pd17855.vsphere.local systemd[1]: Started Kubernetes kubelet.
-- Subject: Unit kubelet.service has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit kubelet.service has finished starting up.
--
-- The start-up result is RESULT.
Sep 12 07:32:48 pd17855-worker-1.pd17855.vsphere.local kubelet[1458]: Flag --non-masquerade-cidr has been deprecated, will be removed in a future version
TF_VAR_run_conformance_tests=false
AWS_LOAD_BALANCER=false
TF_VAR_run_conformance_tests=false
AWS_LOAD_BALANCER=false
@akutz
akutz / config.env
Last active September 22, 2018 23:45
TF_VAR_run_conformance_tests=false
AWS_LOAD_BALANCER=false
TF_VAR_run_conformance_tests=false
AWS_LOAD_BALANCER=false
@akutz
akutz / README.md
Last active September 26, 2018 23:31
/var/lib/kubernetes/e2e/platforms/linux/amd64/e2e.test \
  -ginkgo.focus "should test kubelet managed /etc/hosts file  \\[Conformance\\]" \
  -ginkgo.skip "Alpha|Kubectl|\\[(Disruptive|Feature:[^\\]]+|Flaky)\\]" \
  -disable-log-dump \
  -provider "skeleton" \
  -report-dir "/var/log/kubernetes/e2e" \
  -v 10 2>&1 | tee /var/log/kubernetes/e2e/e2e.log || true
@akutz
akutz / README.md
Last active October 15, 2018 16:05
rpctool

rpctool

The program rpctool allows users on VMs running on vSphere to manipulate the VM's GuestInfo and OVF environment data.

root@photon-machine [ ~ ]# /var/lib/yakity/rpctool
COMMAND is required
usage: /var/lib/yakity/rpctool [FLAGS] COMMAND [ARGS]
COMMANDS
  get KEY
    	Gets the value for the specified guestinfo key
@akutz
akutz / README.md
Last active October 31, 2018 21:54
A POSIX-compliant means of manipulating a shell's arguments

The script posix-args.sh provides two POSIX-compliant functions for getting the last argument in an array as well as getting all but the last argument. The following example illustrates how to use the functions and the expected results:

t="$(mktemp)" && \
curl -o "${t}" -sSL \
http://bit.ly/posix-args && \
. "${t}" && rm -f "${t}"         # load the two functions from "posix-args.sh"

set -- one two three four        # set the shell's arguments value
echo "there are ${#} args"       # prints "there are 4 args"
@akutz
akutz / apcake.md
Created December 29, 2018 18:11
AP Cake

AP Cakes

Makes three, seven inch pies

Ingredients

  • 4 cups of flour
  • 2 cups of light, brown sugar
  • 3/4 cup of butter-flavored crisco
  • Scant 3/4 cup of 1% milk
  • A couple of drops of cider vinegar
  • 1 teaspoon of baking soda