diff --git a/deploy/kubernetes/aks-live.yaml b/deploy/kubernetes/aks-live.yaml index 62d97c5..ba1f5cc 100644 --- a/deploy/kubernetes/aks-live.yaml +++ b/deploy/kubernetes/aks-live.yaml @@ -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 diff --git a/deploy/kubernetes/redis.yaml b/deploy/kubernetes/redis.yaml new file mode 100644 index 0000000..c01b354 --- /dev/null +++ b/deploy/kubernetes/redis.yaml @@ -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 \ No newline at end of file