Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions deploy/tests/e2e/namespace-selector/config/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: http-echo
spec:
replicas: 1
selector:
matchLabels:
app: http-echo
template:
metadata:
labels:
app: http-echo
spec:
containers:
- name: http-echo
image: haproxytech/http-echo:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8888
protocol: TCP
---
kind: Service
apiVersion: v1
metadata:
name: http-echo
spec:
ports:
- name: http
protocol: TCP
port: 80
targetPort: http
selector:
app: http-echo
18 changes: 18 additions & 0 deletions deploy/tests/e2e/namespace-selector/config/ingress.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: http-echo
spec:
ingressClassName: haproxy
rules:
- host: {{ .Host }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: http-echo
port:
name: http
16 changes: 16 additions & 0 deletions deploy/tests/e2e/namespace-selector/config/late-tcp.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: ingress.v1.haproxy.org/v1
kind: TCP
metadata:
name: namespace-selector-late-tcp
annotations:
ingress.class: haproxy
spec:
- name: {{ .Namespace }}-late-http
frontend:
name: {{ .Namespace }}-late-http
binds:
- name: v4
port: {{ .Port }}
service:
name: http-echo
port: 80
17 changes: 17 additions & 0 deletions deploy/tests/e2e/namespace-selector/config/tcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: ingress.v3.haproxy.org/v3
kind: TCP
metadata:
name: namespace-selector-tcp
annotations:
ingress.class: haproxy
spec:
- name: namespace-selector-http
frontend:
name: namespace-selector-http
binds:
v4:
name: v4
port: 32766
service:
name: http-echo
port: 80
Loading