From d187981b897ddd32f525765be43fe9c466c04730 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 4 May 2026 20:17:34 +0700 Subject: [PATCH] ++ --- apps/django/yc-k8s-test/kustomization.yaml | 2 ++ apps/django/yc-k8s-test/redis-deployment.yaml | 27 +++++++++++++++++++ apps/django/yc-k8s-test/redis-service.yaml | 13 +++++++++ 3 files changed, 42 insertions(+) create mode 100644 apps/django/yc-k8s-test/redis-deployment.yaml create mode 100644 apps/django/yc-k8s-test/redis-service.yaml diff --git a/apps/django/yc-k8s-test/kustomization.yaml b/apps/django/yc-k8s-test/kustomization.yaml index e601931..c4a2c03 100644 --- a/apps/django/yc-k8s-test/kustomization.yaml +++ b/apps/django/yc-k8s-test/kustomization.yaml @@ -4,4 +4,6 @@ kind: Kustomization resources: - ../base - postgresql.yaml + - redis-deployment.yaml + - redis-service.yaml patches: [] diff --git a/apps/django/yc-k8s-test/redis-deployment.yaml b/apps/django/yc-k8s-test/redis-deployment.yaml new file mode 100644 index 0000000..64f23ce --- /dev/null +++ b/apps/django/yc-k8s-test/redis-deployment.yaml @@ -0,0 +1,27 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: redis + namespace: django + labels: + app: redis +spec: + replicas: 1 + selector: + matchLabels: + app: redis + template: + metadata: + labels: + app: redis + spec: + containers: + - name: redis + image: cr.yandex/crp3ccidau046kdj8g9q/redis:latest + imagePullPolicy: Always + ports: + - containerPort: 6379 + protocol: TCP + imagePullSecrets: + - name: regcred diff --git a/apps/django/yc-k8s-test/redis-service.yaml b/apps/django/yc-k8s-test/redis-service.yaml new file mode 100644 index 0000000..1ef8ff7 --- /dev/null +++ b/apps/django/yc-k8s-test/redis-service.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: redis + namespace: django +spec: + selector: + app: redis + ports: + - port: 6379 + targetPort: 6379 + protocol: TCP