aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/searx/searx-deployment.yaml
blob: 256ea2b42da1fbc1170917d53133ef359b50b67f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: avpnusr/searx:07-11-2021
        ports:
        - containerPort: 8080
        env:
        - name: BASE_URL
          valueFrom:
            configMapKeyRef:
              name: searx-configmap
              key: searx-base-url
---
apiVersion: v1
kind: Service
metadata:
  name: searx-service
spec:
  selector:
    app: searx
  type: LoadBalancer
  ports:
    - protocol: TCP
      port: 27080
      targetPort: 8080
      nodePort: 30501
      name: "searx-tcp-8080"
    # - protocol: UDP
    #   port: 8080
    #   targetPort: 8080
    #   nodePort: 30501
    #   name: "searx-udp-8080"