helm-workshop icon indicating copy to clipboard operation
helm-workshop copied to clipboard

Postgresql service issue with worker deployment

Open CheckYourGages opened this issue 7 years ago • 1 comments

The postgresql database is inaccessible to the worker using the current configuration. To work around this for the tutorial, there is a workaround by creating a second service for the worker and database to communicate across.

apiVersion: v1
kind: Service
metadata:
  labels:
    app: postgresql
    chart: postgresql-3.1.0
    release: {{ .Release.Name }}
  name: db
spec:
  ports:
  - name: postgresql
    port: 5432
    protocol: TCP
    targetPort: postgresql
  selector:
    app: postgresql
    release: {{ .Release.Name }}
  sessionAffinity: None
  type: ClusterIP

paste this below the worker deployment in your yaml file, and it should allow them to communicate.

CheckYourGages avatar Dec 10 '18 18:12 CheckYourGages

Hey there! The fix is now available in https://github.com/deislabs/helm-workshop/pull/24. Give that a try.

bacongobbler avatar Dec 10 '18 20:12 bacongobbler