-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make service configurable (added loadBalancerSourceRanges, annotations, and labels). - Migrate off deprecated postgres chart. - Use standardized names for labels. - Add chart's api version.
- Loading branch information
Showing
8 changed files
with
51 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dependencies: | ||
- name: postgresql | ||
version: 1.0.0 | ||
repository: https://kubernetes-charts.storage.googleapis.com | ||
condition: provision.postgresql | ||
version: 8.9.1 | ||
repository: https://charts.bitnami.com/bitnami | ||
condition: provision.postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 16 additions & 4 deletions
20
k8s-deployment/encoding-service/templates/encoding-app-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
{{- if .Values.service.annotations }} | ||
annotations: | ||
{{- range $key, $value := .Values.service.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
{{- end }} | ||
labels: | ||
{{- include "release_labels" . | indent 4 }} | ||
{{- if .Values.service.labels }} | ||
{{- toYaml .Values.service.labels | nindent 4 }} | ||
{{- end }} | ||
name: encoding-app | ||
spec: | ||
type: {{ .Values.service.type }} | ||
{{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }} | ||
{{- if .Values.service.loadBalancerIP }} | ||
loadBalancerIP: {{ .Values.service.loadBalancerIP }} | ||
{{- end }} | ||
{{- if .Values.service.loadBalancerSourceRanges }} | ||
loadBalancerSourceRanges: {{ toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }} | ||
{{- end }} | ||
ports: | ||
- name: "http" | ||
port: {{ .Values.service.port }} | ||
- name: http | ||
port: {{ .Values.service.servicePort }} | ||
targetPort: encodingservice | ||
selector: | ||
component: encoding-app | ||
release: {{ .Release.Name }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters