Skip to content

Commit d9ed40e

Browse files
committed
chore(opensearch): add plan
1 parent 96f89d3 commit d9ed40e

4 files changed

Lines changed: 243 additions & 0 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
credential:
2+
{{- if (eq .Values.service.type "LoadBalancer") }}
3+
- name: EXTERNAL_OPENSEARCH_HOST
4+
valueFrom:
5+
serviceRef:
6+
name: {{ include "opensearch.service.name" . }}
7+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
8+
{{- end }}
9+
10+
- name: OPENSEARCH_HOST
11+
valueFrom:
12+
serviceRef:
13+
name: {{ include "opensearch.service.name" . }}
14+
jsonpath: '{ .spec.clusterIP }'
15+
16+
- name: OPENSEARCH_TCP_REST_API_PORT
17+
valueFrom:
18+
serviceRef:
19+
name: {{ include "opensearch.service.name" . }}
20+
jsonpath: '{ .spec.ports[?(@.name=="tcp-rest-api")].port }'
21+
22+
- name: OPENSEARCH_TCP_TRANSPORT_PORT
23+
valueFrom:
24+
serviceRef:
25+
name: {{ include "opensearch.service.name" . }}
26+
jsonpath: '{ .spec.ports[?(@.name=="tcp-transport")].port }'
27+
28+
{{- if .Values.dashboards.enabled }}
29+
{{ if (eq .Values.dashboards.service.type "LoadBalancer") }}
30+
- name: EXTERNAL_OPENSEARCH_DASHBOARDS_HOST
31+
valueFrom:
32+
serviceRef:
33+
name: {{ include "opensearch.dashboards.servicename" . }}
34+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
35+
{{- end }}
36+
37+
- name: OPENSEARCH_DASHBOARDS_HOST
38+
valueFrom:
39+
serviceRef:
40+
name: {{ include "opensearch.dashboards.servicename" . }}
41+
jsonpath: '{ .spec.clusterIP }'
42+
43+
- name: OPENSEARCH_DASHBOARDS_PORT
44+
valueFrom:
45+
serviceRef:
46+
name: {{ include "opensearch.dashboards.servicename" . }}
47+
jsonpath: '{ .spec.ports[?(@.name=="http")].port }'
48+
{{- end }}
49+
50+
{{- if .Values.security.enabled }}
51+
- name: OPENSEARCH_PASSWORD
52+
valueFrom:
53+
secretKeyRef:
54+
name: {{ template "common.names.fullname" . }}
55+
jsonpath: '{ .data.opensearch-password }'
56+
57+
- name: OPENSEARCH_DASHBOARDS_PASSWORD
58+
valueFrom:
59+
secretKeyRef:
60+
name: {{ template "common.names.fullname" . }}
61+
jsonpath: '{ .data.opensearch-dashboards-password }'
62+
63+
- name: LOGSTASH_PASSWORD
64+
valueFrom:
65+
secretKeyRef:
66+
name: {{ template "common.names.fullname" . }}
67+
jsonpath: '{ .data.logstash-password }'
68+
{{- end }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"imagePullPolicy": {
6+
"type": "string",
7+
"enum": ["Always", "IfNotPresent", "Never"],
8+
"default": "IfNotPresent",
9+
"title": "Image pull policy"
10+
}
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "standard-8c32g2048"
2+
id: d563048b-482f-4b11-906e-5fc2c5568bf5
3+
description: "Opensearch standard-8c32g2048 plan which limit resources 8 cores 32Gi memory and persistence size 2Ti."
4+
displayName: "standard-8c32g2048"
5+
bindable: true
6+
maximum_polling_duration: 1800
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
## @param fullnameOverride String to fully override common.names.fullname
2+
##
3+
fullnameOverride: "hb-opensearch-standard-8c32g2048"
4+
## @section Master-elegible nodes parameters
5+
6+
master:
7+
## @param master.masterOnly Deploy the OpenSearch master-elegible nodes as master-only nodes. Recommended for high-demand deployments.
8+
## If you are
9+
masterOnly: false
10+
## @param master.replicaCount Number of master-elegible replicas to deploy
11+
##
12+
replicaCount: 3
13+
## OpenSearch resource requests and limits
14+
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
15+
## We usually recommend not to specify default resources and to leave this as a conscious
16+
## choice for the user. This also increases chances charts run on environments with little
17+
## resources, such as Minikube. If you do want to specify resources, uncomment the following
18+
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
19+
## @param master.resources.limits The resources limits for opensearch containers
20+
## @param master.resources.requests The requested resources for opensearch containers
21+
##
22+
resources:
23+
limits:
24+
cpu: 8
25+
memory: 32Gi
26+
requests:
27+
cpu: 4
28+
memory: 16Gi
29+
## @param master.heapSize OpenSearch master-eligible node heap size.
30+
## Note: The recommended heapSize is half of the container's memory.
31+
## If omitted, it will be automatically set.
32+
## Example:
33+
## heapSize: 128m
34+
##
35+
heapSize: 16384m
36+
## Enable persistence using Persistent Volume Claims
37+
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
38+
##
39+
persistence:
40+
## @param master.persistence.enabled Enable persistence using a `PersistentVolumeClaim`
41+
##
42+
enabled: true
43+
## @param master.persistence.storageClass Persistent Volume Storage Class
44+
## If defined, storageClassName: <storageClass>
45+
## If set to "-", storageClassName: "", which disables dynamic provisioning
46+
## If undefined (the default) or set to null, no storageClassName spec is
47+
## set, choosing the default provisioner. (gp2 on AWS, standard on
48+
## GKE, AWS & OpenStack)
49+
##
50+
storageClass: ""
51+
## @param master.persistence.accessModes Persistent Volume Access Modes
52+
##
53+
accessModes:
54+
- ReadWriteOnce
55+
## @param master.persistence.size Persistent Volume Size
56+
##
57+
size: 2048Gi
58+
## @section Data-only nodes parameters
59+
60+
data:
61+
## @param data.replicaCount Number of data-only replicas to deploy
62+
##
63+
replicaCount: 0
64+
## OpenSearch resource requests and limits
65+
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
66+
## @param data.resources.limits The resources limits for the data containers
67+
## @param data.resources.requests [object] The requested resources for the data containers
68+
##
69+
# resources:
70+
# limits:
71+
# memory: 512Mi
72+
# cpu: 250m
73+
# requests:
74+
# memory: 256Mi
75+
# cpu: 125m
76+
## Enable persistence using Persistent Volume Claims
77+
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
78+
##
79+
persistence:
80+
## @param data.persistence.enabled Enable persistence using a `PersistentVolumeClaim`
81+
##
82+
enabled: false
83+
## @param data.persistence.storageClass Persistent Volume Storage Class
84+
## If defined, storageClassName: <storageClass>
85+
## If set to "-", storageClassName: "", which disables dynamic provisioning
86+
## If undefined (the default) or set to null, no storageClassName spec is
87+
## set, choosing the default provisioner. (gp2 on AWS, standard on
88+
## GKE, AWS & OpenStack)
89+
##
90+
storageClass: ""
91+
## @param data.persistence.accessModes Persistent Volume Access Modes
92+
##
93+
accessModes:
94+
- ReadWriteOnce
95+
## @param data.persistence.size Persistent Volume Size
96+
##
97+
size: 8Gi
98+
## @section Coordinating-only nodes parameters
99+
100+
coordinating:
101+
## @param coordinating.replicaCount Number of coordinating-only replicas to deploy
102+
##
103+
replicaCount: 0
104+
## OpenSearch resource requests and limits
105+
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
106+
## @param coordinating.resources.limits The resources limits for the coordinating-only containers
107+
## @param coordinating.resources.requests [object] The requested resources for the coordinating-only containers
108+
##
109+
# resources:
110+
# limits:
111+
# memory: 512Mi
112+
# cpu: 250m
113+
# requests:
114+
# memory: 256Mi
115+
# cpu: 125m
116+
## @section Ingest-only nodes parameters
117+
118+
ingest:
119+
## @param ingest.enabled Enable ingest nodes
120+
##
121+
enabled: false
122+
## @param ingest.replicaCount Number of ingest-only replicas to deploy
123+
##
124+
replicaCount: 0
125+
## OpenSearch resource requests and limits
126+
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
127+
## @param ingest.resources.limits The resources limits for the ingest-only containers
128+
## @param ingest.resources.requests [object] The requested resources for the ingest-only containers
129+
##
130+
# resources:
131+
# limits:
132+
# memory: 512Mi
133+
# cpu: 250m
134+
# requests:
135+
# memory: 256Mi
136+
# cpu: 125m
137+
## @section OpenSearch Dashborads Parameters
138+
139+
dashboards:
140+
## @param dashboards.enabled Enables OpenSearch Dashboards deployment
141+
##
142+
enabled: true
143+
## @param dashboards.replicaCount Number of data-only replicas to deploy
144+
##
145+
replicaCount: 1
146+
## OpenSearch resource requests and limits
147+
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
148+
## @param dashboards.resources.limits The resources limits for the data containers
149+
## @param dashboards.resources.requests [object] The requested resources for the data containers
150+
##
151+
resources:
152+
limits:
153+
memory: 4096Mi
154+
cpu: 2000m
155+
requests:
156+
memory: 2058Mi
157+
cpu: 200m

0 commit comments

Comments
 (0)