add image registry

This commit is contained in:
2022-03-21 12:54:08 +03:00
parent 1b00d5c001
commit 5bcb54bf31
4 changed files with 6 additions and 5 deletions

View File

@ -2,6 +2,6 @@ apiVersion: v2
name: hasura name: hasura
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
type: application type: application
version: 0.2.0 version: 0.2.1
appVersion: v2.3.1 appVersion: v2.3.1
icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/powered_by_hasura_primary_lightbg.svg icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/powered_by_hasura_primary_lightbg.svg

View File

@ -31,7 +31,7 @@ spec:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom: envFrom:
{{- if .Values.extraEnvVarsSecret }} {{- if .Values.extraEnvVarsSecret }}

View File

@ -22,7 +22,7 @@ spec:
emptyDir: { } emptyDir: { }
initContainers: initContainers:
- name: copy - name: copy
image: "{{ .Values.migrations.image.registry }}/{{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag | default "latest" }}" image: "{{ .Values.migrations.image.registry }}/{{ .Values.migrations.image.registry }}/{{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag | default "latest" }}"
command: command:
- cp - cp
- -R - -R
@ -34,7 +34,7 @@ spec:
mountPath: /shared-data mountPath: /shared-data
containers: containers:
- name: migrate - name: migrate
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
command: [ "/bin/sh", "-c" ] command: [ "/bin/sh", "-c" ]
args: args:
- set -ex; - set -ex;

View File

@ -5,6 +5,7 @@
replicaCount: 1 replicaCount: 1
image: image:
registry: &registry docker.io
repository: hasura/graphql-engine repository: hasura/graphql-engine
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
@ -15,7 +16,7 @@ extraEnvVarsSecret: ""
migrations: migrations:
# Docker image which contain migrations,metadata,config.yml inside /data directory # Docker image which contain migrations,metadata,config.yml inside /data directory
image: image:
registry: docker.io registry: *registry
repository: "" repository: ""
tag: "" tag: ""