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

Migrate from frigate to sphinx-helm #924

Merged
merged 2 commits into from
Dec 16, 2024
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
6 changes: 1 addition & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ repos:
- id: black
language_version: python3
exclude: versioneer.py
- repo: https://github.com/rapidsai/frigate/
rev: v0.4.0 # pre-commit autoupdate - to keep the version up to date
hooks:
- id: frigate
- repo: local
hooks:
- id: check-crd-updates
Expand Down Expand Up @@ -50,4 +46,4 @@ repos:
|go\.sum
|dask_kubernetes/operator/go_client/.*\.go
)$
pass_filenames: false
pass_filenames: false
1 change: 0 additions & 1 deletion dask_kubernetes/operator/deployment/helm/README.md

This file was deleted.

3 changes: 3 additions & 0 deletions dask_kubernetes/operator/deployment/helm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dask Operator Helm Chart

See the [documentation](https://kubernetes.dask.org/en/latest/installing.html#operator) for installation information.
Original file line number Diff line number Diff line change
@@ -1,65 +1,3 @@
# Dask Operator Helm Chart

Dask-kubernetes-operator
===========

A helm chart for managing the deployment of the dask kubernetes operator and CRDs


## Configuration

The following table lists the configurable parameters of the Dask-kubernetes-operator chart and their default values.

| Parameter | Description | Default |
| ------------------------ | ----------------------- | -------------- |
| `image.name` | Docker image for the operator | `"ghcr.io/dask/dask-kubernetes-operator"` |
| `image.tag` | Release version | `"set-by-chartpress"` |
| `image.pullPolicy` | Pull policy | `"IfNotPresent"` |
| `imagePullSecrets` | Image pull secrets for private registries | `[]` |
| `nameOverride` | Override release name (not including random UUID) | `""` |
| `fullnameOverride` | Override full release name | `""` |
| `serviceAccount.create` | Create a service account for the operator to use | `true` |
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |
| `serviceAccount.name` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. | `""` |
| `rbac.create` | Create a Role/ClusterRole needed by the operator and bind it to the service account | `true` |
| `rbac.cluster` | Creates a ClusterRole if true, else create a namespaced Role | `true` |
| `podAnnotations` | Extra annotations for the operator pod | `{}` |
| `podSecurityContext` | Security context for the operator pod | `{}` |
| `securityContext.capabilities.drop` | | `["ALL"]` |
| `securityContext.runAsNonRoot` | | `true` |
| `securityContext.runAsUser` | | `1000` |
| `securityContext.allowPrivilegeEscalation` | | `false` |
| `securityContext.readOnlyRootFilesystem` | | `true` |
| `resources` | Resources for the operator pod | `{}` |
| `volumes` | Volumes for the operator pod | `[]` |
| `volumeMounts` | Volume mounts for the operator container | `[]` |
| `nodeSelector` | Node selector | `{}` |
| `tolerations` | Tolerations | `[]` |
| `affinity` | Affinity | `{}` |
| `priorityClassName` | Priority class | `null` |
| `livenessProbe.timeoutSeconds` | | `5` |
| `kopfArgs` | Command line flags to pass to kopf on start up | `["--all-namespaces"]` |
| `metrics.scheduler.enabled` | Enable scheduler metrics. Pip package [prometheus-client](https://pypi.org/project/prometheus-client/) should be present on scheduler. | `false` |
| `metrics.scheduler.serviceMonitor.enabled` | Enable scheduler servicemonitor. | `false` |
| `metrics.scheduler.serviceMonitor.namespace` | Deploy servicemonitor in different namespace, e.g. monitoring. | `""` |
| `metrics.scheduler.serviceMonitor.namespaceSelector` | Selector to select which namespaces the Endpoints objects are discovered from. | `{}` |
| `metrics.scheduler.serviceMonitor.additionalLabels` | Additional labels to add to the ServiceMonitor metadata. | `{}` |
| `metrics.scheduler.serviceMonitor.interval` | Interval at which metrics should be scraped. | `"15s"` |
| `metrics.scheduler.serviceMonitor.jobLabel` | The label to use to retrieve the job name from. | `""` |
| `metrics.scheduler.serviceMonitor.targetLabels` | TargetLabels transfers labels on the Kubernetes Service onto the target. | `["dask.org/cluster-name"]` |
| `metrics.scheduler.serviceMonitor.metricRelabelings` | MetricRelabelConfigs to apply to samples before ingestion. | `[]` |
| `metrics.worker.enabled` | Enable workers metrics. Pip package [prometheus-client](https://pypi.org/project/prometheus-client/) should be present on workers. | `false` |
| `metrics.worker.podMonitor.enabled` | Enable workers podmonitor | `false` |
| `metrics.worker.podMonitor.namespace` | Deploy podmonitor in different namespace, e.g. monitoring. | `""` |
| `metrics.worker.podMonitor.namespaceSelector` | Selector to select which namespaces the Endpoints objects are discovered from. | `{}` |
| `metrics.worker.podMonitor.additionalLabels` | Additional labels to add to the PodMonitor metadata. | `{}` |
| `metrics.worker.podMonitor.interval` | Interval at which metrics should be scraped. | `"15s"` |
| `metrics.worker.podMonitor.jobLabel` | The label to use to retrieve the job name from. | `""` |
| `metrics.worker.podMonitor.podTargetLabels` | PodTargetLabels transfers labels on the Kubernetes Pod onto the target. | `["dask.org/cluster-name", "dask.org/workergroup-name"]` |
| `metrics.worker.podMonitor.metricRelabelings` | MetricRelabelConfigs to apply to samples before ingestion. | `[]` |
| `workerAllocation.size` | | `null` |
| `workerAllocation.delay` | | `null` |



---
_Documentation generated by [Frigate](https://frigate.readthedocs.io)._
See the [documentation](https://kubernetes.dask.org/en/latest/installing.html#operator) for installation information.
2 changes: 1 addition & 1 deletion docs/requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sphinx
sphinx-reredirects
sphinxcontrib-mermaid
dask-sphinx-theme>=3.0.0
frigate>=0.7.0
sphinx-helm>=0.2.1

# FIXME: This workaround is required until we have sphinx>=5, as enabled by
# dask-sphinx-theme no longer pinning sphinx-book-theme==0.2.0. This is
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"numpydoc",
"sphinx_reredirects",
"sphinxcontrib.mermaid",
"frigate.sphinx.ext",
"sphinx_helm.ext",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ If you're using the official Dask images you can install this at runtime.
Chart Configuration Reference
"""""""""""""""""""""""""""""

.. frigate:: ../../dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator
.. helm:: ../../dask_kubernetes/operator/deployment/helm/dask-kubernetes-operator

Installing with Manifests
^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Loading