add ingress definition
This commit is contained in:
parent
326684292d
commit
c6fb50fc4b
16
deployment/iotbox-ingress.yaml
Normal file
16
deployment/iotbox-ingress.yaml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: iotbox
|
||||||
|
name: iotbox
|
||||||
|
namespace: pos
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: iotbox
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: iotbox
|
||||||
|
servicePort: 80
|
|
@ -7,11 +7,8 @@ metadata:
|
||||||
namespace: pos
|
namespace: pos
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "8070"
|
- name: http
|
||||||
port: 8070
|
port: 80
|
||||||
targetPort: 8069
|
targetPort: 8069
|
||||||
- name: "8072"
|
|
||||||
port: 8072
|
|
||||||
targetPort: 8072
|
|
||||||
selector:
|
selector:
|
||||||
app: iotbox
|
app: iotbox
|
||||||
|
|
16
deployment/odoo-ingress.yaml
Normal file
16
deployment/odoo-ingress.yaml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: odoo
|
||||||
|
name: odoo
|
||||||
|
namespace: pos
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: pos
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: odoo
|
||||||
|
servicePort: 80
|
Reference in a new issue