43 lines
828 B
YAML
43 lines
828 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: shlink
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
spec:
|
|
tls:
|
|
- hosts: [s.janky.bot, dl.janky.bot]
|
|
secretName: s.janky.bot
|
|
rules:
|
|
- host: s.janky.bot
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: shlink
|
|
port:
|
|
name: web
|
|
- host: dl.janky.bot
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: shlink
|
|
port:
|
|
name: web
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: shlink
|
|
namespace: shlink
|
|
spec:
|
|
ports:
|
|
- name: web
|
|
port: 8080
|
|
selector:
|
|
app: shlink
|