61 lines
1.1 KiB
YAML
61 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kiwix
|
|
namespace: ingress-nginx
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
protocol: TCP
|
|
targetPort: 8080
|
|
clusterIP: None
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
apiVersion: discovery.k8s.io/v1
|
|
kind: EndpointSlice
|
|
metadata:
|
|
name: kiwix
|
|
namespace: ingress-nginx
|
|
labels:
|
|
kubernetes.io/service-name: kiwix
|
|
addressType: IPv4
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 8080
|
|
endpoints:
|
|
- addresses:
|
|
- "192.168.1.178"
|
|
conditions:
|
|
ready: true
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: kiwix
|
|
namespace: ingress-nginx
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
|
|
cert-manager.io/cluster-issuer: "letsencrypt-cluster-issuer"
|
|
spec:
|
|
ingressClassName: "nginx"
|
|
tls:
|
|
- secretName: kiwix-tls
|
|
hosts:
|
|
- wiki.keligrubb.com
|
|
rules:
|
|
- host: wiki.keligrubb.com
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: kiwix
|
|
port:
|
|
number: 80
|