chore(kavita): add service and ingress
This commit is contained in:
parent
2997a4c315
commit
d6595344f1
3 changed files with 39 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ spec:
|
||||||
io.kompose.network/ebooks-default: "true"
|
io.kompose.network/ebooks-default: "true"
|
||||||
io.kompose.network/public: "true"
|
io.kompose.network/public: "true"
|
||||||
io.kompose.service: kavita
|
io.kompose.service: kavita
|
||||||
|
app.kubernetes.io/name: kavita
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
|
|
|
||||||
23
apps/kavita/kavita-ingress.yaml
Normal file
23
apps/kavita/kavita-ingress.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: kavita
|
||||||
|
labels:
|
||||||
|
name: kavita
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: library.nc.landry.land
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: kavita
|
||||||
|
port:
|
||||||
|
number: 5000
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
||||||
|
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- library.nc.landry.land
|
||||||
|
secretName: kavita-tls
|
||||||
15
apps/kavita/kavita-service.yaml
Normal file
15
apps/kavita/kavita-service.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: kavita
|
||||||
|
labels:
|
||||||
|
name: kavita
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 5000
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: kavita
|
||||||
|
#publishNotReadyAddresses: true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue