-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
charts/cluster-warmer: Create chart (closes #101)
- Loading branch information
Showing
7 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v2 | ||
name: cluster-warmer | ||
description: A Helm Chart to deploy pods to force scaling in a node-pool to keep it warm | ||
version: 0.1.0 | ||
icon: https://raw.githubusercontent.com/snowplow-devops/helm-charts/master/docs/logo/snowplow.png | ||
home: https://github.com/snowplow-devops/helm-charts | ||
sources: | ||
- https://github.com/snowplow-devops/helm-charts | ||
maintainers: | ||
- name: jbeemster | ||
url: https://github.com/jbeemster | ||
email: [email protected] | ||
keywords: | ||
- cluster-autoscaler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# cluster-warmer | ||
|
||
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) | ||
|
||
A Helm Chart to deploy pods to force scaling in a node-pool to keep it warm | ||
|
||
**Homepage:** <https://github.com/snowplow-devops/helm-charts> | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| jbeemster | <[email protected]> | <https://github.com/jbeemster> | | ||
|
||
## Source Code | ||
|
||
* <https://github.com/snowplow-devops/helm-charts> | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| fullnameOverride | string | `""` | Overrides the full-name given to the deployment resources (default: .Release.Name) | | ||
| hpa.replicas | int | `1` | Number of replicas to setup to manage how many warm nodes are created | | ||
| image.isRepositoryPublic | bool | `true` | Whether the repository is public | | ||
| image.pullPolicy | string | `"IfNotPresent"` | The image pullPolicy to use | | ||
| image.repository | string | `"registry.k8s.io/pause"` | | | ||
| image.tag | string | `"3.9"` | | | ||
| resources | object | `{}` | Map of resource constraints for the warm pods (should be set to a sufficiently high number to trigger scaling) | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 50 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "app.fullname" -}} | ||
{{- if .Values.fullnameOverride -}} | ||
{{- .Values.fullnameOverride | trunc 50 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- .Release.Name | trunc 50 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "app.fullname" . }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ include "app.fullname" . }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ include "app.fullname" . }} | ||
spec: | ||
priorityClassName: {{ include "app.fullname" . }} | ||
terminationGracePeriodSeconds: 0 | ||
containers: | ||
- name: "{{ include "app.fullname" . }}" | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
imagePullPolicy: {{ default "IfNotPresent" .Values.image.pullPolicy }} | ||
resources: | ||
{{- toYaml .Values.resources | nindent 10 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: autoscaling/v1 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ include "app.fullname" . }} | ||
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: {{ include "app.fullname" . }} | ||
minReplicas: {{ .Values.hpa.replicas }} | ||
maxReplicas: {{ .Values.hpa.replicas }} | ||
targetCPUUtilizationPercentage: 95 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: scheduling.k8s.io/v1 | ||
kind: PriorityClass | ||
metadata: | ||
name: {{ include "app.fullname" . }} | ||
value: -1 | ||
globalDefault: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -- Overrides the full-name given to the deployment resources (default: .Release.Name) | ||
fullnameOverride: "" | ||
|
||
image: | ||
repository: "registry.k8s.io/pause" | ||
tag: "3.9" | ||
# -- Whether the repository is public | ||
isRepositoryPublic: true | ||
# -- The image pullPolicy to use | ||
pullPolicy: "IfNotPresent" | ||
|
||
# -- Map of resource constraints for the warm pods (should be set to a sufficiently high number to trigger scaling) | ||
resources: {} | ||
# requests: | ||
# cpu: 400m | ||
|
||
hpa: | ||
# -- Number of replicas to setup to manage how many warm nodes are created | ||
replicas: 1 |