Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Helm chart #40

Merged
merged 2 commits into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ The YDB Kubernetes operator deploys and manages Yandex Database resources on a K
1. Helm 3.1.0+
2. Kubernetes 1.20+.
3. [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
4. Support for ([Dynamic Volume Provisioning](https://kubernetes.io/docs/concepts/storage/dynamic-provisioning/)).

## Limitations

Expand Down
2 changes: 1 addition & 1 deletion deploy/ydb-operator/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: 0.2.0
version: 0.3.0

# 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
29 changes: 16 additions & 13 deletions deploy/ydb-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
# YDB Kubernetes Operator Helm chart

## Parameters
## Add repo

### Docker image configuration
```console
helm repo add ydb https://charts.ydb.tech
helm repo update
```

| Name | Description | Value |
| ------------------ | ----------------------------------------- | ----------------------------------------- |
| `image.pullPolicy` | Политика скачивания образа | `IfNotPresent` |
| `image.repository` | Image repository | `cr.yandex/crpbo4q9lbgkn85vr1rm/operator` |
| `image.tag` | Image tag | `latest` |
| `imagePullSecrets` | Secrets to use for Docker registry access | `[]` |
_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._

## Install Chart

### Resource quotas
```console
# Helm
$ helm install [RELEASE_NAME] ydb/operator
```

| Name | Description | Value |
| -------------------- | ---------------------------------------------- | ----- |
| `resources.limits` | The resource limits for Operator container | `{}` |
| `resources.requests` | The requested resources for Operator container | `{}` |
## Configuration

See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments:

```console
helm show values ydb/operator
```
35 changes: 17 additions & 18 deletions deploy/ydb-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
## @section Docker image configuration
##

## YDB operator image
## Docker image configuration
##
image:
## @param image.pullPolicy Operator container pull policy
## Operator container pull policy
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
pullPolicy: IfNotPresent
## @param image.repository Operator image repository
repository: cr.yandex/yc/ydb-kubernetes-operator
## @param image.tag Operator image tag
tag: 0.2.0
tag: 0.4.3

## @param imagePullSecrets Secrets to use for Docker registry access
## Secrets to use for Docker registry access
## Secrets must be provided manually.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
## Example:
Expand All @@ -22,22 +17,20 @@ image:
##
imagePullSecrets: []

## @skip nameOverride
nameOverride: ""
## @skip fullnameOverride
fullnameOverride: ""

## @section Resource quotas
## Resource quotas
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
resources:
## @param resources.limits The resource limits for Operator container
## Например:
## The resource limits for Operator container
## Example:
## limits:
## cpu: 250m
## memory: 512Mi
limits: {}
## @param resources.requests The requested resources for Operator container
## Например:
## The requested resources for Operator container
## Example:
## requests:
## cpu: 250m
## memory: 256Mi
Expand All @@ -48,6 +41,8 @@ service:
type: ClusterIP

metrics:
## Create ServiceMonitor resources
##
enabled: true

webhook:
Expand All @@ -57,6 +52,10 @@ webhook:
type: ClusterIP
port: 9443

## If enabled, generate a self-signed certificate, then patch the webhook configurations with the generated data.
## On chart upgrades (or if the secret exists) the cert will not be re-generated. You can use this to provide your own
## certs ahead of time if you wish.
##
patch:
enabled: true
image:
Expand All @@ -74,15 +73,15 @@ webhook:
tolerations: []

## SecurityContext holds pod-level security attributes and common container settings.
## This defaults to non root user with uid 2000 and gid 2000. *v1.PodSecurityContext false
## This defaults to non-root user with uid 2000 and gid 2000. *v1.PodSecurityContext false
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
securityContext:
runAsGroup: 2000
runAsNonRoot: true
runAsUser: 2000

# Use certmanager to generate webhook certs
# Use cert-manager to generate webhook certs
certManager:
enabled: false
# self-signed root certificate
Expand Down
3 changes: 2 additions & 1 deletion samples/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ kind: Database
metadata:
name: database-sample
spec:
version: 21.4.30
image:
name: cr.yandex/crpl7ipeu79oseqhcgn2/ydb-oss:master
nodes: 6
resources:
containerResources:
Expand Down
Loading