aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/searx/searx-deployment.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/searx/searx-deployment.yaml')
-rw-r--r--kubernetes/searx/searx-deployment.yaml47
1 files changed, 47 insertions, 0 deletions
diff --git a/kubernetes/searx/searx-deployment.yaml b/kubernetes/searx/searx-deployment.yaml
new file mode 100644
index 0000000..d71c383
--- /dev/null
+++ b/kubernetes/searx/searx-deployment.yaml
@@ -0,0 +1,47 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: searx
+ labels:
+ app: searx
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: searx
+ template:
+ metadata:
+ labels:
+ app: searx
+ spec:
+ containers:
+ - name: searx
+ image: searx/searx:1.0.0-297-f2f72575
+ ports:
+ - containerPort: 8080
+ env:
+ - name: BASE_URL
+ valueFrom:
+ secretKeyRef:
+ name: searx-configmap
+ key: searx-base-url
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: pihole-service
+spec:
+ selector:
+ app: pihole
+ type: NodePort
+ ports:
+ - protocol: TCP
+ port: 8080
+ targetPort: 8080
+ nodePort: 30501
+ name: "searx-tcp-8080"
+ - protocol: UDP
+ port: 8080
+ targetPort: 8080
+ nodePort: 30501
+ name: "searx-udp-8080"