Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service selectors do not get read into k8s #1

Open
badloop opened this issue Jan 25, 2019 · 0 comments
Open

Service selectors do not get read into k8s #1

badloop opened this issue Jan 25, 2019 · 0 comments

Comments

@badloop
Copy link

badloop commented Jan 25, 2019

FYI, not sure if its a kubernetes bug or what, but the selector block in the service definitions is not being read into kubernetes. You need to move it above the service port definition like so:

apiVersion: v1
kind: Service
metadata:
  name: {{ template "sdnc.fullname" . }}-debugger
  labels:
    app: {{ template "sdnc.name" . }}
    chart: {{ template "sdnc.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  type: {{ .Values.services.debuggerServiceType }}
  selector:
    app: {{ template "sdnc.name" . }}
    release: {{ .Release.Name }}
  ports:
  - name: debugger
{{ toYaml .Values.services.debugger | indent 4 }}

Possibly an issue with the toYaml function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant