Merge pull request #15513 from aledbf/fix-serviceloadbalancer-tests

Auto commit by PR queue bot
pull/6/head
k8s-merge-robot 2015-10-13 01:27:53 -07:00
commit b0d5738936
3 changed files with 35 additions and 2 deletions

View File

@ -16,8 +16,6 @@ spec:
app: service-loadbalancer
version: v1
spec:
nodeSelector:
role: loadbalancer
containers:
- image: gcr.io/google_containers/servicelb:0.1
imagePullPolicy: Always

View File

@ -0,0 +1,20 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: netexec
spec:
# Assumes you have 3 nodes in your cluster.
replicas: 3
template:
metadata:
labels:
app: netexec
spec:
containers:
- name: netexec
image: gcr.io/google_containers/netexec:1.0
ports:
- containerPort: 8080
# This is to force these pods to land on different hosts.
# TODO: use the downward api and get podname instead.
hostPort: 81

View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: netexec
labels:
app: netexec
spec:
Type: NodePort
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: netexec