k8s-playground/staticpage-ingress.yaml

28 lines
443 B
YAML
Raw Normal View History

2019-05-19 11:37:13 +00:00
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: /