This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```yaml | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: echoheadersx | |
labels: | |
app: echoheaders | |
spec: | |
type: NodePort | |
ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-node4$ docker -H unix:///var/run/docker-bootstrap.sock logs <flannel hash> | |
I0922 15:37:18.064265 00001 main.go:275] Installing signal handlers | |
I0922 15:37:18.064656 00001 main.go:189] Using 10.240.0.5 as external interface | |
go-etcd2015/09/22 15:37:18 DEBUG: get /coreos.com/network/config [http://10.240.0.0:4001] | |
go-etcd2015/09/22 15:37:18 DEBUG: Connecting to etcd: attempt 1 for keys/coreos.com/network/config?quorum=false&recursive=false&sorted=false | |
go-etcd2015/09/22 15:37:18 DEBUG: send.request.to http://10.240.0.0:4001/v2/keys/coreos.com/network/config?quorum=false&recursive=false&sorted=false | method GET | |
go-etcd2015/09/22 15:37:18 DEBUG: recv.response.from | |
go-etcd2015/09/22 15:37:18 DEBUG: recv.success | |
go-etcd2015/09/22 15:37:18 DEBUG: get /coreos.com/network/config [http://10.240.0.0:4001] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a. pathmap | |
apiVersion: v1 | |
kind: PathMap | |
metadata: | |
name: echomap | |
spec: | |
host: echo | |
pathMap: | |
"echo.foo.com": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"k8s.io/kubernetes/pkg/api" | |
client "k8s.io/kubernetes/pkg/client/unversioned" | |
"k8s.io/kubernetes/pkg/fields" | |
"k8s.io/kubernetes/pkg/labels" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "Pod", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "clusterapi-tester" | |
}, | |
"spec": { | |
"containers": [ | |
{ | |
"name": "clusterapi", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: mysvc | |
labels: | |
app: nginx | |
spec: | |
ports: | |
- port: 80 | |
protocol: TCP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expectations := map[pod]event | |
DockerWatcher { | |
Add: func(new obj) { | |
pod := inspect(new) | |
dockerCache.Insert(pod) | |
updateExpectations(pod, Add) | |
client.UpdateStatus(pod.status) | |
}, | |
Del: func(del obj) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"log" | |
"math" | |
"runtime" | |
"time" | |
) | |
func timeLeaker() { | |
tick := time.Tick(1) | |
<-tick |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WARNING: DATA RACE | |
Read by goroutine 79: | |
github.com/GoogleCloudPlatform/kubernetes/pkg/capabilities.Get() | |
/usr/local/google/home/beeps/goproj/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/capabilities/capabilities.go:58 +0x44 | |
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.canRunPod() | |
/usr/local/google/home/beeps/goproj/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/util.go:53 +0x23e | |
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Kubelet).syncPod() | |
/usr/local/google/home/beeps/goproj/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/kubelet.go:1123 +0x1c5 | |
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.*Kubelet.(github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.syncPod)·fm() | |
/usr/local/google/home/beeps/goproj/src/github.com/GoogleCloudPlatform/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"log":"=\u003e About to create the following database: k8s;grafana\n","stream":"stdout","time":"2015-06-15T12:10:53.621206606Z"} | |
{"log":"=\u003e Starting InfluxDB ...\n","stream":"stdout","time":"2015-06-15T12:10:53.621378754Z"} | |
{"log":"=\u003e Waiting for confirmation of InfluxDB service startup ...\n","stream":"stdout","time":"2015-06-15T12:10:53.630270609Z"} | |
{"log":"\n","stream":"stdout","time":"2015-06-15T12:10:53.635849723Z"} | |
{"log":"+---------------------------------------------+\n","stream":"stdout","time":"2015-06-15T12:10:53.635866398Z"} | |
{"log":"| _____ __ _ _____ ____ |\n","stream":"stdout","time":"2015-06-15T12:10:53.63587059Z"} | |
{"log":"| |_ _| / _| | | __ \\| _ \\ |\n","stream":"stdout","time":"2015-06-15T12:10:53.635873918Z"} | |
{"log":"| | | _ __ | |_| |_ ___ _| | | | |_) | |\n","stream":"stdout","time":"2015-06-15T12:10:53.63587747Z"} | |
{"log":"| | | | '_ \\| _| | | | \\ \\/ / | | | _ \u003c |\n","stream":"stdout","time":"2015-06-15T12:10:53.635 |