Skip to content

Commit

Permalink
Add redis for Kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed Sep 13, 2022
1 parent 3b83173 commit 5b400c7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/kubernetes/aks-live.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ secretEnv:
env:
AAD_APP_ID: 129e29d2-6c0a-4dbf-849e-320a3aa93d52
APPLICATIONINSIGHTS_CONNECTION_STRING: "InstrumentationKey=76ae0e4d-5b1f-4081-915a-34cd49c8c4c2;IngestionEndpoint=https://uksouth-1.in.applicationinsights.azure.com/;LiveEndpoint=https://uksouth.livediagnostics.monitor.azure.com/"

REDIS_SESSION_HOST: redis

resources:
limits:
cpu: 500m
Expand Down
38 changes: 38 additions & 0 deletions deploy/kubernetes/redis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: v1
kind: Service
metadata:
name: redis
spec:
selector:
app: redis
ports:
- port: 6379
targetPort: 6379

---

apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
spec:
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: redis:6
ports:
- containerPort: 6379
resources:
requests:
cpu: 10m
memory: 64Mi
limits:
cpu: 50m
memory: 128Mi

0 comments on commit 5b400c7

Please sign in to comment.