Skip to content

Commit

Permalink
Create values.yaml for each env
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Oct 18, 2023
1 parent ab54d75 commit 7644a90
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 152 deletions.
2 changes: 2 additions & 0 deletions infra/kube/helm/dev.values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
backend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-backend
frontend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-frontend
1 change: 1 addition & 0 deletions infra/kube/helm/prod.values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# To be edited later
1 change: 1 addition & 0 deletions infra/kube/helm/staging.values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# To be edited later
122 changes: 0 additions & 122 deletions infra/kube/helm/values-dso.yaml

This file was deleted.

53 changes: 23 additions & 30 deletions infra/kube/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ingress:
#traefik.ingress.kubernetes.io/router.tls: "true"
#traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt
hosts:
- host: basegun.fr
- host: basegun.dev.numerique-interieur.com
paths:
- path: /
pathType: Prefix
Expand All @@ -28,15 +28,16 @@ serviceAccount:
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
imagePullSecrets:
- name: registry-pull-secret
# Config for backend
backend:
replicaCount: 1
image:
repository: ghcr.io/datalab-mi/basegun/basegun-backend
repository: harbor.apps.c6.numerique-interieur.com/mi-basegun-test/basegun-backend
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "3.2"
imagePullSecrets: []
tag: develop
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
Expand All @@ -48,19 +49,12 @@ backend:
# runAsNonRoot: true
# runAsUser: 1000
logs:
repository: elastic/filebeat
repository: ghcr.io/datalab-mi/basegun/filebeat-rootless
tag: 6.5.4
pullPolicy: IfNotPresent
resources:
limits:
cpu: 250m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
pullPolicy: Always
service:
type: ClusterIP
port: 80
port: 5000
containerPort: 5000
autoscaling:
enabled: false
Expand All @@ -73,15 +67,15 @@ backend:
workspace: preprod
secret:
create: false
sops: false
secretName: basegun-secret
resources:
sops: true
secretName: basegun-preprod-secret
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
resources:
limits:
cpu: 250m
cpu: 2500m
memory: 1Gi
requests:
cpu: 100m
Expand All @@ -93,11 +87,10 @@ backend:
frontend:
replicaCount: 1
image:
repository: ghcr.io/datalab-mi/basegun/basegun-frontend
pullPolicy: IfNotPresent
repository: harbor.apps.c6.numerique-interieur.com/mi-basegun-test/basegun-frontend
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "3.2"
imagePullSecrets: []
tag: develop
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
Expand All @@ -112,19 +105,19 @@ frontend:

service:
type: ClusterIP
port: 80
port: 8080
containerPort: 8080
resources:
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 50m
memory: 64Mi
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
nodeSelector: {}
tolerations: []
affinity: {}

0 comments on commit 7644a90

Please sign in to comment.