67 lines
1.1 KiB
YAML
67 lines
1.1 KiB
YAML
|
kind: Ingress
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
metadata:
|
||
|
name: example.com
|
||
|
namespace: testing
|
||
|
|
||
|
spec:
|
||
|
rules:
|
||
|
- http:
|
||
|
paths:
|
||
|
- path: /bar
|
||
|
backend:
|
||
|
service:
|
||
|
name: service-bar
|
||
|
port:
|
||
|
number: 8080
|
||
|
pathType: Prefix
|
||
|
- path: /foo
|
||
|
backend:
|
||
|
service:
|
||
|
name: service-foo
|
||
|
port:
|
||
|
number: 8080
|
||
|
pathType: Prefix
|
||
|
|
||
|
---
|
||
|
kind: Service
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: service-bar
|
||
|
namespace: testing
|
||
|
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: 8080
|
||
|
clusterIP: "fc00:f853:ccd:e793::1"
|
||
|
type: ClusterIP
|
||
|
|
||
|
---
|
||
|
kind: Service
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: service-foo
|
||
|
namespace: testing
|
||
|
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: 8080
|
||
|
type: ExternalName
|
||
|
externalName: "2001:0db8:3c4d:0015:0000:0000:1a2f:2a3b"
|
||
|
|
||
|
---
|
||
|
kind: Endpoints
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: service-bar
|
||
|
namespace: testing
|
||
|
|
||
|
subsets:
|
||
|
- addresses:
|
||
|
- ip: "2001:0db8:3c4d:0015:0000:0000:1a2f:1a2b"
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: 8080
|