From 8878f764a3383dc94b94c08d452bbe81193e86ef Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 24 Sep 2024 07:31:10 +0100 Subject: [PATCH] ports are helpful --- .../production/searxng/{ => redis}/redis-pod.yaml | 2 ++ .../apps/production/searxng/redis/service.yaml | 13 +++++++++++++ 2 files changed, 15 insertions(+) rename kubernetes/apps/production/searxng/{ => redis}/redis-pod.yaml (92%) create mode 100644 kubernetes/apps/production/searxng/redis/service.yaml diff --git a/kubernetes/apps/production/searxng/redis-pod.yaml b/kubernetes/apps/production/searxng/redis/redis-pod.yaml similarity index 92% rename from kubernetes/apps/production/searxng/redis-pod.yaml rename to kubernetes/apps/production/searxng/redis/redis-pod.yaml index 0605c21..ea28fea 100644 --- a/kubernetes/apps/production/searxng/redis-pod.yaml +++ b/kubernetes/apps/production/searxng/redis/redis-pod.yaml @@ -9,6 +9,8 @@ spec: - name: redis image: docker.io/valkey/valkey:8-alpine command: ["valkey-server", "--save", "30", "1", "--loglevel", "warning"] + ports: + - containerPort: 6379 volumeMounts: - name: redis-data mountPath: /data diff --git a/kubernetes/apps/production/searxng/redis/service.yaml b/kubernetes/apps/production/searxng/redis/service.yaml new file mode 100644 index 0000000..915c929 --- /dev/null +++ b/kubernetes/apps/production/searxng/redis/service.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: searxng-redis + namespace: public-services +spec: + type: ClusterIP + ports: + - port: 6379 + targetPort: 6379 + selector: + app: searxng-redis