mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-06-30 02:31:08 +00:00
42 lines
837 B
YAML
42 lines
837 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: redis
|
|
spec:
|
|
selector:
|
|
app: redis
|
|
ports:
|
|
- protocol: TCP
|
|
port: 6379
|
|
targetPort: 6379
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: redis-deployment
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: redis
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: redis
|
|
spec:
|
|
containers:
|
|
- name: redis
|
|
image: docker.io/bitnami/redis:7.2
|
|
env:
|
|
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
|
- name: ALLOW_EMPTY_PASSWORD
|
|
value: "yes"
|
|
- name: REDIS_DISABLE_COMMANDS
|
|
value: "FLUSHDB,FLUSHALL"
|
|
ports:
|
|
- containerPort: 6379
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi |