Add workflow & helm
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 31s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 31s
This commit is contained in:
12
deploy/Chart.yaml
Normal file
12
deploy/Chart.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
# Version schéma helm (v2 = helm3)
|
||||
apiVersion: v2
|
||||
|
||||
# Nom de l'application déployée
|
||||
name: bot_tamiseur
|
||||
|
||||
# Version du chart : doit changer si l'application change ou si la configuration du chart change
|
||||
#version: 1
|
||||
version: "1"
|
||||
|
||||
# icon (optionnel) mais génère un warning avec "helm lint"
|
||||
icon: https://helm.sh/img/helm-logo.svg
|
||||
34
deploy/templates/deployment.yaml
Normal file
34
deploy/templates/deployment.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
spec:
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 0
|
||||
strategy:
|
||||
type: {{ .Values.deployment.strategy }}
|
||||
selector:
|
||||
matchLabels:
|
||||
pod: {{ .Release.Name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
pod: {{ .Release.Name }}
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- name: {{ .Release.Name }}
|
||||
image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }}
|
||||
env:
|
||||
{{ range $envName, $envValue := .Values.deployment.env }}
|
||||
- name: {{ $envName | quote}}
|
||||
value: {{ $envValue | quote}}
|
||||
{{ end }}
|
||||
{{- if .Values.deployment.resources.enable }}
|
||||
resources:
|
||||
{{- toYaml .Values.deployment.resources | nindent 12 }}
|
||||
{{- end }}
|
||||
18
deploy/values.yaml
Normal file
18
deploy/values.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
deployment:
|
||||
replica: 1
|
||||
strategy: RollingUpdate
|
||||
image:
|
||||
repository: "rgy.angels-dev.fr/prod/bot_tamiseur"
|
||||
tag: "3.0.4"
|
||||
pullPolicy: IfNotPresent
|
||||
env:
|
||||
NODE_ENV: "production"
|
||||
|
||||
## Pas de limite CPU pour éviter latence
|
||||
resources:
|
||||
limits:
|
||||
# cpu: ""
|
||||
# Memory: "500Mi"
|
||||
requests:
|
||||
Cpu: "0.1"
|
||||
Memory: "50Mi"
|
||||
Reference in New Issue
Block a user