redis-svc.yaml 294 B

12345678910111213
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: redis
  5. spec:
  6. selector:
  7. name: redis
  8. ports:
  9. - protocol: TCP
  10. # The service listens to incoming requests on this port ...
  11. port: 56379
  12. # And forwards them to the container which listens on that port.
  13. targetPort: 6379