Skip to content

Commit

Permalink
update values
Browse files Browse the repository at this point in the history
  • Loading branch information
muhuchah committed Aug 26, 2024
1 parent 5449554 commit 2e148fa
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 30 deletions.
2 changes: 1 addition & 1 deletion templates/configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ data:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
HOST: "postgres"
PORT: {{ .Values.postgres.port }}
PORT: "{{ .Values.postgres.port }}"
POSTGRES_CONNECTION_STRING: "Host=postgres;Database=postgres;Username=postgres;Password=postgres;"
2 changes: 2 additions & 0 deletions templates/deployment-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
labels:
app: backend
spec:
imagePullSecrets:
- name: {{ .Values.abrimentImagePullSecret.name }}
initContainers:
- name: migrate
image: {{ .Values.backend.repository }}:{{ .Values.backend.tag }}
Expand Down
4 changes: 3 additions & 1 deletion templates/deployment-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
labels:
app: frontend
spec:
imagePullSecrets:
- name: {{ .Values.abrimentImagePullSecret.name }}
containers:
- name: frontend
image: {{ .Values.frontend.repository }}:{{ .Values.frontend.tag }}
Expand All @@ -23,5 +25,5 @@ spec:
memory: {{ .Values.frontend.resources.requests.memory }}
cpu: {{ .Values.frontend.resources.requests.cpu }}
limits:
memory: {{ .Values.frontend.resources.limits.memory }}"
memory: {{ .Values.frontend.resources.limits.memory }}
cpu: {{ .Values.frontend.resources.limits.cpu }}
27 changes: 27 additions & 0 deletions templates/ingress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-ingress
namespace: 0b12e0d24d4541c097bbaab164438125-negar
labels:
app: nginxn
spec:
ingressClassName: my-ingress
rules:
- host: noice.abriment.com
http:
paths:
- path: /api
pathType: Prefix
backend:
service:
name: back-service
port:
number: {{ .Values.backend.service.port }}
- path: /
pathType: Prefix
backend:
service:
name: front-service
port:
number: {{ .Values.frontend.service.port }}
20 changes: 10 additions & 10 deletions templates/pvc.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: db-persistent-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.postgres.pvc.storage }}
#apiVersion: v1
#kind: PersistentVolumeClaim
#metadata:
# name: db-persistent-pvc
#spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: {{ .Values.postgres.pvc.storage }}
46 changes: 28 additions & 18 deletions values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
backend:
repository: negar-backend
#repository: registry.abriment.com/mhch/negar-backend
repository: docker.arvancloud.ir/mhchah/imagebuilder
#repository: negar-backend
pullPolicy: IfNotPresent
tag: "latest"
#pullPolicy: Always
tag: v0.0.3
replicaCount: 1
port: 80

Expand All @@ -11,11 +14,11 @@ backend:

resources:
requests:
memory: "256Mi"
cpu: "500m"
memory: "3000Mi"
cpu: "2000m"
limits:
memory: "512Mi"
cpu: "1"
memory: "3000Mi"
cpu: "2000m"

postgres:
repository: postgres
Expand All @@ -26,22 +29,25 @@ postgres:

service:
type: ClusterIP
port: 80
port: 5432

resources:
requests:
memory: "500Mi"
cpu: "500m"
memory: "3000Mi"
cpu: "2000m"
limits:
memory: "1Gi"
cpu: "1"
memory: "3000Mi"
cpu: "2000m"
pvc:
storage: 1Gi
storage: "3Gi"

frontend:
repository: negar-frontend
# repository: docker.arvancloud.ir/mhchah/negar-frontend
#repository: negar-frontend
repository: docker.arvancloud.ir/mhchah/imagebuilder
pullPolicy: IfNotPresent
tag: "latest"
# tag: v0.11.3
tag: v0.0.8
replicaCount: 1
port: 80

Expand All @@ -51,8 +57,12 @@ frontend:

resources:
requests:
memory: "256Mi"
cpu: "500m"
memory: "3000Mi"
cpu: "2000m"
limits:
memory: "512Mi"
cpu: "1"
memory: "3000Mi"
cpu: "2000m"

abrimentImagePullSecret:
name: negar-abrsecret

0 comments on commit 2e148fa

Please sign in to comment.