This file contains 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
Create 2 instances of this pod: | |
``` | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: netserver-4 | |
namespace: default | |
spec: | |
containers: | |
- command: |
This file contains 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: | |
labels: | |
app: echoheaders | |
name: echoheaders | |
spec: | |
# Type NodePort is essentially a request 30301 on every Node in your cluster | |
type: NodePort | |
ports: |
This file contains 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 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
# 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 |
This file contains 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
var dc = dockerClient{*docker.ArgDockerEndpoint} | |
type dockerClient struct { | |
endpoint string | |
c *dclient | |
lock mutex | |
} | |
func (d *dockerClient) getClient() (client, err) { | |
d.Lock() |
This file contains 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
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. |
This file contains 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 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 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 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" | |
) |