28 lines
443 B
YAML
28 lines
443 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: web-service
|
|
namespace: testsite
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 80
|
|
selector:
|
|
app: web-backend
|
|
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: testsite-ingress
|
|
namespace: testsite
|
|
spec:
|
|
rules:
|
|
- host: test.k.zknt.org
|
|
http:
|
|
paths:
|
|
- backend:
|
|
serviceName: web-service
|
|
servicePort: 80
|
|
path: /
|