Skip to content

Instantly share code, notes, and snippets.

View pmichali's full-sized avatar

Paul Michali pmichali

View GitHub Profile
• releasing...
• loading config file file=.goreleaser.yml
• SETTING DEFAULTS FOR:
• loading environment variables
• snapshoting
• releasing to GitHub
• creating archives
• building binaries
• creating Linux packages with fpm
• creating Linux packages with nfpm
"cniVersion": "0.3.0",
"name": "dindnet",
"type": "bridge",
"bridge": "dind0",
"isDefaultGateway": true,
"ipMasq": false,
"hairpinMode": true,
"ipam": {
"type": "host-local",
diff --git a/cmd/kubeadm/app/phases/addons/dns/dns.go b/cmd/kubeadm/app/phases/addons/dns/dns.go
index cc0e721..c3e1a7d 100644
--- a/cmd/kubeadm/app/phases/addons/dns/dns.go
+++ b/cmd/kubeadm/app/phases/addons/dns/dns.go
@@ -18,6 +18,7 @@ package dns
import (
"fmt"
+ "net"
"runtime"
@pmichali
pmichali / docker-version
Last active November 27, 2017 20:49
systemctl cat kubelet
c2@bxb-c2-79:~/dind$ docker version
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:18 2017
OS/Arch: linux/amd64
Server:
@pmichali
pmichali / gist:9fe2f2fe2c5ed24e7b9ff417e0a943e5
Created May 31, 2017 20:48
Log of end-to-end test failure
go run hack/e2e.go -v -test --test_args='--ginkgo.focus=Addon\supdate\sshould\spropagate\sadd\-on\sfile\schanges\s\[Slow\]$'
flag provided but not defined: -v
Usage of /tmp/go-build262701992/command-line-arguments/_obj/exe/e2e:
-get
go get -u kubetest if old or not installed (default true)
-old duration
Consider kubetest old if it exceeds this (default 24h0m0s)
2017/05/31 20:31:28 e2e.go:54: NOTICE: go run hack/e2e.go is now a shim for test-infra/kubetest
2017/05/31 20:31:28 e2e.go:55: Usage: go run hack/e2e.go [--get=true] [--old=24h0m0s] -- [KUBETEST_ARGS]
Provisioning to use Calico
1/20/2017
First, tearing down the cluster, by doing this on each node:
kubeadm reset
rm -rf .kube
systemctl start kubelet.service
Did yum -y update on all nodes as well. Downloaded http://docs.projectcalico.org/v1.6/getting-started/kubernetes/installation/hosted/kubeadm/calico.yaml and then ran "kubectl create -f calico.yaml".
Starting up cluster (with just the master node).
@pmichali
pmichali / Steps
Last active December 2, 2016 13:37 — forked from danehans/Steps
vagrant_vbox_kubeadm
# Install Vagrant on your Mac: https://www.vagrantup.com/
# Here is the version I use
$ vagrant --version
Vagrant 1.8.1
# Virtualbox (vbox) is the default Vagrant provider, so it should be installed with Vagrant.
# I use vbox v5.0.16. If you need to install vbox, follow these directions: https://www.virtualbox.org/
# Copy the Vagrant file in this gist to your laptop.
@pmichali
pmichali / gist:6056219
Created July 22, 2013 18:21
Create log output
2013-07-22 18:16:41.948 6211 DEBUG neutron.openstack.common.rpc.amqp [-] Making synchronous call on ipsec_driver ... multicall /opt/stack/neutron/neutron/openstack/common/rpc/amqp.py:516
Stdout: '# Generated by iptables-save v1.4.12 on Mon Jul 22 18:16:42 2013\n*nat\n:PREROUTING ACCEPT [54:15684]\n:INPUT ACCEPT [73:16800]\n:OUTPUT ACCEPT [57:7600]\n:POSTROUTING ACCEPT [34:6208]\n:neutron-postrouting-bottom - [0:0]\n:neutron-vpn-agen-OUTPUT - [0:0]\n:neutron-vpn-agen-POSTROUTING - [0:0]\n:neutron-vpn-agen-PREROUTING - [0:0]\n:neutron-vpn-agen-float-snat - [0:0]\n:neutron-vpn-agen-snat - [0:0]\n[74:16884] -A PREROUTING -j neutron-vpn-agen-PREROUTING\n[57:7600] -A OUTPUT -j neutron-vpn-agen-OUTPUT\n[58:7684] -A POSTROUTING -j neutron-vpn-agen-POSTROUTING\n[34:6208] -A POSTROUTING -j neutron-postrouting-bottom\n[34:6208] -A neutron-postrouting-bottom -j neutron-vpn-agen-snat\n[0:0] -A neutron-vpn-agen-POSTROUTING -s 10.2.0.0/24 -d 10.1.0.0/24 -m policy --dir out --pol ipsec -j ACCEPT\n[0:0] -A neutron-vpn-agen-PO
@pmichali
pmichali / included-code
Created June 10, 2013 22:05
included with modal dialog
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
{% block form_id %}create_network_form{% endblock %}
{% block form_action %}{% url horizon:admin:nexus1000v:create_network_profile %}{% endblock %}
{% block modal_id %}create_network_modal{% endblock %}
{% block modal-header %}{% trans "Create Network Profile" %}{% endblock %}
{% block modal-body %}
@pmichali
pmichali / conditional-fields
Created June 10, 2013 21:46
Conditional fields based on another
{% extends 'base.html' %}
{% load i18n %}
{% block title %}{% trans "Create Network" %}{% endblock %}
{% block page_header %}
{% include "horizon/common/_page_header.html" with title=_("Create Network Profile") %}
{% endblock page_header %}
{% block main %}
{% include "admin/nexus1000v/_create_network_profile.html" %}