redis-deployment.yml 536 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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:
          - name: redis
            image: redis:5-buster
            imagePullPolicy: Always
            ports:
              - containerPort: 6379
                name: http
                protocol: TCP
      restartPolicy: Always