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

Move env to list to allow overwrite per item #23

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 2 additions & 3 deletions charts/multi-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ 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.5.5

version: 1.0.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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.1"
appVersion: "1.0.0"
26 changes: 14 additions & 12 deletions charts/multi-service/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# multi-service

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

A Helm chart for Kubernetes

Expand All @@ -27,16 +27,16 @@ A Helm chart for Kubernetes
| cronjob.startingDeadlineSeconds | string | `nil` | Optional deadline in seconds for starting the job |
| cronjob.successfulJobsHistoryLimit | int | `3` | The number of successful finished jobs to retain |
| cronjob.suspend | string | `"false"` | This flag tells the controller to suspend subsequent executions |
| env | object | `{}` | |
| env | list | `[]` | |
| envFrom | list | `[]` | |
| externalSecrets | object | `{"data":[],"enabled":false,"refreshInterval":"1h","secretStore":{"create":false,"kind":"","name":"","provider":{}}}` | --------------- |
| externalSecrets.data | list | `[]` | TBD |
| externalSecrets.enabled | bool | false | Specify external secrets enablement |
| externalSecrets.refreshInterval | string | `"1h"` | TBD |
| externalSecrets.secretStore.create | bool | `false` | TBD |
| externalSecrets.secretStore.kind | string | `""` | TBD |
| externalSecrets.secretStore.name | string | `""` | TBD |
| externalSecrets.secretStore.provider | object | `{}` | TBD |
| extraEnv | object | `{}` | |
| extraenv | object | `{}` | |
| fullnameOverride | string | `""` | Overrides the clusterName and nodeGroup when used in the naming of resources. This should only be used when using a single nodeGroup, otherwise you will have name conflicts |
| image.pullPolicy | string | `"IfNotPresent"` | The Kubernetes imagePullPolicy value |
| image.repository | string | `"hello-world"` | Docker image repository |
Expand All @@ -46,7 +46,7 @@ A Helm chart for Kubernetes
| ingresses | object | `{}` | |
| initContainers | list | `[]` | -------------- |
| keda | object | `{"apiVersion":"keda.sh/v1alpha1","behavior":{},"cooldownPeriod":300,"enabled":false,"fallback":{"failureThreshold":3},"maxReplicas":5,"minReplicas":1,"pollingInterval":30,"restoreToOriginalReplicaCount":false,"scaledObject":{"annotations":{}},"triggers":[]}` | --- |
| kind | string | `"Deployment"` | kind of deployment (Deployment or StatefulSet) |
| kind | string | `"Deployment"` | kind of deployment (Deployment, Cronjob or StatefulSet) |
| livenessProbe | object | `{}` | Enable livenessProbe |
| metrics | object | `{"enabled":false,"prometheusRule":{"alerting":{"rules":[]},"enabled":false,"labels":{},"recording":{"rules":[]}},"serviceMonitors":{}}` | --------- |
| metrics.enabled | bool | See values.yaml | Enable and configure a Prometheus serviceMonitor for the chart under this key. |
Expand All @@ -56,6 +56,7 @@ A Helm chart for Kubernetes
| minReadySeconds | int | `30` | Specifies the minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available |
| nameOverride | string | `""` | Overrides the clusterName when used in the naming of resources |
| nodeSelector | object | `{}` | Labels of the node(s) where the application pods are allowed to be executed in. Empty means 'any available node' https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector |
| pdb | object | `{"annotations":{},"enabled":false,"labels":{},"maxUnavailable":null,"minAvailable":null}` | -------------------- |
| pdb.annotations | object | `{}` | Annotations to be added to [Pod Disruption Budget] |
| pdb.enabled | bool | `false` | Configure [Pod Disruption Budget] |
| pdb.labels | object | `{}` | Labels to be added to [Pod Disruption Budget] |
Expand All @@ -70,10 +71,12 @@ A Helm chart for Kubernetes
| resources.requests.cpu | string | `"100m"` | CPU requests for the Deployment |
| resources.requests.memory | string | `"256Mi"` | Memory requests for the Deployment |
| revisionHistoryLimit | int | `3` | How many old ReplicaSets to maintain for the Deployment |
| rollouts | object | `{"blueGreen":{"enabled":false},"canary":{"abortScaleDownDelaySeconds":30,"analysis":{},"antiAffinity":{},"canaryMetadata":{"annotations":{"role":"canary"},"labels":{"role":"canary"}},"dynamicStableScale":false,"enabled":false,"maxSurge":"20%","maxUnavailable":1,"minPodsPerReplicaSet":1,"scaleDownDelayRevisionLimit":1,"scaleDownDelaySeconds":30,"stableMetadata":{"annotations":{"role":"stable"},"labels":{"role":"stable"}},"steps":[],"trafficRouting":{"nginx":{"additionalIngressAnnotations":{},"annotationPrefix":null,"enabled":true},"smi":{"enabled":false,"rootService":"","trafficSplitName":""}}},"enabled":false,"minReadySeconds":30,"revisionHistoryLimit":3,"rollbackWindow":3,"scaleDownDeployment":false}` | -------------- |
| rollouts.blueGreen.enabled | bool | `false` | Specify rollout blue-green enablement |
| rollouts.canary.abortScaleDownDelaySeconds | int | `30` | TBD |
| rollouts.canary.analysis | object | `{}` | TBD |
| rollouts.canary.antiAffinity | object | `{}` | TBD |
| rollouts.canary.canaryMetadata | object | `{"annotations":{"role":"canary"},"labels":{"role":"canary"}}` | TBD |
| rollouts.canary.canaryMetadata.annotations | object | `{"role":"canary"}` | TBD |
| rollouts.canary.canaryMetadata.labels | object | `{"role":"canary"}` | TBD |
| rollouts.canary.dynamicStableScale | bool | `false` | TBD |
Expand All @@ -83,12 +86,16 @@ A Helm chart for Kubernetes
| rollouts.canary.minPodsPerReplicaSet | int | `1` | TBD |
| rollouts.canary.scaleDownDelayRevisionLimit | int | `1` | TBD |
| rollouts.canary.scaleDownDelaySeconds | int | `30` | Enable scaleDownDelaySeconds. Ignored if dynamicStableScale=true |
| rollouts.canary.stableMetadata | object | `{"annotations":{"role":"stable"},"labels":{"role":"stable"}}` | TBD |
| rollouts.canary.stableMetadata.annotations | object | `{"role":"stable"}` | TBD |
| rollouts.canary.stableMetadata.labels | object | `{"role":"stable"}` | TBD |
| rollouts.canary.steps | list | `[]` | Specify canary steps |
| rollouts.canary.trafficRouting | object | `{"nginx":{"additionalIngressAnnotations":{},"annotationPrefix":null,"enabled":true},"smi":{"enabled":false,"rootService":"","trafficSplitName":""}}` | TBD |
| rollouts.canary.trafficRouting.nginx | object | `{"additionalIngressAnnotations":{},"annotationPrefix":null,"enabled":true}` | TBD |
| rollouts.canary.trafficRouting.nginx.additionalIngressAnnotations | object | `{}` | Specify additional Ingress Annotation for traffic routing |
| rollouts.canary.trafficRouting.nginx.annotationPrefix | string | `nil` | TBD |
| rollouts.canary.trafficRouting.nginx.enabled | bool | true | TBD |
| rollouts.canary.trafficRouting.smi | object | `{"enabled":false,"rootService":"","trafficSplitName":""}` | TBD |
| rollouts.canary.trafficRouting.smi.enabled | bool | `false` | TBD |
| rollouts.canary.trafficRouting.smi.rootService | string | `""` | TBD |
| rollouts.canary.trafficRouting.smi.trafficSplitName | string | `""` | TBD |
Expand All @@ -102,12 +109,7 @@ A Helm chart for Kubernetes
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| services | list | `[{"annotations":{},"labels":{},"name":"example1","ports":{"name":"http","port":80,"protocol":"TCP","targetPort":1000},"type":"ClusterIP"},{"name":"example2","ports":{"name":"http","port":90,"protocol":"TCP","targetPort":9090},"type":"ClusterIP"}]` | ------- |
| slo[0].metric | string | `"http_request_duration_seconds_bucket{status=\"200\", le=\"0.25\"}"` | |
| slo[0].metricTotal | string | `"http_request_duration_seconds_count{status=\"200\"}"` | |
| slo[0].type | string | `"latency"` | |
| slo[1].metric | string | `"http_requests{status=~\"5..\"}"` | |
| slo[1].metricTotal | string | `"http_requests"` | |
| slo[1].type | string | `"ratio"` | |
| slo | list | `[]` | TBD |
| startupProbe | object | `{}` | Enable startupProbe |
| strategy | object | `{"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"}` | Specifies the strategy used to replace old Pods by new ones |
| terminationGracePeriodSeconds | int | `60` | TBD |
Expand All @@ -122,4 +124,4 @@ A Helm chart for Kubernetes
| volumes | list | `[]` | ------ |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Autogenerated from chart metadata using [helm-docs v1.7.0](https://github.com/norwoodj/helm-docs/releases/v1.7.0)
15 changes: 7 additions & 8 deletions charts/multi-service/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,15 @@ spec:
{{- toYaml .Values.securityContext | nindent 16 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if or .Values.env .Values.extraenv .Values.extraEnv }}
{{- if or .Values.env .Values.envFrom }}
env:
{{- with .Values.env }}
{{- toYaml . | nindent 16 }}
{{- end }}
{{- with .Values.extraenv }}
{{- toYaml . | nindent 16 }}
{{- range $key, $value := .Values.env }}
- name: {{ quote $key }}
value: {{ quote $value }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 16 }}
{{- range $key, $value := .Values.envFrom }}
{{- toYaml $value | nindent 16 }}
name: {{ quote $key }}
{{- end }}
{{- end }}
resources:
Expand Down
15 changes: 7 additions & 8 deletions charts/multi-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,15 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if or .Values.env .Values.extraenv .Values.extraEnv }}
{{- if or .Values.env }}
env:
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- range $key, $value := .Values.env }}
- name: {{ quote $key }}
value: {{ quote $value }}
{{- end }}
{{- with .Values.extraenv }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- range $key, $value := .Values.envFrom }}
{{- toYaml $value | nindent 16 }}
name: {{ quote $key }}
{{- end }}
{{- end }}
ports:
Expand Down
19 changes: 9 additions & 10 deletions charts/multi-service/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,17 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if or .Values.env .Values.extraenv .Values.extraEnv }}
{{- if or .Values.env }}
env:
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- range $key, $value := .Values.env }}
- name: {{ quote $key }}
value: {{ quote $value }}
{{- end }}
{{- range $key, $value := .Values.envFrom }}
{{- toYaml $value | nindent 16 }}
name: {{ quote $key }}
{{- end }}
{{- end }}
{{- with .Values.extraenv }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
ports:
{{- toYaml .Values.ports | nindent 12 }}
livenessProbe:
Expand Down
32 changes: 16 additions & 16 deletions charts/multi-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fullnameOverride: ""

# -- Number of replicas
replicaCount: 1
# -- kind of deployment (Deployment or StatefulSet)
# -- kind of deployment (Deployment, Cronjob or StatefulSet)
kind: Deployment
# -- How many old ReplicaSets to maintain for the Deployment
revisionHistoryLimit: 3
Expand Down Expand Up @@ -133,21 +133,21 @@ tolerations: []
# -- Instruct the kube-scheduler how to place each incoming Pod in relation to the existing Pods across your cluster
topologySpreadConstraints: []

env: {}
# - name: NAME
# valueFrom:
# secretKeyRef:
# name: KEY_NAME
# key: SECRET_KEY

extraenv: {}
extraEnv: {}
# - name: NAME
# valueFrom:
# secretKeyRef:
# name: KEY_NAME
# key: SECRET_KEY

env: []
# FOO: BAR
# BAR: FOO

envFrom: []
# FOOBAR:
# - valueFrom:
# secretKeyRef:
# name: FOOBAR
# key: FOOBAR
# TEST:
# - valueFrom:
# secretKeyRef:
# name: KEY_NAME_TEST
# key: SECRET_KEY_TEST

# ---------
# Services
Expand Down