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

Helm v3 #75

Closed
wants to merge 7 commits into from
Closed
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: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
charts/*
index.yaml
test.yaml
*.lock
25 changes: 25 additions & 0 deletions LABEL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Migrate to new labels without downtime

1. Delete deployment with `--cascade=false`
2. Delete the corresponding replicaset with `--cascade=false` too
3. Add label to orphaned pods to match the new service selector
4. Deploy the Helm Chart
5. Wait for the newly created pods to get ready
6. Delete orphaned pods using old selector labels


## Example
```bash
kubectl delete deploy -l release=[RELEASE],app=[NAME] --cascade=false
```
```bash
kubectl delete rs -l release=[RELEASE],app=[NAME] --cascade=false
```
```bash
kubectl label pods -l release=[RELEASE],app=[NAME] \
app.kubernetes.io/instance=[RELEASE] \
app.kubernetes.io/name=[NAME]
```
```bash
kubectl delete pods -l release=[RELEASE],app=[NAME]
```
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

## Project Status

As of [PR #75](https://github.com/t3n/helm-charts/pull/75) we dropped support for Helm v2 and switched to Helm Chart apiVersion v2. We also switched labels to [Recommended Labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/). A detailed introduction on how to migrate without downtime can be found [here](LABEL.md)

This project is still under active development, so you might run into [issues](https://github.com/t3n/helm-charts/issues). If you do, please don't be shy about letting us know, or better yet, contribute a fix or feature.
We will also add more charts over time, so keep an eye on this repository.

Expand Down
4 changes: 2 additions & 2 deletions cloudsql-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
apiVersion: v2
name: cloudsql-proxy
version: 1.0.1
version: 2.0.0
appVersion: 1.16
description: Google Cloud SQL Proxy
keywords:
Expand Down
12 changes: 6 additions & 6 deletions cloudsql-proxy/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ Create the name of the service account to use
Common labels
*/}}
{{- define "cloudsql-proxy.labels" -}}
app: {{ include "cloudsql-proxy.name" . }}
chart: {{ include "cloudsql-proxy.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: cloudsql-proxy
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "cloudsql-proxy.chart" . }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "cloudsql-proxy.selector" -}}
app: {{ include "cloudsql-proxy.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: cloudsql-proxy
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
10 changes: 8 additions & 2 deletions dashkiosk/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
apiVersion: v1
apiVersion: v2
name: dashkiosk
description: Managing dashboards on various displays (especially those running on Android)
version: 1.0.0
version: 2.0.0
appVersion: 2.7.8

dependencies:
- name: mysql-backup
version: ~1.0.1
condition: mysql-backup.enabled
repository: https://storage.googleapis.com/t3n-helm-charts
6 changes: 0 additions & 6 deletions dashkiosk/requirements.lock

This file was deleted.

5 changes: 0 additions & 5 deletions dashkiosk/requirements.yaml

This file was deleted.

12 changes: 6 additions & 6 deletions dashkiosk/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ Create chart name and version as used by the chart label.
Common labels
*/}}
{{- define "dashkiosk.labels" -}}
app: {{ include "dashkiosk.name" . }}
chart: {{ include "dashkiosk.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: dashkiosk
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "dashkiosk.chart" . }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "dashkiosk.selector" -}}
app: {{ include "dashkiosk.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: dashkiosk
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
4 changes: 4 additions & 0 deletions dashkiosk/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{{- if .Values.ingress.enabled }}
{{- $fullName := .Chart.Name }}
{{- $ingressPath := .Values.ingress.path }}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ include "dashkiosk.fullname" . }}
Expand Down
4 changes: 2 additions & 2 deletions external-service/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
apiVersion: v2
name: external-service
description: Easily manage external services
version: 0.2.1
version: 1.0.0
8 changes: 4 additions & 4 deletions external-service/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Create chart name and version as used by the chart label.
Common labels
*/}}
{{- define "external-service.labels" -}}
app: {{ include "external-service.name" . }}
chart: {{ include "external-service.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: external-service
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "external-service.chart" . }}
{{- end -}}
4 changes: 2 additions & 2 deletions fop/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
apiVersion: v2
appVersion: "2.1"
description: A Helm chart for Apache-FOP HTTP
name: fop
version: 0.3.1
version: 1.0.0
12 changes: 6 additions & 6 deletions fop/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ Create chart name and version as used by the chart label.
Common labels
*/}}
{{- define "fop.labels" -}}
app: {{ include "fop.name" . }}
chart: {{ include "fop.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: fop
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "fop.chart" . }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "fop.selector" -}}
app: {{ include "fop.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: fop
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
4 changes: 2 additions & 2 deletions gtmetrix-bq/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
apiVersion: v2
appVersion: "0.2.0"
description: A script running browser test of specified urls through GTmetrix and saving metrics in BigQuery.
name: gtmetrix-bq
version: 0.1.2
version: 1.0.0
12 changes: 6 additions & 6 deletions gtmetrix-bq/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ Create chart name and version as used by the chart label.
Common labels
*/}}
{{- define "gtmetrix-bq.labels" -}}
app: {{ include "gtmetrix-bq.name" . }}
chart: {{ include "gtmetrix-bq.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: gtmetrix-bq
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "gtmetrix-bq.chart" . }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "gtmetrix-bq.selector" -}}
app: {{ include "gtmetrix-bq.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: gtmetrix-bq
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
6 changes: 3 additions & 3 deletions loki/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
apiVersion: v2
name: loki
version: 0.3.0
version: 1.0.0
appVersion: 1.5.0
desciption: simplefied upstream chart
desciption: simplified upstream chart
12 changes: 6 additions & 6 deletions loki/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ Create chart name and version as used by the chart label.
Common labels
*/}}
{{- define "loki.labels" -}}
app: {{ include "loki.name" . }}
chart: {{ include "loki.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: loki
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "loki.chart" . }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "loki.selector" -}}
app: {{ include "loki.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: loki
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
4 changes: 2 additions & 2 deletions mosquitto/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
apiVersion: v2
appVersion: "1.6"
description: Eclipse Mosquitto is an open source message broker which implements MQTT version 5, 3.1.1 and 3.1
name: mosquitto
version: 0.1.1
version: 1.0.0
12 changes: 6 additions & 6 deletions mosquitto/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ Create chart name and version as used by the chart label.
Common labels
*/}}
{{- define "mosquitto.labels" -}}
app: {{ include "mosquitto.name" . }}
chart: {{ include "mosquitto.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: mosquitto
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "mosquitto.chart" . }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "mosquitto.selector" -}}
app: {{ include "mosquitto.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: mosquitto
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}

{{/*
Expand Down
4 changes: 2 additions & 2 deletions mysql-backup/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v1
apiVersion: v2
name: mysql-backup
version: 1.1.0
version: 2.0.0
12 changes: 6 additions & 6 deletions mysql-backup/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ Create filename
Common labels
*/}}
{{- define "mysql-backup.labels" -}}
app: {{ include "mysql-backup.name" . }}
chart: {{ include "mysql-backup.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: mysql-backup
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "mysql-backup.chart" . }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "mysql-backup.selector" -}}
app: {{ include "mysql-backup.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: mysql-backup
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
4 changes: 2 additions & 2 deletions pi-hole/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
apiVersion: v2
appVersion: "4.4"
description: A black hole for Internet advertisements
name: pi-hole
version: 0.1.1
version: 1.0.0
12 changes: 6 additions & 6 deletions pi-hole/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ Create chart name and version as used by the chart label.
Common labels
*/}}
{{- define "pi-hole.labels" -}}
app: {{ include "pi-hole.name" . }}
chart: {{ include "pi-hole.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: pi-hole
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "pi-hole.chart" . }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "pi-hole.selector" -}}
app: {{ include "pi-hole.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: pi-hole
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}

{{/*
Expand Down
4 changes: 2 additions & 2 deletions promtail/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
apiVersion: v2
name: promtail
version: 0.2.0
version: 1.0.0
desciption: simplefied upstream chart
12 changes: 6 additions & 6 deletions promtail/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ Create the name of the service account
Common labels
*/}}
{{- define "promtail.labels" -}}
app: {{ include "promtail.name" . }}
chart: {{ include "promtail.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
app.kubernetes.io/name: promtail
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "promtail.chart" . }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "promtail.selector" -}}
app: {{ include "promtail.name" . }}
release: {{ .Release.Name }}
app.kubernetes.io/name: promtail
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
12 changes: 11 additions & 1 deletion python/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
apiVersion: v1
apiVersion: v2
name: python
version: 1.0.0

dependencies:
- name: redis-ha
version: ~3.11.0
repository: https://kubernetes-charts.storage.googleapis.com/
condition: redis.enabled
- name: postgresql
version: ~8.6.0
repository: https://kubernetes-charts.storage.googleapis.com/
condition: postgresql.enabled
6 changes: 0 additions & 6 deletions python/requirements.lock

This file was deleted.

Loading