You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
438 B
YAML
22 lines
438 B
YAML
2 years ago
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: shynet-redis
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: shynet-redis
|
||
|
serviceName: shynet-redis
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: shynet-redis
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: shynet-redis
|
||
|
image: redis:6.2.6
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
ports:
|
||
|
- containerPort: 6379
|
||
|
name: redis
|