diff options
| author | terminaldweller <thabogre@gmail.com> | 2022-01-02 19:09:01 +0000 | 
|---|---|---|
| committer | terminaldweller <thabogre@gmail.com> | 2022-01-02 19:09:01 +0000 | 
| commit | 0abd6932a2865263d89139314b64fed72467b1d1 (patch) | |
| tree | e38e2a849f9ca3eb7a0ff119c4b3bc5abab0715c /kubernetes | |
| parent | updates (diff) | |
| download | scripts-0abd6932a2865263d89139314b64fed72467b1d1.tar.gz scripts-0abd6932a2865263d89139314b64fed72467b1d1.zip | |
searx and ipfs, plus local dns
Diffstat (limited to 'kubernetes')
| -rw-r--r-- | kubernetes/ipfs/ipfs-deployment.yaml | 53 | ||||
| -rw-r--r-- | kubernetes/pihole/10-customdns.conf | 8 | ||||
| -rwxr-xr-x | kubernetes/searx/deploy.sh | 8 | ||||
| -rw-r--r-- | kubernetes/searx/searx-configmap.yaml | 6 | ||||
| -rw-r--r-- | kubernetes/searx/searx-deployment.yaml | 47 | 
5 files changed, 122 insertions, 0 deletions
| diff --git a/kubernetes/ipfs/ipfs-deployment.yaml b/kubernetes/ipfs/ipfs-deployment.yaml new file mode 100644 index 0000000..f7c0476 --- /dev/null +++ b/kubernetes/ipfs/ipfs-deployment.yaml @@ -0,0 +1,53 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: +  name: ipfs +  labels: +    app: ipfs +spec: +  replicas: 1 +  selector: +    matchLabels: +      app: ipfs +  template: +    metadata: +      labels: +        app: ipfs +    spec: +      containers: +      - name: ipfs +        image: ipfs/go-ipfs:v0.11.0 +        ports: +        - containerPort: 4001 +        - containerPort: 5001 +        - containerPort: 8080 +--- +apiVersion: v1 +kind: Service +metadata: +  name: pihole-service +spec: +  selector: +    app: pihole +  type: NodePort +  ports: +    - protocol: TCP +      port: 4001 +      targetPort: 4001 +      nodePort: 30401 +      name: "ipfs-tcp-4001" +    - protocol: UDP +      port: 4001 +      targetPort: 4001 +      nodePort: 30401 +      name: "ipfs-udp-4001" +    - protocol: TCP +      port: 5001 +      targetPort: 5001 +      nodePort: 30402 +      name: "pihole-tcp-80" +    - protocol: TCP +      port: 8080 +      targetPort: 8080 +      nodePort: 30403 +      name: "pihole-tcp-443" diff --git a/kubernetes/pihole/10-customdns.conf b/kubernetes/pihole/10-customdns.conf new file mode 100644 index 0000000..a5c4539 --- /dev/null +++ b/kubernetes/pihole/10-customdns.conf @@ -0,0 +1,8 @@ +host-record=mongo.lan,192.168.1.109:27117 +host-record=pi2.lan,192.168.1.105 +host-record=pi3.lan,192.168.1.108 +host-record=pi4.lan,192.168.1.109 +host-record=phone.lan,192.168.1.110 +host-record=switch.lan,192.168.1.106 +host-record=router.lan,192.168.1.200 +host-record=voidbox.lan,192.168.1.103 diff --git a/kubernetes/searx/deploy.sh b/kubernetes/searx/deploy.sh new file mode 100755 index 0000000..41abcec --- /dev/null +++ b/kubernetes/searx/deploy.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +kubectl apply -f ./searx-configmap.yaml +kubectl apply -f ./searx-deployment.yaml + +# kubectl delete pod mongodb +# kubectl delete pvc +# kubectl delete pv diff --git a/kubernetes/searx/searx-configmap.yaml b/kubernetes/searx/searx-configmap.yaml new file mode 100644 index 0000000..b36005f --- /dev/null +++ b/kubernetes/searx/searx-configmap.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: ConfigMap +metadata: +  name: searx-configmap +data: +  searx-base-url: http://searx.lan:8080 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" | 
