-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from G-Research/helm
Completing helm charts + Basic Auth for server
- Loading branch information
Showing
35 changed files
with
473 additions
and
52 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
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
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
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 |
---|---|---|
|
@@ -8,3 +8,5 @@ eventsRedis: | |
addr: "localhost:6379" | ||
password: "" | ||
db: 0 | ||
authentication: | ||
enableAuthentication: false |
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 |
---|---|---|
|
@@ -9,3 +9,5 @@ armada: | |
url : "localhost:50051" | ||
events: | ||
url : "localhost:50051" | ||
authentication: | ||
enableAuthentication: false |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
appVersion : v1 | ||
description: A helm chart for armada API component | ||
name: armada | ||
version: 0.0.1 |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
{{- define "armada.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{- define "armada.config.name" -}} | ||
{{- printf "%s-%s" ( include "armada.name" .) "config" -}} | ||
{{- end }} | ||
|
||
{{- define "armada.config.filename" -}} | ||
{{- printf "%s%s" ( include "armada.config.name" .) ".yaml" -}} | ||
{{- end }} | ||
|
||
{{- define "armada.users.name" -}} | ||
{{- printf "%s-%s" ( include "armada.name" .) "users" -}} | ||
{{- end }} | ||
|
||
{{- define "armada.users.filename" -}} | ||
{{- printf "%s%s" ( include "armada.users.name" .) ".yaml" -}} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "armada.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{- define "armada.labels.identity" -}} | ||
app: {{ include "armada.name" . }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "armada.labels.all" -}} | ||
{{ include "armada.labels.identity" . }} | ||
chart: {{ include "armada.chart" . }} | ||
release: {{ .Release.Name }} | ||
{{- end -}} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "armada.config.name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{ include "armada.labels.all" . | indent 4 }} | ||
data: | ||
{{ include "armada.config.filename" . }}: | | ||
{{- if .Values.applicationConfig }} | ||
{{ toYaml .Values.applicationConfig | indent 4 }} | ||
{{- end }} |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "armada.name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{ include "armada.labels.all" . | indent 4 }} | ||
spec: | ||
replicas: {{ .Values.replicas }} | ||
selector: | ||
matchLabels: | ||
{{ include "armada.labels.identity" . | indent 6 }} | ||
template: | ||
metadata: | ||
name: {{ include "armada.name" . }} | ||
labels: | ||
{{ include "armada.labels.all" . | indent 8 }} | ||
spec: | ||
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} | ||
serviceAccountName: {{ include "armada.name" . }} | ||
containers: | ||
- name: armada | ||
imagePullPolicy: IfNotPresent | ||
image: {{ .Values.image.repository }}:{{ required "A value is required for .Values.image.tag" .Values.image.tag }} | ||
args: | ||
- --config | ||
- /config/application_config.yaml | ||
- --usersPath | ||
- /config/users.yaml | ||
resources: | ||
{{ toYaml .Values.resources | indent 12 }} | ||
ports: | ||
- containerPort: {{ .Values.applicationConfig.grpcPort }} | ||
protocol: TCP | ||
name: grpc | ||
volumeMounts: | ||
- name: user-config | ||
mountPath: /config/application_config.yaml | ||
subPath: {{ include "armada.config.filename" . }} | ||
- name: users | ||
mountPath: /config/users.yaml | ||
subPath: {{ include "armada.users.filename" . }} | ||
readOnly: true | ||
volumes: | ||
- name: user-config | ||
configMap: | ||
name: {{ include "armada.config.name" . }} | ||
- name: users | ||
secret: | ||
secretName: {{ include "armada.users.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "armada.name" . }} | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
kubernetes.io/ingress.class: {{ required "A value is required for .Values.ingressClass" .Values.ingressClass }} | ||
nginx.ingress.kubernetes.io/ssl-redirect: "true" | ||
nginx.ingress.kubernetes.io/backend-protocol: "GRPC" | ||
certmanager.k8s.io/cluster-issuer: {{ required "A value is required for .Values.clusterIssuer" .Values.clusterIssuer }} | ||
labels: | ||
{{ include "armada.labels.all" . | indent 4 }} | ||
spec: | ||
rules: | ||
- host: {{ required "A value is required for .Values.hostname" .Values.hostname }} | ||
http: | ||
paths: | ||
- path: / | ||
backend: | ||
serviceName: {{ include "armada.name" . }} | ||
servicePort: {{ .Values.applicationConfig.grpcPort }} | ||
tls: | ||
- hosts: | ||
- {{ required "A value is required for .Values.hostname" .Values.hostname }} | ||
secretName: armada-service-tls |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
kind: Namespace | ||
apiVersion: v1 | ||
metadata: | ||
name: {{ .Release.Namespace }} |
Oops, something went wrong.