diff --git a/charts/openconcho/templates/service.yaml b/charts/openconcho/templates/service.yaml new file mode 100644 index 0000000..a542306 --- /dev/null +++ b/charts/openconcho/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "openconcho.fullname" . }} + labels: + {{- include "openconcho.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + {{- include "openconcho.selectorLabels" . | nindent 4 }} diff --git a/charts/openconcho/templates/serviceaccount.yaml b/charts/openconcho/templates/serviceaccount.yaml new file mode 100644 index 0000000..433c583 --- /dev/null +++ b/charts/openconcho/templates/serviceaccount.yaml @@ -0,0 +1,13 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "openconcho.serviceAccountName" . }} + labels: + {{- include "openconcho.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +automountServiceAccountToken: {{ .Values.serviceAccount.automount }} +{{- end }}