mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
|
|
- name: Searx deployment
|
||
|
|
k8s:
|
||
|
|
namespace: default
|
||
|
|
state: present
|
||
|
|
definition:
|
||
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: searx
|
||
|
|
spec:
|
||
|
|
replicas: 2
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app: searx
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app: searx
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: searx
|
||
|
|
image: wonderfall/searx:latest
|
||
|
|
imagePullPolicy: IfNotPresent
|
||
|
|
ports:
|
||
|
|
- containerPort: 8888
|
||
|
|
livenessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /
|
||
|
|
port: 8888
|
||
|
|
readinessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /
|
||
|
|
port: 8888
|
||
|
|
|
||
|
|
- name: Searx service
|
||
|
|
k8s:
|
||
|
|
namespace: default
|
||
|
|
state: present
|
||
|
|
definition:
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: searx
|
||
|
|
spec:
|
||
|
|
type: ClusterIP
|
||
|
|
ports:
|
||
|
|
- port: 80
|
||
|
|
targetPort: 8888
|
||
|
|
selector:
|
||
|
|
app: searx
|