Skip to content

Commit

Permalink
Merge pull request #4 from Scalr/update-readme
Browse files Browse the repository at this point in the history
Fix broken readme for agent-k8s chart
  • Loading branch information
Marat Komarov authored May 24, 2023
2 parents 4b81cf9 + 143cdc0 commit 48bff66
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 15 deletions.
6 changes: 6 additions & 0 deletions charts/agent-docker/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

## [v0.3.2]

### Updated

- Note about relation to agent-k8s chart.

## [v0.3.1]

### Added
Expand Down
8 changes: 7 additions & 1 deletion charts/agent-docker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: |
where runs are executed in [dind](https://hub.docker.com/_/docker) sidecar container.
Run phases are isolated into docker containers.
> **Note**
> We suggest to install this chart only is you already rely on scalr-agent,
> and migrating your AgentPool from other installation methods: e.g. rpm / deb / docker.
> For new deployments we encourage you to try the new [`agent-k8s`](/charts/agent-k8s) chart,
> that has many advantages over the `agent-docker`.
Kuberentes deployment doesn't scale on multiple replicas.
Consequently, the capacity of compute resources that can be managed
by a single agent remains constrained by a single node.
Expand All @@ -13,7 +19,7 @@ description: |
![Agent in Docker deployment diagram](/charts/agent-docker/assets/agent-docker-deploy-diagram.jpg)
type: application
version: 0.3.1
version: 0.3.2
appVersion: "0.1.33"
home: https://github.com/Scalr/agent-helm/tree/master/charts/agent-docker
maintainers:
Expand Down
8 changes: 7 additions & 1 deletion charts/agent-docker/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# agent-docker

![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.33](https://img.shields.io/badge/AppVersion-0.1.33-informational?style=flat-square)
![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.33](https://img.shields.io/badge/AppVersion-0.1.33-informational?style=flat-square)

A Helm chart for the scalr-agent deployment on ths Kubernetes cluster,
where runs are executed in [dind](https://hub.docker.com/_/docker) sidecar container.
Run phases are isolated into docker containers.

> **Note**
> We suggest to install this chart only is you already rely on scalr-agent,
> and migrating your AgentPool from other installation methods: e.g. rpm / deb / docker.
> For new deployments we encourage you to try the new [`agent-k8s`](/charts/agent-k8s) chart,
> that has many advantages over the `agent-docker`.
Kuberentes deployment doesn't scale on multiple replicas.
Consequently, the capacity of compute resources that can be managed
by a single agent remains constrained by a single node.
Expand Down
10 changes: 10 additions & 0 deletions charts/agent-k8s/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

## [v0.2.2]

### Fixed

- Improve the agent-k8s chart description
- Note about relation to agent-docker chart.

## [v0.2.1]

### Added

- Chart description
- Kubernetes deployment diagram

## [v0.2.0]

### Added

- Automatically rollout deployment on the Sclar token change

## [v0.1.0]

### Added

- Initial release.
7 changes: 6 additions & 1 deletion charts/agent-k8s/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ description: |
where runs are executed in Pods in the same cluster.
Run phases are isolated in kubernetes containers with resource limits.
> **Note**
> This new deployment architecture is currently in preview.
> It has many advantages over the [`agent-docker`](/charts/agent-docker) chart and
> would eventually replace it.
Agent pool DaemomSet scales up/down with the cluster, registering
and deregistering agents from the pool. When an Agent receives a job from Scalr,
it schedules a Pod for execution. The Kubernetes workload scheduler assigns the Pod
Expand All @@ -14,7 +19,7 @@ description: |
![Agent in Kubernetes deployment diagram](/charts/agent-k8s/assets/agent-k8s-deploy-diagram.jpg)
type: application
version: 0.2.1
version: 0.2.2
appVersion: "0.1.33"
home: https://github.com/Scalr/agent-helm/tree/master/charts/agent-k8s
maintainers:
Expand Down
17 changes: 11 additions & 6 deletions charts/agent-k8s/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# agent-k8s

![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.33](https://img.shields.io/badge/AppVersion-0.1.33-informational?style=flat-square)
![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.33](https://img.shields.io/badge/AppVersion-0.1.33-informational?style=flat-square)

A Helm chart for the scalr-agent deployment on the Kubernetes cluster,
where runs are executed in Pods in the same cluster.
Run phases are isolated in kubernetes containers with resource limits.

> **Note**
> This new deployment architecture is currently in preview.
> It has many advantages over the [`agent-docker`](/charts/agent-docker) chart and
> would eventually replace it.
Agent pool DaemomSet scales up/down with the cluster, registering
and deregistering agents from the pool. When an Agent receives a job from Scalr,
it schedules a Pod for execution. The Kubernetes workload scheduler assigns the Pod
Expand All @@ -27,11 +32,11 @@ linearly based on the load.

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| agent.container_task_cpu_limit | float | `8` | If your container only needs ¼ of a core, you would put a value of 0.25 cores. |
| agent.container_task_cpu_request | float | `1` | put the value 2. If your container only needs ¼ of a core, you would put a value of 0.25 cores. |
| agent.container_task_cpu_limit | float | `8` | CPU resource limit defined in cores. If your container needs two full cores to run, you would put the value 2. If your container only needs ¼ of a core, you would put a value of 0.25 cores. |
| agent.container_task_cpu_request | float | `1` | CPU resource request defined in cores. If your container needs two full cores to run, you would put the value 2. If your container only needs ¼ of a core, you would put a value of 0.25 cores. |
| agent.container_task_mem_limit | int | `16384` | Memory resource limit defined in megabytes. |
| agent.container_task_mem_request | int | `1024` | Memory resource request defined in megabytes. |
| agent.container_task_scheduling_timeout | int | `120` | does not allocate resources for the container in that timeout, the task will be switched to the errored status. |
| agent.container_task_scheduling_timeout | int | `120` | The container task's (e.g., Kubernetes Pod) scheduling timeout in seconds. The task will be waiting for the scheduling in the queued status; if the cluster does not allocate resources for the container in that timeout, the task will be switched to the errored status. |
| agent.data_home | string | `"/home/kubernetes/flexvolume/agent-k8s"` | The agent working directory on the cluster host node. |
| agent.debug | bool | `false` | Enable debug logs |
| agent.disconnect_on_stop | bool | `true` | Determines if the agent should automatically disconnect from the Scalr agent pool when the service is stopping. |
Expand All @@ -44,8 +49,8 @@ linearly based on the load.
| agent.worker_drain_timeout | int | `3600` | The timeout for draining worker tasks in seconds. After this timeout, tasks will be terminated via the SIGTERM signal. |
| agent.worker_on_stop_action | string | `"drain"` | Defines the SIGTERM/SIGHUP/SIGINT signal handler's shutdown behavior. Options: "drain" or "grace-shutdown" or "force-shutdown". |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"scalr/agent"` | |
| image.pullPolicy | string | `"Always"` | The pullPolicy for a container and the tag of the image. |
| image.repository | string | `"scalr/agent"` | Docker repository for the Scalr Agent image. |
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | |
| nameOverride | string | `""` | |
Expand Down
12 changes: 6 additions & 6 deletions charts/agent-k8s/values.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Default values for agent-k8s.

image:
# Docker repository for the Scalr Agent image.
# -- Docker repository for the Scalr Agent image.
repository: scalr/agent
# The pullPolicy for a container and the tag of the image.
# -- The pullPolicy for a container and the tag of the image.
pullPolicy: Always
# -- Overrides the image tag whose default is the chart appVersion.
tag: ""
Expand All @@ -28,14 +28,14 @@ agent:
# -- The agent working directory on the cluster host node.
data_home: "/home/kubernetes/flexvolume/agent-k8s"
# -- The container task's (e.g., Kubernetes Pod) scheduling timeout in seconds.
# -- The task will be waiting for the scheduling in the queued status; if the cluster
# -- does not allocate resources for the container in that timeout, the task will be switched to the errored status.
# The task will be waiting for the scheduling in the queued status; if the cluster
# does not allocate resources for the container in that timeout, the task will be switched to the errored status.
container_task_scheduling_timeout: 120
# -- CPU resource request defined in cores. If your container needs two full cores to run, you would
# -- put the value 2. If your container only needs ¼ of a core, you would put a value of 0.25 cores.
# put the value 2. If your container only needs ¼ of a core, you would put a value of 0.25 cores.
container_task_cpu_request: 1.0
# -- CPU resource limit defined in cores. If your container needs two full cores to run, you would put the value 2.
# -- If your container only needs ¼ of a core, you would put a value of 0.25 cores.
# If your container only needs ¼ of a core, you would put a value of 0.25 cores.
container_task_cpu_limit: 8.0
# -- Memory resource request defined in megabytes.
container_task_mem_request: 1024
Expand Down

0 comments on commit 48bff66

Please sign in to comment.