mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Fix service-loadbalancer e2e tests
This commit is contained in:
parent
d802138c1f
commit
6ee3fc8297
@ -16,8 +16,6 @@ spec:
|
|||||||
app: service-loadbalancer
|
app: service-loadbalancer
|
||||||
version: v1
|
version: v1
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
|
||||||
role: loadbalancer
|
|
||||||
containers:
|
containers:
|
||||||
- image: gcr.io/google_containers/servicelb:0.1
|
- image: gcr.io/google_containers/servicelb:0.1
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
20
test/e2e/testing-manifests/netexecrc.yaml
Normal file
20
test/e2e/testing-manifests/netexecrc.yaml
Normal 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
|
15
test/e2e/testing-manifests/netexecsvc.yaml
Normal file
15
test/e2e/testing-manifests/netexecsvc.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user