54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: proxy-service-kpn
|
|
namespace: proxies
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 5000
|
|
name: http
|
|
---
|
|
apiVersion: discovery.k8s.io/v1
|
|
kind: EndpointSlice
|
|
metadata:
|
|
name: proxy-service-kpn
|
|
labels:
|
|
# You should set the "kubernetes.io/service-name" label.
|
|
# Set its value to match the name of the Service
|
|
kubernetes.io/service-name: proxy-service-kpn
|
|
addressType: IPv4
|
|
ports:
|
|
- name: ''
|
|
appProtocol: http
|
|
protocol: TCP
|
|
port: 80
|
|
endpoints:
|
|
- addresses:
|
|
- "192.168.1.254"
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress-route-kpn
|
|
namespace: proxies
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- kpn.jsnet.io
|
|
secretName: tls-secret-kpn
|
|
rules:
|
|
- host: kpn.jsnet.io
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: ImplementationSpecific
|
|
backend:
|
|
service:
|
|
name: proxy-service-kpn
|
|
port:
|
|
number: 80
|