141 lines
2.4 KiB
YAML
141 lines
2.4 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: proxy-service-gw
|
|
namespace: proxies
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 5006
|
|
name: http
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: proxy-service-gwapi
|
|
namespace: proxies
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 5005
|
|
name: http
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: proxy-service-gwauth
|
|
namespace: proxies
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 5000
|
|
name: http
|
|
---
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: proxy-service-gw
|
|
namespace: proxies
|
|
subsets:
|
|
- addresses:
|
|
- ip: 192.168.5.18
|
|
ports:
|
|
- port: 5006
|
|
---
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: proxy-service-gwapi
|
|
namespace: proxies
|
|
subsets:
|
|
- addresses:
|
|
- ip: 192.168.5.18
|
|
ports:
|
|
- port: 5005
|
|
---
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: proxy-service-gwauth
|
|
namespace: proxies
|
|
subsets:
|
|
- addresses:
|
|
- ip: 192.168.5.18
|
|
ports:
|
|
- port: 5000
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress-route-gw
|
|
namespace: proxies
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- gw.jsnet.io
|
|
secretName: tls-secret-gw
|
|
rules:
|
|
- host: gw.jsnet.io
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: proxy-service-gw
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress-route-gwapi
|
|
namespace: proxies
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- gwapi.jsnet.io
|
|
secretName: tls-secret-gwapi
|
|
rules:
|
|
- host: gwapi.jsnet.io
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: proxy-service-gwapi
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress-route-gwauth
|
|
namespace: proxies
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- gwauth.jsnet.io
|
|
secretName: tls-secret-gwauth
|
|
rules:
|
|
- host: gwauth.jsnet.io
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: proxy-service-gwauth
|
|
port:
|
|
number: 80
|