File tree 2 files changed +42
-0
lines changed
2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : v1
3
+ kind : Service
4
+ metadata :
5
+ name : redis
6
+ spec :
7
+ ports :
8
+ - port : 6379
9
+ targetPort : 6379
10
+ selector :
11
+ application : redis
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : apps/v1beta1
3
+ kind : StatefulSet
4
+ metadata :
5
+ name : redis
6
+ spec :
7
+ serviceName : redis
8
+ replicas : 2
9
+ template :
10
+ metadata :
11
+ labels :
12
+ application : redis
13
+ version : 3.2.5
14
+ spec :
15
+ containers :
16
+ - name : redis
17
+ image : redis:3.2.5
18
+ volumeMounts :
19
+ - mountPath : /data
20
+ name : redis-data
21
+ volumeClaimTemplates :
22
+ - metadata :
23
+ name : redis-data
24
+ annotations :
25
+ volume.alpha.kubernetes.io/storage-class : default
26
+ spec :
27
+ accessModes :
28
+ - ReadWriteOnce
29
+ resources :
30
+ requests :
31
+ storage : 7Gi
You can’t perform that action at this time.
0 commit comments