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
I0122 11:19:50.919737 3399 config.go:412] Receiving a new pod "daemonrestart10-e44fe05e-c0f9-11e5-a7e6-ac162d075328-go7lw_e2e-tests-daemonrestart-9gi0h(0d81a7f0-c0fa-11e5-a227-42010af00002)" | |
I0122 11:19:50.922752 3399 kubelet.go:2289] SyncLoop (ADD, "api"): "daemonrestart10-e44fe05e-c0f9-11e5-a7e6-ac162d075328-go7lw_e2e-tests-daemonrestart-9gi0h(0d81a7f0-c0fa-11e5-a227-42010af00002)" | |
I0122 11:19:51.308004 3399 kubelet.go:2292] SyncLoop (UPDATE, "api"): "daemonrestart10-e44fe05e-c0f9-11e5-a7e6-ac162d075328-go7lw_e2e-tests-daemonrestart-9gi0h(0d81a7f0-c0fa-11e5-a227-42010af00002)" | |
I0122 11:19:51.373171 3399 kubelet.go:1701] Reusing api pod status for new pod "daemonrestart10-e44fe05e-c0f9-11e5-a7e6-ac162d075328-go7lw_e2e-tests-daemonrestart-9gi0h(0d81a7f0-c0fa-11e5-a227-42010af00002)" | |
I0122 11:19:51.373190 3399 manager.go:1657] Syncing Pod "daemonrestart10-e44fe05e-c0f9-11e5-a7e6-ac162d075328-go7lw_e2e-tests-daemonrestart-9gi0h(0d81a7f0-c0fa-11e5-a227-42010af00002)": &{TypeMeta:{Kind: APIVersion: |
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
16:57:52-beeps~/goproj/src/k8s.io/contrib/service-loadbalancer] (master)$ make | |
CGO_ENABLED=0 GOOS=linux godep go build -a -installsuffix cgo -ldflags '-w' -o service_loadbalancer ./service_loadbalancer.go ./loadbalancer_log.go | |
docker build -t contrib-haproxy:0.0 build | |
Sending build context to Docker daemon 9.216 kB | |
Step 1 : FROM alpine:3.2 | |
---> 8a648f689ddb | |
Step 2 : RUN apk -U add alpine-sdk | |
---> Using cache | |
---> 5c5a490ddf56 | |
Step 3 : RUN mkdir -p /var/cache/distfiles && adduser -D packager && addgroup packager abuild && chgrp abuild /var/cache/distfiles && chmod g+w /var/cache/distfiles && echo "packager ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers |
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
Create 2 instances of this pod: | |
``` | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: netserver-4 | |
namespace: default | |
spec: | |
containers: | |
- command: |
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: | |
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 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
# 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 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
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 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
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 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: |