File tree 13 files changed +256
-119
lines changed
13 files changed +256
-119
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : v2
2
+ name : giropops-chart
3
+ description : A Helm chart for deploying the Giropops application and Redis
4
+ version : 1.0.0
5
+ appVersion : " 1.0.0"
Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : giropops-deployment
5
+ labels :
6
+ app : giropops-senhas
7
+ spec :
8
+ replicas : {{ .Values.giropops.replicaCount }}
9
+ selector :
10
+ matchLabels :
11
+ app : giropops-senhas
12
+ template :
13
+ metadata :
14
+ labels :
15
+ app : giropops-senhas
16
+ spec :
17
+ containers :
18
+ - name : giropops-senhas
19
+ image : " {{ .Values.giropops.image.repository }}:{{ .Values.giropops.image.tag }}"
20
+ imagePullPolicy : {{ .Values.giropops.image.pullPolicy }}
21
+ ports :
22
+ - containerPort : {{ .Values.giropops.service.port }}
23
+ env :
24
+ - name : REDIS_HOST
25
+ value : {{ .Values.giropops.env.REDIS_HOST }}
26
+ resources :
27
+ {{- toYaml .Values.giropops.resources | nindent 10 }}
28
+ livenessProbe :
29
+ {{- toYaml .Values.giropops.livenessProbe | nindent 10 }}
30
+ readinessProbe :
31
+ {{- toYaml .Values.giropops.readinessProbe | nindent 10 }}
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Service
3
+ metadata :
4
+ name : giropops-service
5
+ labels :
6
+ app : giropops-senhas
7
+ spec :
8
+ selector :
9
+ app : giropops-senhas
10
+ ports :
11
+ - protocol : TCP
12
+ port : {{ .Values.giropops.service.port }}
13
+ targetPort : {{ .Values.giropops.service.port }}
14
+ name : http
15
+ type : {{ .Values.giropops.service.type }}
Original file line number Diff line number Diff line change
1
+ # templates/namespace.yaml
2
+ apiVersion : v1
3
+ kind : Namespace
4
+ metadata :
5
+ name : {{ .Values.namespace }}
Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : redis-deployment
5
+ labels :
6
+ app : redis
7
+ spec :
8
+ replicas : {{ .Values.redis.replicaCount }}
9
+ selector :
10
+ matchLabels :
11
+ app : redis
12
+ template :
13
+ metadata :
14
+ labels :
15
+ app : redis
16
+ spec :
17
+ containers :
18
+ - name : redis
19
+ image : " {{ .Values.redis.image.repository }}:{{ .Values.redis.image.tag }}"
20
+ ports :
21
+ - containerPort : 6379
22
+ resources :
23
+ {{- toYaml .Values.redis.resources | nindent 10 }}
Original file line number Diff line number Diff line change @@ -2,11 +2,14 @@ apiVersion: v1
2
2
kind : Service
3
3
metadata :
4
4
name : redis-service
5
+ labels :
6
+ app : redis
5
7
spec :
6
8
selector :
7
9
app : redis
8
10
ports :
9
11
- protocol : TCP
10
12
port : {{ .Values.redis.service.port }}
11
- targetPort : {{ .Values.redis.service.targetPort }}
13
+ targetPort : 6379
12
14
type : {{ .Values.redis.service.type }}
15
+
Original file line number Diff line number Diff line change
1
+ # Giropops Application
2
+ giropops :
3
+ replicaCount : 1
4
+ image :
5
+ repository : rafallltm/giropops-senhas
6
+ tag : v6-dev
7
+ pullPolicy : Always
8
+ service :
9
+ type : LoadBalancer
10
+ port : 5000
11
+ env :
12
+ REDIS_HOST : redis-service
13
+ resources :
14
+ requests :
15
+ cpu : 250m
16
+ memory : 64Mi
17
+ limits :
18
+ cpu : 500m
19
+ memory : 128Mi
20
+ livenessProbe :
21
+ httpGet :
22
+ path : /
23
+ port : 5000
24
+ initialDelaySeconds : 10
25
+ periodSeconds : 10
26
+ timeoutSeconds : 5
27
+ failureThreshold : 3
28
+ readinessProbe :
29
+ httpGet :
30
+ path : /
31
+ port : 5000
32
+ initialDelaySeconds : 10
33
+ periodSeconds : 10
34
+ timeoutSeconds : 5
35
+ failureThreshold : 3
36
+
37
+ # Redis
38
+ redis :
39
+ replicaCount : 1
40
+ image :
41
+ repository : redis
42
+ tag : alpine3.19
43
+ service :
44
+ type : ClusterIP
45
+ port : 6379
46
+ resources :
47
+ requests :
48
+ cpu : 100m
49
+ memory : 128Mi
50
+ limits :
51
+ cpu : 250m
52
+ memory : 256Mi
53
+
54
+ # Namespace
55
+ namespace : giropops-senhas
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments