redis-deployment.yml 749 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis-deployment
  namespace: memobase
  labels:
    app: redis-app
spec:
  selector:
    matchLabels:
      app: redis-app
  replicas: 1
  template:
    metadata:
      labels:
        app: redis-app
        tier: web
    spec:
      containers:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
20
          - name: redis-container
21
            image: redis:5-buster
22
23
24
25
26
27
28
            resources:
                requests:
                    cpu: "0.2"
                    memory: "2Gi"
                limits:
                    cpu: "1.0"
                    memory: "8Gi"
29
30
31
32
33
34
            imagePullPolicy: Always
            ports:
              - containerPort: 6379
                name: http
                protocol: TCP
      restartPolicy: Always