Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Zelin Hao <[email protected]>
  • Loading branch information
zelinh committed Jul 14, 2022
2 parents 94e09ed + 71f40ba commit 0ceadf7
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams
* @opensearch-project/engineering-effectiveness
* @opensearch-project/engineering-effectiveness @TheAlgo @DandyDeveloper
16 changes: 12 additions & 4 deletions charts/opensearch/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security

---
## [1.13.1]
### Added
- Update OpenSearch appVersion to 1.3.4.
### Changed
### Deprecated
### Removed
### Fixed
### Security
---
## [1.13.0]
### Added
- Add feature for readinessProbe and startupProbe
### Changed
- Update OpenSearch appVersion to 1.3.4.

### Deprecated
### Removed
### Fixed
Expand All @@ -27,7 +35,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
### Changed
- Update OpenSearch appVersion to 1.3.3.

### Deprecated
### Removed
### Fixed
Expand Down Expand Up @@ -450,7 +457,8 @@ config:
### Fixed
### Security

[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-1.13.0...HEAD
[Unreleased]: https://github.com/opensearch-project/helm-charts/compare/opensearch-1.13.1...HEAD
[1.13.1]: https://github.com/opensearch-project/helm-charts/compare/opensearch-1.13.0...opensearch-1.13.1
[1.13.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-1.12.1...opensearch-1.13.0
[1.12.1]: https://github.com/opensearch-project/helm-charts/compare/opensearch-1.12.0...opensearch-1.12.1
[1.12.0]: https://github.com/opensearch-project/helm-charts/compare/opensearch-1.11.1...opensearch-1.12.0
Expand Down
2 changes: 1 addition & 1 deletion charts/opensearch/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.13.0
version: 1.13.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
11 changes: 10 additions & 1 deletion charts/opensearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ helm uninstall my-release
| `transportPort` | The transport port that Kubernetes will use for the service. If you change this you will also need to set transport port configuration in `extraEnvs` | `9300` |
| `updateStrategy` | The [updateStrategy][] for the StatefulSet. By default Kubernetes will wait for the cluster to be green after upgrading each pod. Setting this to `OnDelete` will allow you to manually delete each pod during upgrades | `RollingUpdate` |
| `volumeClaimTemplate` | Configuration for the [volumeClaimTemplate for StatefulSets][]. You will want to adjust the storage (default `30Gi` ) and the `storageClassName` if you are using a different storage class | see [values.yaml][] |
| `extraObjects` | Array of extra K8s manifests to deploy | list `[]` |
| `extraObjects` | Array of extra K8s manifests to deploy | list `[]` | |
| `readinessProbe` | Configuration fields for the readiness [probe][] | see [example][] in `values.yaml`
| `startupProbe` | Configuration fields for the [probe][] | see [sample][] in `values.yaml` |




Expand Down Expand Up @@ -161,3 +164,9 @@ helm uninstall my-release
[service types]: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types

[topologySpreadConstraints]: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints

[probe]: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes

[example]: https://github.com/opensearch-project/helm-charts/blob/main/charts/opensearch/values.yaml#L336

[sample]: https://github.com/opensearch-project/helm-charts/blob/main/charts/opensearch/values.yaml#L328
17 changes: 13 additions & 4 deletions charts/opensearch/ci/ci-ingress-class-name-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ config:
# Bind to all interfaces because we don't know what IP address Docker will assign to us.
network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
# Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again.
# discovery.type: single-node
Expand Down Expand Up @@ -246,7 +248,7 @@ podManagementPolicy: "Parallel"
# If you experience slow pod startups you probably want to set this to `false`.
enableServiceLinks: true

protocol: http
protocol: https
httpPort: 9200
transportPort: 9300

Expand Down Expand Up @@ -318,12 +320,20 @@ terminationGracePeriod: 120

sysctlVmMaxMapCount: 262144

startupProbe:
tcpSocket:
port: 9200
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 30

readinessProbe:
failureThreshold: 3
initialDelaySeconds: 10
initialDelaySeconds: 900
periodSeconds: 10
successThreshold: 3
timeoutSeconds: 2000
timeoutSeconds: 2

## Use an alternate scheduler.
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
Expand Down Expand Up @@ -402,7 +412,6 @@ fsGroup: ""
## Also see: https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
sysctl:
enabled: false

## Enable to add 3rd Party / Custom plugins not offered in the default OpenSearch image.
plugins:
enabled: false
Expand Down
16 changes: 13 additions & 3 deletions charts/opensearch/ci/ci-rbac-enabled-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ config:
# Bind to all interfaces because we don't know what IP address Docker will assign to us.
network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
# Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again.
# discovery.type: single-node
Expand Down Expand Up @@ -246,7 +248,7 @@ podManagementPolicy: "Parallel"
# If you experience slow pod startups you probably want to set this to `false`.
enableServiceLinks: true

protocol: http
protocol: https
httpPort: 9200
transportPort: 9300

Expand Down Expand Up @@ -318,12 +320,20 @@ terminationGracePeriod: 120

sysctlVmMaxMapCount: 262144

startupProbe:
tcpSocket:
port: 9200
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 30

readinessProbe:
failureThreshold: 3
initialDelaySeconds: 10
initialDelaySeconds: 900
periodSeconds: 10
successThreshold: 3
timeoutSeconds: 2000
timeoutSeconds: 2

## Use an alternate scheduler.
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
Expand Down
11 changes: 3 additions & 8 deletions charts/opensearch/ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ config:
# Bind to all interfaces because we don't know what IP address Docker will assign to us.
network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
# Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again.
# discovery.type: single-node
Expand Down Expand Up @@ -248,7 +250,7 @@ podManagementPolicy: "Parallel"
# If you experience slow pod startups you probably want to set this to `false`.
enableServiceLinks: true

protocol: http
protocol: https
httpPort: 9200
transportPort: 9300

Expand Down Expand Up @@ -320,13 +322,6 @@ terminationGracePeriod: 120

sysctlVmMaxMapCount: 262144

readinessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 3
timeoutSeconds: 2000

## Use an alternate scheduler.
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
Expand Down
9 changes: 8 additions & 1 deletion charts/opensearch/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,15 @@ spec:
bash opensearch-docker-entrypoint.sh
{{- end }}

image: "{{ template "opensearch.dockerRegistry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
readinessProbe:
{{ toYaml .Values.readinessProbe | indent 10 }}
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.Version }}
startupProbe:
{{ toYaml .Values.startupProbe | indent 10 }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.httpPort }}
Expand Down Expand Up @@ -430,7 +437,7 @@ spec:
local path="${1}"
if [ -n "${USERNAME}" ] && [ -n "${PASSWORD}" ]; then
BASIC_AUTH="-u ${USERNAME}:${PASSWORD}"
elses
else
BASIC_AUTH=''
fi
curl -XGET -s -k --fail ${BASIC_AUTH} {{ .Values.protocol }}://{{ template "opensearch.masterService" . }}:{{ .Values.httpPort }}${path}
Expand Down
17 changes: 12 additions & 5 deletions charts/opensearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ podManagementPolicy: "Parallel"
# If you experience slow pod startups you probably want to set this to `false`.
enableServiceLinks: true

protocol: http
protocol: https
httpPort: 9200
transportPort: 9300

Expand Down Expand Up @@ -323,12 +323,19 @@ terminationGracePeriod: 120

sysctlVmMaxMapCount: 262144

startupProbe:
tcpSocket:
port: 9200
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 30
readinessProbe:
tcpSocket:
port: 9200
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 3
timeoutSeconds: 2000

## Use an alternate scheduler.
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
Expand Down
2 changes: 1 addition & 1 deletion ct.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# See https://github.com/helm/chart-testing#configuration
target-branch: 1.x
helm-extra-args: --timeout 800s
helm-extra-args: --timeout 1000s

0 comments on commit 0ceadf7

Please sign in to comment.