This commit is contained in:
24
iris-web/deploy/kubernetes/charts/Chart.yaml
Normal file
24
iris-web/deploy/kubernetes/charts/Chart.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: v2
|
||||
name: iris-web
|
||||
description: A Helm chart for Iris Web
|
||||
|
||||
# A chart can be either an 'application' or a 'library' chart.
|
||||
#
|
||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
||||
# to be deployed.
|
||||
#
|
||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
||||
type: application
|
||||
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.1.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||
# It is recommended to use it with quotes.
|
||||
appVersion: "1.16.0"
|
28
iris-web/deploy/kubernetes/charts/templates/NOTES.txt
Normal file
28
iris-web/deploy/kubernetes/charts/templates/NOTES.txt
Normal file
@ -0,0 +1,28 @@
|
||||
Release Name: {{ .Release.Name }}
|
||||
Chart Name: {{ .Chart.Name }}
|
||||
Chart Version: {{ .Chart.Version }}
|
||||
Chart Description: {{ .Chart.Description }}
|
||||
|
||||
The following Kubernetes resources have been deployed:
|
||||
|
||||
{{- if .Values.ingress.enabled }}
|
||||
Ingress:
|
||||
- Name: {{ .Release.Name }}-ingress
|
||||
Host: {{ index .Values.ingress.hosts 0 "host" }}
|
||||
Path: {{ index .Values.ingress.hosts 0 "paths" 0 "path" }}
|
||||
Service Name: {{ index .Values.ingress.hosts 0 "paths" 0 "serviceName" }}
|
||||
Service Port: {{ index .Values.ingress.hosts 0 "paths" 0 "servicePort" }}
|
||||
{{- end }}
|
||||
|
||||
{{- if eq .Values.ingress.enabled true }}
|
||||
To access your application, ensure that the necessary configurations are set up in your cluster.
|
||||
|
||||
- If you have DNS set up:
|
||||
- Access your application using the configured domain: http://{{ index .Values.ingress.hosts 0 "host" }}
|
||||
{{- else }}
|
||||
No Ingress resources deployed.
|
||||
{{- end }}
|
||||
|
||||
Ensure that your application service ({{ index .Values.ingress.hosts 0 "paths" 0 "serviceName" }}) is up and running on port {{ index .Values.ingress.hosts 0 "paths" 0 "servicePort" }}.
|
||||
|
||||
Happy exploring!
|
62
iris-web/deploy/kubernetes/charts/templates/_helpers.tpl
Normal file
62
iris-web/deploy/kubernetes/charts/templates/_helpers.tpl
Normal file
@ -0,0 +1,62 @@
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "iris-web.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "iris-web.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||
{{- if contains $name .Release.Name }}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "iris-web.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "iris-web.labels" -}}
|
||||
helm.sh/chart: {{ include "iris-web.chart" . }}
|
||||
{{ include "iris-web.selectorLabels" . }}
|
||||
{{- if .Chart.AppVersion }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Selector labels
|
||||
*/}}
|
||||
{{- define "iris-web.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "iris-web.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "iris-web.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "iris-web.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
85
iris-web/deploy/kubernetes/charts/templates/iris_app.yaml
Normal file
85
iris-web/deploy/kubernetes/charts/templates/iris_app.yaml
Normal file
@ -0,0 +1,85 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Values.irisapp.name }}
|
||||
spec:
|
||||
replicas: {{ .Values.irisapp.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.irisapp.app }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.irisapp.app }}
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Values.irisapp.name }}
|
||||
image: "{{ .Values.irisapp.image}}:{{ .Values.irisapp.tag }}"
|
||||
imagePullPolicy: "{{ .Values.irisapp.imagePullPolicy }}"
|
||||
command: ['nohup', './iris-entrypoint.sh', 'iriswebapp']
|
||||
|
||||
env:
|
||||
|
||||
- name: DOCKERIZED # Setting Database name
|
||||
value: {{ .Values.irisapp.DOCKERIZED | quote }}
|
||||
|
||||
- name: POSTGRES_USER # Setting Database username
|
||||
value: {{ .Values.irisapp.POSTGRES_USER| quote }}
|
||||
|
||||
- name: POSTGRES_PASSWORDD # Setting Database password
|
||||
value: {{ .Values.irisapp.POSTGRES_PASSWORD | quote }}
|
||||
|
||||
- name: POSTGRES_ADMIN_USER # Setting Database admin user
|
||||
value: {{ .Values.irisapp.POSTGRES_ADMIN_USER | quote }}
|
||||
|
||||
- name: POSTGRES_ADMIN_PASSWORD # Setting Database admin password
|
||||
value: {{ .Values.irisapp.POSTGRES_ADMIN_PASSWORD | quote }}
|
||||
|
||||
- name: POSTGRES_PORT # Setting Database port
|
||||
value: {{ .Values.irisapp.POSTGRES_PORT | quote }}
|
||||
|
||||
- name: POSTGRES_SERVER # Setting Database server
|
||||
value: {{ .Values.irisapp.POSTGRES_SERVER | quote }}
|
||||
|
||||
- name: IRIS_SECRET_KEY
|
||||
value: {{ .Values.irisapp.IRIS_SECRET_KEY | quote }}
|
||||
|
||||
- name: IRIS_SECURITY_PASSWORD_SALT
|
||||
value: {{ .Values.irisapp.IRIS_SECURITY_PASSWORD_SALT | quote }}
|
||||
|
||||
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
|
||||
volumeMounts:
|
||||
- mountPath: /home/iris/downloads
|
||||
name: iris-downloads
|
||||
- mountPath: /home/iris/user_templates
|
||||
name: user-templates
|
||||
- mountPath: /home/iris/server_data
|
||||
name: server-data
|
||||
volumes:
|
||||
- name: iris-downloads
|
||||
emptyDir: {}
|
||||
- name: user-templates
|
||||
emptyDir: {}
|
||||
- name: server-data
|
||||
emptyDir: {}
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.irisapp.name }}
|
||||
labels:
|
||||
app: {{ .Values.irisapp.app }}
|
||||
spec:
|
||||
type: {{ .Values.irisapp.type }}
|
||||
ports:
|
||||
- port: {{ .Values.irisapp.service.port }}
|
||||
targetPort: {{ .Values.irisapp.service.targetPort }}
|
||||
selector:
|
||||
app: {{ .Values.irisapp.app }}
|
||||
---
|
69
iris-web/deploy/kubernetes/charts/templates/iris_worker.yaml
Normal file
69
iris-web/deploy/kubernetes/charts/templates/iris_worker.yaml
Normal file
@ -0,0 +1,69 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Values.irisworker.name }}
|
||||
spec:
|
||||
replicas: {{ .Values.irisworker.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.irisworker.app }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.irisworker.app }}
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Values.irisworker.name }}
|
||||
image: "{{ .Values.irisworker.image}}:{{ .Values.irisworker.tag }}"
|
||||
imagePullPolicy: "{{ .Values.irisworker.imagePullPolicy }}"
|
||||
command: ['./wait-for-iriswebapp.sh', 'iriswebapp-app.test.svc.cluster.local:8000', './iris-entrypoint.sh', 'iris-worker']
|
||||
|
||||
env:
|
||||
|
||||
- name: DOCKERIZED
|
||||
value: {{ .Values.irisworker.DOCKERIZED | quote }}
|
||||
|
||||
- name: POSTGRES_USER
|
||||
value: {{ .Values.irisworker.POSTGRES_USER | quote }}
|
||||
|
||||
- name: POSTGRES_PASSWORDD
|
||||
value: {{ .Values.irisworker.POSTGRES_PASSWORD | quote }}
|
||||
|
||||
- name: POSTGRES_ADMIN_USER
|
||||
value: {{ .Values.irisworker.POSTGRES_ADMIN_USER | quote }}
|
||||
|
||||
- name: POSTGRES_ADMIN_PASSWORD
|
||||
value: {{ .Values.irisworker.POSTGRES_ADMIN_PASSWORD | quote }}
|
||||
|
||||
- name: POSTGRES_PORT
|
||||
value: {{ .Values.irisworker.POSTGRES_PORT | quote }}
|
||||
|
||||
- name: POSTGRES_SERVER
|
||||
value: {{ .Values.irisworker.POSTGRES_SERVER | quote }}
|
||||
|
||||
- name: IRIS_SECRET_KEY
|
||||
value: {{ .Values.irisworker.IRIS_SECRET_KEY | quote }}
|
||||
|
||||
- name: IRIS_SECURITY_PASSWORD_SALT
|
||||
value: {{ .Values.irisworker.IRIS_SECURITY_PASSWORD_SALT | quote }}
|
||||
|
||||
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
volumeMounts:
|
||||
- mountPath: /home/iris/downloads
|
||||
name: iris-downloads
|
||||
- mountPath: /home/iris/user_templates
|
||||
name: user-templates
|
||||
- mountPath: /home/iris/server_data
|
||||
name: server-data
|
||||
volumes:
|
||||
- name: iris-downloads
|
||||
emptyDir: {}
|
||||
- name: user-templates
|
||||
emptyDir: {}
|
||||
- name: server-data
|
||||
emptyDir: {}
|
||||
---
|
@ -0,0 +1,32 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ .Values.ingress.name }}
|
||||
annotations:
|
||||
{{- toYaml .Values.ingress.annotations | nindent 4 }}
|
||||
spec:
|
||||
rules:
|
||||
{{- range $host := .Values.ingress.hosts }}
|
||||
- host: {{ $host.host }}
|
||||
http:
|
||||
paths:
|
||||
{{- range $path := $host.paths }}
|
||||
- path: {{ $path.path }}
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: {{ $path.serviceName }}
|
||||
port:
|
||||
number: {{ $path.servicePort }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.ingress.tls }}
|
||||
tls:
|
||||
{{- range . }}
|
||||
- hosts:
|
||||
{{- range .hosts }}
|
||||
- {{ . }}
|
||||
{{- end }}
|
||||
secretName: {{ .secretName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
104
iris-web/deploy/kubernetes/charts/templates/postgres.yaml
Normal file
104
iris-web/deploy/kubernetes/charts/templates/postgres.yaml
Normal file
@ -0,0 +1,104 @@
|
||||
---
|
||||
# Here I have used a hostpath
|
||||
# Local volumes can only be used as a statically created PersistentVolume. Dynamic provisioning is not supported.
|
||||
# If you need to go with Dynamic volumes you may choose AWS EBS or EFS
|
||||
|
||||
kind: PersistentVolume
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: postgres-pv-volume
|
||||
labels:
|
||||
app: {{ .Values.postgres.app }}
|
||||
spec:
|
||||
storageClassName: pv
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
hostPath:
|
||||
path: /var/lib/data
|
||||
---
|
||||
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: postgres-pv-claim
|
||||
labels:
|
||||
app: {{ .Values.postgres.app }}
|
||||
spec:
|
||||
storageClassName: pv
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
---
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Values.postgres.name }}
|
||||
spec:
|
||||
replicas: {{ .Values.postgres.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.postgres.app }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.postgres.app }}
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Values.postgres.name }}
|
||||
image: "{{ .Values.postgres.image}}:{{ .Values.postgres.tag }}"
|
||||
imagePullPolicy: "{{ .Values.postgres.imagePullPolicy }}"
|
||||
|
||||
env:
|
||||
|
||||
- name: POSTGRES_DB # Setting Database name
|
||||
value: {{ .Values.postgres.POSTGRES_DB | quote }}
|
||||
|
||||
- name: POSTGRES_USER # Setting Database username
|
||||
value: {{ .Values.postgres.POSTGRES_ADMIN_USER | quote }}
|
||||
|
||||
- name: POSTGRES_PASSWORDD # Setting Database password
|
||||
value: {{ .Values.postgres.POSTGRES_PASSWORD | quote }}
|
||||
|
||||
- name: POSTGRES_ADMIN_USER # Setting Database admin user
|
||||
value: {{ .Values.postgres.POSTGRES_ADMIN_USER | quote }}
|
||||
|
||||
- name: POSTGRES_ADMIN_PASSWORD # Setting Database admin password
|
||||
value: {{ .Values.postgres.POSTGRES_ADMIN_PASSWORD | quote }}
|
||||
|
||||
- name: POSTGRES_PORT # Setting Database port
|
||||
value: {{ .Values.postgres.POSTGRES_PORT | quote }}
|
||||
|
||||
- name: POSTGRES_HOST_AUTH_METHOD
|
||||
value: trust
|
||||
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/postgresql/data
|
||||
name: postgredb
|
||||
volumes:
|
||||
- name: postgredb
|
||||
persistentVolumeClaim:
|
||||
claimName: postgres-pv-claim
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.postgres.name }}
|
||||
labels:
|
||||
app: {{ .Values.postgres.app }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: {{ .Values.postgres.service.port }}
|
||||
selector:
|
||||
app: {{ .Values.postgres.app }}
|
||||
---
|
36
iris-web/deploy/kubernetes/charts/templates/rabbitmq.yaml
Normal file
36
iris-web/deploy/kubernetes/charts/templates/rabbitmq.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Values.rabbitmq.name }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.rabbitmq.app }}
|
||||
replicas: {{ .Values.rabbitmq.replicaCount }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.rabbitmq.app }}
|
||||
spec:
|
||||
containers:
|
||||
- image: "{{ .Values.rabbitmq.image}}:{{ .Values.rabbitmq.tag}}"
|
||||
imagePullPolicy: {{ .Values.rabbitmq.imagePullPolicy}}
|
||||
name: {{ .Values.rabbitmq.name }}
|
||||
ports:
|
||||
- containerPort: 5672
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.rabbitmq.name }}
|
||||
spec:
|
||||
ports:
|
||||
- port: 5672
|
||||
targetPort: 5672
|
||||
protocol: TCP
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: {{ .Values.rabbitmq.app }}
|
||||
---
|
159
iris-web/deploy/kubernetes/charts/values.yaml
Normal file
159
iris-web/deploy/kubernetes/charts/values.yaml
Normal file
@ -0,0 +1,159 @@
|
||||
## @section rabbitmq Configuration
|
||||
##
|
||||
rabbitmq:
|
||||
## @param rabbitmq.app App name for rabbitmq
|
||||
##
|
||||
app: rabbitmq
|
||||
## @param rabbitmq.name Name for rabbitmq
|
||||
##
|
||||
name: rabbitmq
|
||||
## @param rabbitmq.image Image rabbitmq deployment
|
||||
##
|
||||
image: rabbitmq
|
||||
## @param rabbitmq.tag Tag for rabbitmq
|
||||
##
|
||||
tag: 3-management-alpine
|
||||
## @param rabbitmq.imagePullPolicy Policy for rabbitmq
|
||||
##
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
## @param rabbitmq.replicaCount ReplicaCount for rabbitmq
|
||||
##
|
||||
replicaCount: 1
|
||||
|
||||
|
||||
## @section PostgreSQL Configuration
|
||||
##
|
||||
postgres:
|
||||
## @param postgres.app PostgreSQL App
|
||||
##
|
||||
app: postgres
|
||||
## @param postgres.name PostgreSQL Name
|
||||
##
|
||||
name: postgres
|
||||
## @param postgres.image PostgreSQL Image
|
||||
##
|
||||
image: <postgres_image>
|
||||
## @param postgres.tag PostgreSQL Tag
|
||||
tag: <tag>
|
||||
## @param postgres.imagePullPolicy PostgreSQL PullPolicy
|
||||
##
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
## @param postgres.replicaCount PostgreSQL ReplicaCount
|
||||
##
|
||||
replicaCount: 1
|
||||
|
||||
## @param postgres.service PostgreSQL Service
|
||||
##
|
||||
service:
|
||||
port: 5432
|
||||
|
||||
## @param PostgreSQL Environments
|
||||
##
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_ADMIN_USER: raptor
|
||||
POSTGRES_ADMIN_PASSWORD: postgres
|
||||
POSTGRES_DB: iris_db
|
||||
POSTGRES_PORT: 5432
|
||||
|
||||
|
||||
## @section Iris Frontend Configuration
|
||||
##
|
||||
irisapp:
|
||||
## @param irisapp.app Iris Frontend App
|
||||
##
|
||||
app: iriswebapp-app
|
||||
## @param irisapp.name Iris Frontend Name
|
||||
##
|
||||
name: iriswebapp-app
|
||||
## @param irisapp.image Iris Frontend Image
|
||||
##
|
||||
image: <irisapp_image>
|
||||
## @param irisapp.tag Iris Frontend Tag
|
||||
##
|
||||
tag: <tag>
|
||||
## @param irisapp.imagePullPolicy Iris Frontend imagePullPolicy
|
||||
##
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
## @param irisapp.replicaCount Iris Frontend replicaCount
|
||||
##
|
||||
replicaCount: 1
|
||||
|
||||
## @param irisapp.service Iris Frontend Service
|
||||
##
|
||||
service:
|
||||
port: 80
|
||||
targetPort: 8000
|
||||
|
||||
## @param irisapp.type Iris Frontend Service type
|
||||
##
|
||||
type: ClusterIP
|
||||
|
||||
## @param Iris Frontend Environments
|
||||
##
|
||||
POSTGRES_USER: raptor
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_ADMIN_USER: raptor
|
||||
POSTGRES_ADMIN_PASSWORD: postgres
|
||||
POSTGRES_PORT: 5432
|
||||
POSTGRES_SERVER: postgres.<name_space>.svc.cluster.local
|
||||
DOCKERIZED: 1
|
||||
IRIS_SECRET_KEY: AVerySuperSecretKey-SoNotThisOne
|
||||
IRIS_SECURITY_PASSWORD_SALT: ARandomSalt-NotThisOneEither
|
||||
|
||||
## @section Iris Backend Configuration
|
||||
##
|
||||
irisworker:
|
||||
## @param irisworker.app Iris Backend App
|
||||
##
|
||||
app: iriswebapp-worker
|
||||
## @param irisworker.name Iris Backend Name
|
||||
##
|
||||
name: iriswebapp-worker
|
||||
## @param irisworker.image Iris Backend Image
|
||||
##
|
||||
image: <irisworker_image>
|
||||
## @param irisworker.tag Iris Backend Tag
|
||||
##
|
||||
tag: <tag>
|
||||
## @param irisworker.imagePullPolicy Iris Backend imagePullPolicy
|
||||
##
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
## @param irisworker.replicaCount Iris Backend replicaCount
|
||||
##
|
||||
replicaCount: 1
|
||||
|
||||
## @param Iris Backend Environments
|
||||
##
|
||||
POSTGRES_USER: raptor
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_ADMIN_USER: raptor
|
||||
POSTGRES_ADMIN_PASSWORD: postgres
|
||||
POSTGRES_PORT: 5432
|
||||
POSTGRES_SERVER: postgres.<name_space>.svc.cluster.local
|
||||
DOCKERIZED: 1
|
||||
IRIS_SECRET_KEY: AVerySuperSecretKey-SoNotThisOne
|
||||
IRIS_SECURITY_PASSWORD_SALT: ARandomSalt-NotThisOneEither
|
||||
|
||||
## @section Nginx Ingress Configuration
|
||||
##
|
||||
ingress:
|
||||
enabled: true
|
||||
name: iris-ingress
|
||||
className: nginx
|
||||
annotations:
|
||||
# Add any annotations specific to your Ingress controller
|
||||
kubernetes.io/ingress.class: nginx
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
hosts:
|
||||
- host: <host_name>
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
serviceName: iriswebapp-app
|
||||
servicePort: 80
|
||||
tls:
|
||||
- secretName: iris-ingress-tls-secret
|
||||
hosts:
|
||||
- <host_name>
|
Reference in New Issue
Block a user