Skip to content

Instantly share code, notes, and snippets.

Create 2 instances of this pod:
```
apiVersion: v1
kind: Pod
metadata:
name: netserver-4
namespace: default
spec:
containers:
- command:
apiVersion: v1
kind: Service
metadata:
labels:
app: echoheaders
name: echoheaders
spec:
# Type NodePort is essentially a request 30301 on every Node in your cluster
type: NodePort
ports:
```yaml
apiVersion: v1
kind: Service
metadata:
name: echoheadersx
labels:
app: echoheaders
spec:
type: NodePort
ports:
# This file uses golang text templates (http://golang.org/pkg/text/template/) to
# dynamically configure the haproxy loadbalancer.
global
daemon
stats socket /tmp/haproxy
defaults
log global
var dc = dockerClient{*docker.ArgDockerEndpoint}
type dockerClient struct {
endpoint string
c *dclient
lock mutex
}
func (d *dockerClient) getClient() (client, err) {
d.Lock()
In test/e2e/testing-manifests/netexec/
netexecrc.yaml
```yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: netexec
spec:
# Assumes you have 3 nodes in your cluster.
```yaml
apiVersion: v1
kind: Service
metadata:
name: echoheadersx
labels:
app: echoheaders
spec:
type: NodePort
ports:
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]
a. pathmap
apiVersion: v1
kind: PathMap
metadata:
name: echomap
spec:
host: echo
pathMap:
"echo.foo.com":
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"
)