mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-08 20:15:03 +10:00
Use home made hey search
This commit is contained in:
+31
-32
@@ -1,20 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: searxng-local-pv
|
||||
name: hey-search-local-pv
|
||||
labels:
|
||||
type: local
|
||||
name: searxng
|
||||
name: hey-search
|
||||
spec:
|
||||
capacity:
|
||||
storage: 2Gi
|
||||
storage: 5Gi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Delete
|
||||
storageClassName: local-storage
|
||||
local:
|
||||
path: /mnt/k8s/searxng
|
||||
path: /mnt/k8s/hey-search
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
@@ -29,73 +29,72 @@ apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
namespace: home-apps
|
||||
name: searxng-local-pvc
|
||||
name: hey-search-local-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: "local-storage"
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
storage: 5Gi
|
||||
---
|
||||
# About SearXNG is a free internet metasearch engine
|
||||
# https://github.com/searxng/searxng
|
||||
# https://github.com/wahyd4/hey-search
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: searxng
|
||||
name: hey-search
|
||||
namespace: home-apps
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
- port: 8000
|
||||
targetPort: 8000
|
||||
selector:
|
||||
app: searxng
|
||||
app: hey-search
|
||||
---
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: searxng
|
||||
name: hey-search
|
||||
spec:
|
||||
revisionHistoryLimit: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: searxng
|
||||
app: hey-search
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: searxng
|
||||
app: hey-search
|
||||
spec:
|
||||
containers:
|
||||
- name: searxng
|
||||
image: mirror.gcr.io/searxng/searxng:2026.2.16-8e824017d
|
||||
- name: hey-search
|
||||
image: ghcr.io/wahyd4/hey-search:sha-70b6206
|
||||
env:
|
||||
- name: TZ
|
||||
value: Australia/Melbourne
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
- containerPort: 8000
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/searxng
|
||||
- name: data
|
||||
mountPath: /app/data
|
||||
resources:
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: "2Gi"
|
||||
cpu: "1"
|
||||
memory: "1Gi"
|
||||
requests:
|
||||
cpu: "0.5"
|
||||
memory: "512Mi"
|
||||
cpu: "0.2"
|
||||
memory: "256Mi"
|
||||
volumes:
|
||||
- name: config
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: searxng-local-pvc
|
||||
claimName: hey-search-local-pvc
|
||||
---
|
||||
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: searxng-ingress
|
||||
name: hey-search-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
kubernetes.io/tls-acme: "true"
|
||||
@@ -106,16 +105,16 @@ spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- sear.junv.cc
|
||||
secretName: searxng-tls
|
||||
secretName: hey-search-tls
|
||||
rules:
|
||||
- host: sear.junv.cc
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: searxng
|
||||
name: hey-search
|
||||
port:
|
||||
number: 8080
|
||||
number: 8000
|
||||
path: /
|
||||
pathType: Prefix
|
||||
|
||||
@@ -125,7 +124,7 @@ spec:
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: searxng-short-ingress
|
||||
name: hey-search-short-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
kubernetes.io/tls-acme: "true"
|
||||
@@ -144,7 +143,7 @@ spec:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: searxng
|
||||
name: hey-search
|
||||
port:
|
||||
number: 8080
|
||||
path: /
|
||||
|
||||
Reference in New Issue
Block a user