Skip to content

Commit

Permalink
another test case to k8s ingress
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Abdelrahman <mustafa.abdelrahman@zalando.de>
  • Loading branch information
MustafaSaber committed Nov 1, 2024
1 parent fab59f1 commit 8027b99
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kube_foo__qux____example_org_____qux:
Host("^(*[.]example[.]org[.]?(:[0-9]+)?)$") && PathSubtree("/")
-> <roundRobin, "http://10.2.9.103:8080", "http://10.2.9.104:8080">;
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: qux
namespace: foo
spec:
rules:
- host: "*.example.org"
http:
paths:
- path: "/"
pathType: Prefix
backend:
service:
name: qux
port:
name: baz
---
apiVersion: v1
kind: Service
metadata:
name: qux
namespace: foo
spec:
clusterIP: 10.3.190.97
ports:
- name: baz
port: 8181
protocol: TCP
targetPort: 8080
selector:
application: myapp
type: ClusterIP
---
apiVersion: v1
kind: Endpoints
metadata:
labels:
application: myapp
name: qux
namespace: foo
subsets:
- addresses:
- ip: 10.2.9.103
- ip: 10.2.9.104
ports:
- name: baz
port: 8080
protocol: TCP

0 comments on commit 8027b99

Please sign in to comment.