Add searxng

main
trivernis 1 year ago
parent 76aa1c5341
commit bf575c05df
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -1,7 +1,15 @@
apiVersion: v1
kind: Namespace
metadata:
name: plantwiki
labels:
name: plantwiki
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: plantwiki name: plantwiki
namespace: plantwiki
spec: spec:
replicas: 1 replicas: 1
selector: selector:
@ -23,6 +31,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: plantwiki-srv name: plantwiki-srv
namespace: plantwiki
spec: spec:
ports: ports:
- port: 80 - port: 80
@ -36,6 +45,7 @@ apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: plantwiki-route name: plantwiki-route
namespace: plantwiki
spec: spec:
entryPoints: entryPoints:
- web - web

File diff suppressed because it is too large Load Diff

@ -0,0 +1,107 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: searxng
namespace: searxng
spec:
replicas: 1
selector:
matchLabels:
app: searxng
template:
metadata:
labels:
app: searxng
spec:
containers:
- image: docker.io/searxng/searxng:latest
name: searxng
env:
- name: SEARXNG_BASE_URL
value: https://search.trivernis.dev
- name: SEARXNG_INSTANCE_NAME
value: trivial
- name: SEARXNG_PORT
value: "8080"
- name: SEARXNG_REDIS_URL
value: redis://redis-srv:6379
volumeMounts:
- name: config-volume
mountPath: /etc/searxng
ports:
- name: port-searxng
containerPort: 80
volumes:
- name: config-volume
configMap:
name: searxng-config
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
namespace: searxng
spec:
replicas: 1
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
spec:
containers:
- image: docker.io/redis:alpine
name: redis
ports:
- name: port-redis
containerPort: 6379
---
apiVersion: v1
kind: Service
metadata:
name: redis-srv
namespace: searxng
spec:
ports:
- port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: searxng-srv
namespace: searxng
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: searxng
type: ClusterIP
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: searxng-route
namespace: searxng
spec:
entryPoints:
- web
routes:
- match: Host(`search.trivernis.dev`)
kind: Rule
services:
- name: searxng-srv
port: 8080
- match: Host(`search.trivernis.net`)
kind: Rule
services:
- name: searxng-srv
port: 8080

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: searxng
labels:
name: searxng

@ -8,4 +8,6 @@ apt update && apt upgrade -y
reboot reboot
apt install apparmor apparmor-utils -y apt install apparmor apparmor-utils -y
``` ```
Follow https://community.hetzner.com/tutorials/k3s-glusterfs-loadbalancer Follow https://community.hetzner.com/tutorials/k3s-glusterfs-loadbalancer
For Storage use https://github.com/hetznercloud/csi-driver/blob/main/docs/kubernetes/README.md
Loading…
Cancel
Save