mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
add manifest for NEG e2e test
This commit is contained in:
parent
23ff1bb704
commit
7bdc55a087
8
test/e2e/testing-manifests/ingress/neg/ing.yaml
Normal file
8
test/e2e/testing-manifests/ingress/neg/ing.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: hostname
|
||||||
|
spec:
|
||||||
|
backend:
|
||||||
|
serviceName: hostname
|
||||||
|
servicePort: 80
|
17
test/e2e/testing-manifests/ingress/neg/rc.yaml
Normal file
17
test/e2e/testing-manifests/ingress/neg/rc.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
run: hostname
|
||||||
|
name: hostname
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
run: hostname
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: gcr.io/kubernetes-e2e-test-images/serve-hostname-amd64:1.1
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: hostname
|
||||||
|
terminationGracePeriodSeconds: 120
|
15
test/e2e/testing-manifests/ingress/neg/svc.yaml
Normal file
15
test/e2e/testing-manifests/ingress/neg/svc.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: hostname
|
||||||
|
annotations:
|
||||||
|
alpha.cloud.google.com/load-balancer-neg: "true"
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 9376
|
||||||
|
selector:
|
||||||
|
run: hostname
|
||||||
|
sessionAffinity: None
|
||||||
|
type: NodePort
|
Loading…
Reference in New Issue
Block a user