From 324dee6850fbe0e07719a10420c4b266c95e559a Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 18 Sep 2022 17:55:35 +0200 Subject: [PATCH] +hostnetwork test Signed-off-by: Nico Schottelius --- generic/hostnetwork.yaml | 9 +++++++++ generic/ingress-test.yaml | 14 ++++++++++++-- generic/nginx-test-deployment.yaml | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 generic/hostnetwork.yaml diff --git a/generic/hostnetwork.yaml b/generic/hostnetwork.yaml new file mode 100644 index 0000000..6a639e1 --- /dev/null +++ b/generic/hostnetwork.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Pod +metadata: + name: influxdb +spec: + hostNetwork: true + containers: + - name: influxdb + image: influxdb diff --git a/generic/ingress-test.yaml b/generic/ingress-test.yaml index 8ea99b6..9505897 100644 --- a/generic/ingress-test.yaml +++ b/generic/ingress-test.yaml @@ -38,7 +38,17 @@ metadata: spec: ingressClassName: nginx rules: - - host: 2022-08-01.cdn.hjk.li + - host: big.cdn.hjk.li + http: + paths: + - path: /(images|videos)/.* + pathType: Prefix + backend: + service: + name: nginx-test-service + port: + number: 80 + - host: dynamic.cdn.hjk.li http: paths: - path: / @@ -78,7 +88,7 @@ spec: name: nginx-test-service port: number: 80 - - host: 2022-08-02.cdnv4.hjk.li + - host: "*.cdnv4.hjk.li" http: paths: - path: / diff --git a/generic/nginx-test-deployment.yaml b/generic/nginx-test-deployment.yaml index df9b02b..1ac7165 100644 --- a/generic/nginx-test-deployment.yaml +++ b/generic/nginx-test-deployment.yaml @@ -6,7 +6,7 @@ spec: selector: matchLabels: app: nginx - replicas: 6 + replicas: 2 template: metadata: labels: