mysql and redis, maybe valkey future
This commit is contained in:
31
dev/redis/deployment.yaml
Normal file
31
dev/redis/deployment.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: redis
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: redis
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: redis
|
||||
editor: vscode
|
||||
spec:
|
||||
volumes:
|
||||
- name: redis-config
|
||||
configMap:
|
||||
name: redis-config
|
||||
containers:
|
||||
- image: redis
|
||||
name: redis
|
||||
args:
|
||||
- "/etc/redis/redis.conf"
|
||||
resources:
|
||||
limits:
|
||||
cpu: '1'
|
||||
memory: '1Gi'
|
||||
volumeMounts:
|
||||
- mountPath: /etc/redis
|
||||
name: redis-config
|
11
dev/redis/kustomization.yaml
Normal file
11
dev/redis/kustomization.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
configMapGenerator:
|
||||
- name: redis-config
|
||||
files:
|
||||
- config/redis.conf
|
10
dev/redis/service.yaml
Normal file
10
dev/redis/service.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: redis
|
||||
spec:
|
||||
selector:
|
||||
app: redis
|
||||
ports:
|
||||
- port: 6379
|
||||
targetPort: 6379
|
Reference in New Issue
Block a user