From 7bdc55a0875e1fd63889be6edbb969e3b1c58bfe Mon Sep 17 00:00:00 2001 From: Minhan Xia Date: Wed, 18 Oct 2017 16:49:33 -0700 Subject: [PATCH] add manifest for NEG e2e test --- test/e2e/testing-manifests/ingress/neg/ing.yaml | 8 ++++++++ test/e2e/testing-manifests/ingress/neg/rc.yaml | 17 +++++++++++++++++ test/e2e/testing-manifests/ingress/neg/svc.yaml | 15 +++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 test/e2e/testing-manifests/ingress/neg/ing.yaml create mode 100644 test/e2e/testing-manifests/ingress/neg/rc.yaml create mode 100644 test/e2e/testing-manifests/ingress/neg/svc.yaml diff --git a/test/e2e/testing-manifests/ingress/neg/ing.yaml b/test/e2e/testing-manifests/ingress/neg/ing.yaml new file mode 100644 index 00000000000..e266d98516e --- /dev/null +++ b/test/e2e/testing-manifests/ingress/neg/ing.yaml @@ -0,0 +1,8 @@ +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: hostname +spec: + backend: + serviceName: hostname + servicePort: 80 \ No newline at end of file diff --git a/test/e2e/testing-manifests/ingress/neg/rc.yaml b/test/e2e/testing-manifests/ingress/neg/rc.yaml new file mode 100644 index 00000000000..717b61b0541 --- /dev/null +++ b/test/e2e/testing-manifests/ingress/neg/rc.yaml @@ -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 \ No newline at end of file diff --git a/test/e2e/testing-manifests/ingress/neg/svc.yaml b/test/e2e/testing-manifests/ingress/neg/svc.yaml new file mode 100644 index 00000000000..3a0be750a21 --- /dev/null +++ b/test/e2e/testing-manifests/ingress/neg/svc.yaml @@ -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 \ No newline at end of file