forked from k-space/kube
wildduck: Switch to KeyDB
This commit is contained in:
parent
90927fb72e
commit
f78bb031b7
@ -1,7 +1,7 @@
|
|||||||
To deploy replace the API secret in configmaps/webmail.yml and:
|
To deploy replace the API secret in configmaps/webmail.yml and:
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl -n wildduck apply --recursive -f namespace.yml -f webmail.yml -f redis.yml
|
kubectl -n wildduck apply -f application.yml
|
||||||
kubectl -n wildduck rollout restart deployment/webmail
|
kubectl -n wildduck rollout restart deployment/webmail
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -10,8 +10,4 @@ To generate secrets:
|
|||||||
```
|
```
|
||||||
kubectl create secret generic -n wildduck wildduck \
|
kubectl create secret generic -n wildduck wildduck \
|
||||||
--from-literal=WILDDUCK_API_TOKEN=$(cat /dev/urandom | base64 | head -c 30)
|
--from-literal=WILDDUCK_API_TOKEN=$(cat /dev/urandom | base64 | head -c 30)
|
||||||
REDIS_PASSWORD=$(cat /dev/urandom | base64 | head -c 30)
|
|
||||||
kubectl create secret generic -n wildduck redis-secrets \
|
|
||||||
--from-literal=REDIS_PASSWORD=$REDIS_PASSWORD \
|
|
||||||
--from-literal=REDIS_URL="redis://:$REDIS_PASSWORD@redis:6379/5"
|
|
||||||
```
|
```
|
||||||
|
@ -42,7 +42,7 @@ metadata:
|
|||||||
name: webmail
|
name: webmail
|
||||||
namespace: wildduck
|
namespace: wildduck
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: webmail
|
app: webmail
|
||||||
@ -76,7 +76,7 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: redis-secrets
|
name: redis-secrets
|
||||||
key: REDIS_URL
|
key: REDIS_URI
|
||||||
volumes:
|
volumes:
|
||||||
- name: webmail-config
|
- name: webmail-config
|
||||||
projected:
|
projected:
|
||||||
@ -125,3 +125,10 @@ spec:
|
|||||||
- hosts:
|
- hosts:
|
||||||
- webmail.k-space.ee
|
- webmail.k-space.ee
|
||||||
secretName: webmail-tls
|
secretName: webmail-tls
|
||||||
|
---
|
||||||
|
apiVersion: codemowers.io/v1alpha1
|
||||||
|
kind: KeyDBCluster
|
||||||
|
metadata:
|
||||||
|
name: redis
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
Loading…
Reference in New Issue
Block a user