mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
42 lines
747 B
YAML
42 lines
747 B
YAML
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: router-svc
|
|
spec:
|
|
ports:
|
|
- protocol: TCP
|
|
port: 443
|
|
targetPort: 443
|
|
---
|
|
kind: Endpoints
|
|
apiVersion: v1
|
|
metadata:
|
|
name: router-svc
|
|
subsets:
|
|
- addresses:
|
|
- ip: 192.168.1.1
|
|
ports:
|
|
- port: 443
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress-rules
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- secretName: san-ioot-xyz
|
|
hosts:
|
|
- router.ioot.xyz
|
|
rules:
|
|
- host: router.ioot.xyz
|
|
http:
|
|
paths:
|
|
- pathType: ImplementationSpecific
|
|
backend:
|
|
service:
|
|
name: router-svc
|
|
port:
|
|
number: 443
|