This commit is contained in:
ivan 2026-05-07 11:21:23 +05:00
parent 37f33d6fd0
commit 4d1eeaf095
3 changed files with 42 additions and 0 deletions

View File

@ -4,4 +4,6 @@ kind: Kustomization
resources: resources:
- ../base - ../base
- postgresql.yaml - postgresql.yaml
- redis-deployment.yaml
- redis-service.yaml
patches: [] patches: []

View File

@ -0,0 +1,27 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
namespace: pm
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

View File

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Service
metadata:
name: redis
namespace: pm
spec:
selector:
app: redis
ports:
- port: 6379
targetPort: 6379
protocol: TCP