Skip to content

Commit 98fefe9

Browse files
committed
chore(opensearch): add plans
1 parent 6f63c88 commit 98fefe9

30 files changed

Lines changed: 1614 additions & 18 deletions
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
credential:
2+
- name: OPENSEARCH_HOST
3+
valueFrom:
4+
serviceRef:
5+
name: {{ include "opensearch.service.name" . }}
6+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
7+
8+
- name: OPENSEARCH_TCP_REST_API_PORT
9+
valueFrom:
10+
serviceRef:
11+
name: {{ include "opensearch.service.name" . }}
12+
jsonpath: '{ .spec.ports[?(@.name=="tcp-rest-api")].port }'
13+
14+
- name: OPENSEARCH_TCP_TRANSPORT_PORT
15+
valueFrom:
16+
serviceRef:
17+
name: {{ include "opensearch.service.name" . }}
18+
jsonpath: '{ .spec.ports[?(@.name=="tcp-transport")].port }'
19+
20+
{{- if .Values.dashboards.enabled }}
21+
- name: OPENSEARCH_DASHBOARDS_HOST
22+
valueFrom:
23+
serviceRef:
24+
name: {{ include "opensearch.dashboards.servicename" . }}
25+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
26+
27+
- name: OPENSEARCH_DASHBOARDS_HTTP_HOST
28+
valueFrom:
29+
serviceRef:
30+
name: {{ include "opensearch.dashboards.servicename" . }}
31+
jsonpath: '{ .spec.ports[?(@.name=="http")].port }'
32+
{{- end }}
33+
34+
{{- if .Values.security.enabled }}
35+
- name: OPENSEARCH_PASSWORD
36+
valueFrom:
37+
secretRef:
38+
name: {{ template "common.names.fullname" . }}
39+
jsonpath: '{ .data.opensearch-password }'
40+
41+
- name: OPENSEARCH_DASHBOARDS_PASSWORD
42+
valueFrom:
43+
secretRef:
44+
name: {{ template "common.names.fullname" . }}
45+
jsonpath: '{ .data.opensearch-dashboards-password }'
46+
47+
- name: LOGSTASH_PASSWORD
48+
valueFrom:
49+
secretRef:
50+
name: {{ template "common.names.fullname" . }}
51+
jsonpath: '{ .data.logstash-password }'
52+
{{- 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-1024"
2+
id: 8b918768-cf1c-4066-86a8-e692a7806c0b
3+
description: "Opensearch standard-1024 plan which limit persistence size 1024Gi."
4+
displayName: "standard-1024"
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-1024"
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: 16000m
25+
memory: 64Gi
26+
requests:
27+
cpu: 1600m
28+
memory: 32Gi
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: 32768m
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: 1024Gi
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
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
credential:
2+
- name: OPENSEARCH_HOST
3+
valueFrom:
4+
serviceRef:
5+
name: {{ include "opensearch.service.name" . }}
6+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
7+
8+
- name: OPENSEARCH_TCP_REST_API_PORT
9+
valueFrom:
10+
serviceRef:
11+
name: {{ include "opensearch.service.name" . }}
12+
jsonpath: '{ .spec.ports[?(@.name=="tcp-rest-api")].port }'
13+
14+
- name: OPENSEARCH_TCP_TRANSPORT_PORT
15+
valueFrom:
16+
serviceRef:
17+
name: {{ include "opensearch.service.name" . }}
18+
jsonpath: '{ .spec.ports[?(@.name=="tcp-transport")].port }'
19+
20+
{{- if .Values.dashboards.enabled }}
21+
- name: OPENSEARCH_DASHBOARDS_HOST
22+
valueFrom:
23+
serviceRef:
24+
name: {{ include "opensearch.dashboards.servicename" . }}
25+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
26+
27+
- name: OPENSEARCH_DASHBOARDS_HTTP_HOST
28+
valueFrom:
29+
serviceRef:
30+
name: {{ include "opensearch.dashboards.servicename" . }}
31+
jsonpath: '{ .spec.ports[?(@.name=="http")].port }'
32+
{{- end }}
33+
34+
{{- if .Values.security.enabled }}
35+
- name: OPENSEARCH_PASSWORD
36+
valueFrom:
37+
secretRef:
38+
name: {{ template "common.names.fullname" . }}
39+
jsonpath: '{ .data.opensearch-password }'
40+
41+
- name: OPENSEARCH_DASHBOARDS_PASSWORD
42+
valueFrom:
43+
secretRef:
44+
name: {{ template "common.names.fullname" . }}
45+
jsonpath: '{ .data.opensearch-dashboards-password }'
46+
47+
- name: LOGSTASH_PASSWORD
48+
valueFrom:
49+
secretRef:
50+
name: {{ template "common.names.fullname" . }}
51+
jsonpath: '{ .data.logstash-password }'
52+
{{- 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-128"
2+
id: 458ec6a7-0195-4adf-9c7a-7c04358e2431
3+
description: "Opensearch standard-128 plan which limit persistence size 128Gi."
4+
displayName: "standard-128"
5+
bindable: true
6+
maximum_polling_duration: 1800

0 commit comments

Comments
 (0)