Debian Codegraph @

case_studies/kubernetes/redis-master-service.old.yaml

raw
1 apiVersion: v1
2 kind: Service
3 metadata:
4 name: redismaster
5 labels:
6 name: redis-master
7 spec:
8 ports:
9 # The port that this service should serve on.
10 # You don't need to specify the targetPort if it is the same as the port,
11 # though here we include it anyway, to show the syntax.
12 - port: 6379
13 targetPort: 6379
14 selector:
15 name: redis-master