+hostnetwork test
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
fa5e3c38ad
commit
324dee6850
3 changed files with 22 additions and 3 deletions
9
generic/hostnetwork.yaml
Normal file
9
generic/hostnetwork.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: influxdb
|
||||||
|
spec:
|
||||||
|
hostNetwork: true
|
||||||
|
containers:
|
||||||
|
- name: influxdb
|
||||||
|
image: influxdb
|
|
@ -38,7 +38,17 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
rules:
|
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:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
@ -78,7 +88,7 @@ spec:
|
||||||
name: nginx-test-service
|
name: nginx-test-service
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
- host: 2022-08-02.cdnv4.hjk.li
|
- host: "*.cdnv4.hjk.li"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|
|
@ -6,7 +6,7 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: nginx
|
app: nginx
|
||||||
replicas: 6
|
replicas: 2
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
Loading…
Reference in a new issue