Reorganized for new stable/waypoint versioning design.
This commit is contained in:
17
redis/versions/1/README.md
Normal file
17
redis/versions/1/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Redis
|
||||
|
||||
Redis is an open-source, in-memory data structure store used as a database, cache, and message broker. This deploys a shared Redis instance used by apps that require it.
|
||||
|
||||
## Dependencies
|
||||
|
||||
None. Redis is a standalone infrastructure service.
|
||||
|
||||
## Configuration
|
||||
|
||||
Key settings configured through your instance's `config.yaml`:
|
||||
|
||||
- **port** - Service port (default: `6379`)
|
||||
|
||||
## Usage
|
||||
|
||||
Apps that depend on Redis (such as Immich, Mastodon, Discourse, and others) will connect to it automatically at `redis.redis.svc.cluster.local:6379`. Authentication is managed through the secrets system.
|
||||
31
redis/versions/1/deployment.yaml
Normal file
31
redis/versions/1/deployment.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: redis-deployment
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: redis
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: redis
|
||||
spec:
|
||||
containers:
|
||||
- image: "redis:alpine"
|
||||
name: redis
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
env:
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: redis-secrets
|
||||
key: password
|
||||
command:
|
||||
- redis-server
|
||||
- --requirepass
|
||||
- $(REDIS_PASSWORD)
|
||||
restartPolicy: Always
|
||||
13
redis/versions/1/kustomization.yaml
Normal file
13
redis/versions/1/kustomization.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: redis
|
||||
labels:
|
||||
- includeSelectors: true
|
||||
pairs:
|
||||
app: redis
|
||||
managedBy: kustomize
|
||||
partOf: wild-cloud
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- namespace.yaml
|
||||
- service.yaml
|
||||
8
redis/versions/1/manifest.yaml
Normal file
8
redis/versions/1/manifest.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
version: 1.0.0-1
|
||||
defaultConfig:
|
||||
namespace: redis
|
||||
host: redis.redis.svc.cluster.local
|
||||
port: 6379
|
||||
uri: redis://{{ .app.host }}:{{ .app.port }}/0
|
||||
defaultSecrets:
|
||||
- key: password
|
||||
4
redis/versions/1/namespace.yaml
Normal file
4
redis/versions/1/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: {{ .namespace }}
|
||||
13
redis/versions/1/service.yaml
Normal file
13
redis/versions/1/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: redis
|
||||
labels:
|
||||
app: redis
|
||||
spec:
|
||||
ports:
|
||||
- port: 6379
|
||||
targetPort: 6379
|
||||
selector:
|
||||
app: redis
|
||||
Reference in New Issue
Block a user