apiVersion: v1
kind: Service
metadata:
  name: gitlab-redis-master
  namespace: public-service
  labels:
    app: gitlab
    component: redis
spec:
  type: ClusterIP
  ports:
  - name: redis
    port: 6379
    targetPort: redis
  selector:
    app: gitlab
    component: redis
    role: master
