Skip to content

Instantly share code, notes, and snippets.

View kelseyhightower's full-sized avatar

Kelsey Hightower kelseyhightower

View GitHub Profile
[Unit]
Description=Kubernetes Controller Manager
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
[Service]
ExecStart=/usr/bin/kube-controller-manager \
--master=http://127.0.0.1:8080 \
--v=2
Restart=on-failure
RestartSec=5
[Unit]
Description=etcd
Documentation=https://github.com/coreos/etcd
[Service]
ExecStart=/usr/bin/etcd \
--advertise-client-urls http://127.0.0.1:2379 \
--data-dir /var/lib/etcd \
--listen-client-urls http://127.0.0.1:2379 \
--listen-peer-urls http://127.0.0.1:2380 \
[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
[Service]
ExecStart=/usr/bin/kube-apiserver \
--insecure-bind-address=0.0.0.0 \
--etcd-servers=http://127.0.0.1:2379 \
--service-cluster-ip-range=10.200.20.0/24
Restart=on-failure
[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
[Service]
ExecStartPre=/usr/bin/mkdir -p /opt/bin
ExecStartPre=/usr/bin/curl https://kuar.io/kube-apiserver \
-o /opt/bin/kube-apiserver \
-z /opt/bin/kube-apiserver
ExecStartPre=/usr/bin/chmod +x /opt/bin/kube-apiserver
var fileDescriptor0 = []byte{
// 234 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x90, 0xcd, 0x4a, 0x03, 0x41,
0x10, 0x84, 0xd9, 0xd9, 0x9f, 0x24, 0x2d, 0x8a, 0x8c, 0x22, 0x8d, 0xa7, 0xe0, 0x29, 0xa7, 0x15,
0xf4, 0x22, 0x7a, 0xf6, 0xe8, 0x65, 0xc1, 0x07, 0x18, 0x4d, 0x83, 0x83, 0xd9, 0x1f, 0x66, 0x3b,
0xca, 0xfa, 0x58, 0x3e, 0xa1, 0xd3, 0x3d, 0x59, 0x21, 0xb7, 0xfa, 0x6a, 0x9a, 0x2a, 0xa6, 0x00,
0xf6, 0x23, 0x85, 0x7a, 0x08, 0x3d, 0xf7, 0x37, 0xbf, 0x06, 0x8a, 0xd7, 0x88, 0xf6, 0x0c, 0x8c,
0xdf, 0x62, 0xb6, 0xce, 0x36, 0x65, 0x13, 0x95, 0xb5, 0x50, 0x74, 0xae, 0x25, 0x34, 0xd1, 0x59,
0x35, 0xaa, 0xed, 0x25, 0x94, 0xd4, 0x3a, 0xbf, 0xc3, 0x5c, 0xcd, 0x04, 0x16, 0x61, 0xc1, 0xdf,
0x9e, 0x99, 0x02, 0x16, 0xea, 0xcf, 0x68, 0xaf, 0xa0, 0x1a, 0x39, 0x10, 0x31, 0x96, 0xfa, 0x70,
syntax = "proto3";
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
message HelloRequest {
string name = 1;
}

$ go get -v -u github.com/cloudflare/cfssl/cmd/cfssl

github.com/cloudflare/cfssl (download) Fetching https://golang.org/x/crypto/pkcs12?go-get=1 Parsing meta tags from https://golang.org/x/crypto/pkcs12?go-get=1 (status code 200) get "golang.org/x/crypto/pkcs12": found meta tag main.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/pkcs12?go-get=1 get "golang.org/x/crypto/pkcs12": verifying non-authoritative meta tag Fetching https://golang.org/x/crypto?go-get=1 Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)

job "go" {
datacenters = ["dc1"]
task "webservice" {
driver = "exec"
resources {
cpu = 100
memory = 10
}
network {
port "http" {
$ goapp deploy -application hightowerlabs app.yaml
03:19 PM Host: appengine.google.com
03:19 PM Application: hightowerlabs (was: helloworld); version: 1
03:19 PM
Starting update of app: hightowerlabs, version: 1
03:19 PM Getting current resource limits.
2016-01-06 15:19:01,596 ERROR appcfg.py:2455 An error occurred processing file '': HTTP Error 403: Forbidden Unexpected HTTP status 403. Aborting.
Error 403: --- begin server output ---
You do not have permission to modify this app (app_id=u's~hightowerlabs').
--- end server output ---
package main
import (
"database/sql"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net"
"os"