17 lines
258 B
YAML
17 lines
258 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: redis-slave
|
||
|
labels:
|
||
|
app: redis
|
||
|
role: slave
|
||
|
tier: backend
|
||
|
spec:
|
||
|
ports:
|
||
|
# the port that this service should serve on
|
||
|
- port: 6379
|
||
|
selector:
|
||
|
app: redis
|
||
|
role: slave
|
||
|
tier: backend
|