-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4048bd0
commit 9d3c95a
Showing
23 changed files
with
327 additions
and
496 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
File renamed without changes.
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
File renamed without changes.
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,17 @@ | ||
{{- if .Values.postgresql.secret.create }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: "{{ .Release.Name }}-{{ .Values.postgresql.secret.name }}" | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "cvat.labels" . | nindent 4 }} | ||
type: generic | ||
stringData: | ||
postgresql-hostname: "{{ .Release.Name }}-postgresql" | ||
postgresql-database: {{ .Values.postgresql.postgresqlDatabase }} | ||
postgresql-username: {{ .Values.postgresql.postgresqlUsername }} | ||
postgresql-password: {{ .Values.postgresql.secret.password }} | ||
postgresql-postgres-password: {{ .Values.postgresql.secret.postgres_password }} | ||
postgresql-replication-password: {{ .Values.postgresql.secret.replication_password }} | ||
{{- 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
6 changes: 4 additions & 2 deletions
6
...s/cvat/templates/cvat_backend/service.yml → ...-chart/templates/cvat_backend/service.yml
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
6 changes: 5 additions & 1 deletion
6
...s/cvat/templates/cvat_backend/storage.yml → ...-chart/templates/cvat_backend/storage.yml
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Release.Name }}-frontend | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "cvat.labels" . | nindent 4 }} | ||
app: cvat-app | ||
tier: frontend | ||
spec: | ||
replicas: {{ .Values.cvat.frontend.replicas }} | ||
strategy: | ||
type: Recreate | ||
selector: | ||
matchLabels: | ||
{{- include "cvat.labels" . | nindent 6 }} | ||
app: cvat-app | ||
tier: frontend | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "cvat.labels" . | nindent 8 }} | ||
app: cvat-app | ||
tier: frontend | ||
{{- with .Values.cvat.backend.labels }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.cvat.backend.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
spec: | ||
containers: | ||
- name: cvat-frontend-app-container | ||
image: {{ .Values.cvat.frontend.image }}:{{ .Values.cvat.frontend.tag }} | ||
{{- with .Values.cvat.frontend.resources }} | ||
resources: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
ports: | ||
- containerPort: 80 | ||
{{- with .Values.cvat.frontend.additionalEnv }} | ||
env: | ||
{{- toYaml . | nindent 10 }} | ||
{{- end }} | ||
{{- with .Values.cvat.frontend.additionalVolumeMounts }} | ||
volumeMounts: | ||
{{- toYaml . | nindent 10 }} | ||
{{- end }} | ||
{{- with .Values.cvat.frontend.additionalVolumes }} | ||
volumes: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.cvat.frontend.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} |
4 changes: 3 additions & 1 deletion
4
.../cvat/templates/cvat_frontend/service.yml → ...chart/templates/cvat_frontend/service.yml
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{{- if .Values.ingress.enabled -}} | ||
{{- $fullName := include "cvat.fullname" . -}} | ||
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
apiVersion: networking.k8s.io/v1beta1 | ||
{{- else -}} | ||
apiVersion: extensions/v1beta1 | ||
{{- end }} | ||
kind: Ingress | ||
metadata: | ||
name: {{ $fullName }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "cvat.labels" . | nindent 4 }} | ||
{{- with .Values.ingress.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.ingress.tls }} | ||
tls: | ||
{{- range .Values.ingress.tls }} | ||
- hosts: | ||
{{- range .hosts }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
secretName: {{ .secretName }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
{{- range .Values.ingress.hosts }} | ||
- host: {{ .host | quote }} | ||
http: | ||
paths: | ||
{{- range .paths }} | ||
- path: {{ .match }} | ||
backend: | ||
serviceName: {{ .service.name }} | ||
servicePort: {{ .service.port }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.