Ingress play
This commit is contained in:
parent
2f4eacb9ed
commit
e6eb739475
@ -22,7 +22,7 @@ spec:
|
|||||||
cpu: "1000m"
|
cpu: "1000m"
|
||||||
env:
|
env:
|
||||||
- name: BASE_URL
|
- name: BASE_URL
|
||||||
value: http://10.0.2.6:30314
|
value: https://searxng.roxedus.com
|
||||||
- name: INSTANCE_NAME
|
- name: INSTANCE_NAME
|
||||||
value: Roxedus.com
|
value: Roxedus.com
|
||||||
envFrom:
|
envFrom:
|
||||||
@ -49,13 +49,28 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: searxng
|
name: searxng
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
selector:
|
selector:
|
||||||
app: searxng
|
app: searxng
|
||||||
ports:
|
ports:
|
||||||
- port: 8080
|
- port: 8080
|
||||||
targetPort: 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
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user