Ingress play

This commit is contained in:
Simen Røstvik 2022-11-15 10:41:03 +01:00
parent 2f4eacb9ed
commit e6eb739475
2 changed files with 18 additions and 18 deletions

View File

@ -22,7 +22,7 @@ spec:
cpu: "1000m"
env:
- name: BASE_URL
value: http://10.0.2.6:30314
value: https://searxng.roxedus.com
- name: INSTANCE_NAME
value: Roxedus.com
envFrom:
@ -49,13 +49,28 @@ kind: Service
metadata:
name: searxng
spec:
type: NodePort
type: ClusterIP
selector:
app: searxng
ports:
- port: 8080
targetPort: 8080
nodePort: 30314
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: searxng
namespace: searxng
spec:
entryPoints:
- web
routes:
- kind: Rule
match: Host(`searxng.roxedus.com`)
priority: 10
services:
- name: searxng
port: 8080
---
apiVersion: v1
kind: ConfigMap

View File

@ -1,15 +0,0 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
annotations:
name: traefik-dash
namespace: traefik
spec:
entryPoints:
- web
routes:
- kind: Rule
match: Host(`traefik.roxedus.com`) && ( PathPrefix(`/dashboard`) || PathPrefix(`/api`))
services:
- kind: TraefikService
name: api@internal