Skip to content

Commit

Permalink
feat: added elasticsearch resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Jun 7, 2022
1 parent 8dbf8ce commit 7f047eb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
25 changes: 25 additions & 0 deletions deploy/as-k8s/dependencies.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,28 @@ rabbitmq:
resources:
limits: {}
requests: {}

#! ELASTICSEARCH
elasticsearch:
enabled: false
version: 18.2.9

helm:
#@schema/type any=True
extraEnvVars: []
image:
debug: false
pullPolicy: IfNotPresent
tag: 8.2.2-debian-10-r0
ingress:
enabled: false
metrics:
enabled: false
master:
persistence:
enabled: true
storageClass: ""
size: 4Gi
resources:
limits: {}
requests: {}
7 changes: 7 additions & 0 deletions deploy/as-k8s/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ rabbitmq:
config: #@ base64.encode(json.encode(data.values.rabbitmq))
version: #@ data.values.rabbitmq.version
helm: #@ data.values.rabbitmq.helm

elasticsearch:
enabled: #@ data.values.elasticsearch.enabled
hash: #@ sha256.sum(json.encode(data.values.elasticsearch))
config: #@ base64.encode(json.encode(data.values.elasticsearch))
version: #@ data.values.elasticsearch.version
helm: #@ data.values.elasticsearch.helm
2 changes: 1 addition & 1 deletion deploy/as-k8s/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ spec:
tls:
- secretName: #@ "cert-" + data.values.repository
hosts:
- #@ "{}.{}.{}".format(data.values.repository, data.values.environment, data.values.ingress.domain.name)
- #@ "{}.{}.{}".format(data.values.repository, data.values.environment, data.values.ingress.domain.name)
#@ end

defaultBackend:
Expand Down

0 comments on commit 7f047eb

Please sign in to comment.