-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SYSTEMS-5246: Initial base chart based on helm create (#1)
- Loading branch information
Showing
12 changed files
with
343 additions
and
68 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
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
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 |
---|---|---|
@@ -1,24 +1,9 @@ | ||
apiVersion: v2 | ||
name: simple-app | ||
description: A Helm chart for Kubernetes | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
description: Default Microservice Helm Chart | ||
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.1.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: "1.16.0" | ||
version: 0.1.1 | ||
appVersion: "latest" | ||
maintainers: | ||
- name: diranged | ||
email: matt@nextdoor.com |
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,68 @@ | ||
# simple-app | ||
|
||
Default Microservice Helm Chart | ||
|
||
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) | ||
|
||
[deployments]: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ | ||
[hpa]: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ | ||
|
||
This chart provides a default deployment for a simple application that operates | ||
in a [Deployment][deployments]. The chart automatically configures various | ||
defaults for you like the Kubernetes [Horizontal Pod Autoscaler][hpa]. | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| affinity | object | `{}` | | | ||
| autoscaling.enabled | bool | `false` | | | ||
| autoscaling.maxReplicas | int | `100` | | | ||
| autoscaling.minReplicas | int | `1` | | | ||
| autoscaling.targetCPUUtilizationPercentage | int | `80` | | | ||
| env | list | `[]` | | | ||
| fullnameOverride | string | `""` | | | ||
| image.pullPolicy | string | `"IfNotPresent"` | (String) Always, Never or IfNotPresent | | ||
| image.repository | string | `"nginx"` | (String) The Docker image name and repository for your application | | ||
| image.tag | string | `""` | (String) Overrides the image tag whose default is the chart appVersion. | | ||
| imagePullSecrets | list | `[]` | If | | ||
| ingress.annotations."alb.ingress.kubernetes.io/actions.ssl-redirect" | string | `"{\"Type\": \"redirect\", \"RedirectConfig\": { \"Protocol\": \"HTTPS\", \"Port\": \"443\", \"StatusCode\": \"HTTP_301\" }}"` | | | ||
| ingress.enabled | bool | `false` | | | ||
| ingress.hosts[0].host | string | `"chart-example.local"` | | | ||
| ingress.hosts[0].path | string | `""` | | | ||
| ingress.hosts[0].sslRedirect | bool | `true` | | | ||
| ingress.tls | list | `[]` | | | ||
| ingressGateway.annotations | object | `{}` | | | ||
| ingressGateway.enabled | bool | `false` | (Boolean) Maps the Service to an Istio IngressGateway, exposing the service outside of the Kubernetes cluster. | | ||
| ingressGateway.gateway | string | `"default-gateway"` | | | ||
| ingressGateway.hosts | string | `"- {{ include \"simple-app.fullname\" . }}.{{ .Release.Namespace }}"` | | | ||
| ingressGateway.http | string | `"- match:\n - uri:\n prefix: /\n route:\n - destination:\n host: {{ include \"simple-app.fullname\" . }}\n port:\n number: {{ .Values.ingressGateway.port }}"` | (String) VirtualService "http" blob in text-form. This is run through the tpl function so you may use template variables here. | | ||
| ingressGateway.namespace | string | `"istio-system"` | | | ||
| ingressGateway.port | int | `80` | | | ||
| ingressGateway.tls | string | `""` | | | ||
| livenessProbe | object | `{"httpGet":{"path":"/","port":"http"}}` | A PodSpec container "livenessProbe" configuration object. Note that this livenessProbe will be applied to the proxySidecar container instead if that is enabled. | | ||
| nameOverride | string | `""` | | | ||
| nodeSelector | object | `{}` | | | ||
| podAnnotations | object | `{}` | | | ||
| podSecurityContext | object | `{}` | | | ||
| ports | list | `[{"containerPort":80,"name":"http","protocol":"TCP"},{"containerPort":443,"name":"https","protocol":"TCP"}]` | A list of Port objects that are exposed by the service. These ports are applied to the main container, or the proxySidecar container (if enabled). The port list is also used to generate Network Policies that allow ingress into the pods. | | ||
| proxySidecar.enabled | bool | `false` | (Boolean) Enables injecting a pre-defined reverse proxy sidecar container into the Pod containers list. | | ||
| proxySidecar.env | list | `[]` | (List) Environment variables passed into the proxy container | | ||
| proxySidecar.image.pullPolicy | string | `"Always"` | (String) Always, Never or IfNotPresent | | ||
| proxySidecar.image.repository | string | `"nginx"` | (String) The Docker image name and repository for the sidecar | | ||
| proxySidecar.image.tag | string | `"latest"` | (String) The Docker tag for the sidecar | | ||
| proxySidecar.name | string | `"proxy"` | (String) The name of the proxy sidecar container | | ||
| proxySidecar.resources | object | `{}` | A PodSpec "Resources" object for the proxy container | | ||
| readinessProbe | object | `{"httpGet":{"path":"/","port":"http"}}` | A PodSpec container "readinessProbe" configuration object. Note that this readinessProbe will be applied to the proxySidecar container instead if that is enabled. | | ||
| replicaCount | int | `1` | The number of Pods to start up by default | | ||
| resources | object | `{}` | | | ||
| securityContext | object | `{}` | | | ||
| service.port | int | `80` | | | ||
| service.type | string | `"ClusterIP"` | | | ||
| serviceAccount.annotations | object | `{}` | | | ||
| serviceAccount.create | bool | `true` | | | ||
| serviceAccount.name | string | `""` | | | ||
| tolerations | list | `[]` | | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.4.0](https://github.com/norwoodj/helm-docs/releases/v1.4.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,17 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} | ||
|
||
[deployments]: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/ | ||
[hpa]: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ | ||
|
||
This chart provides a default deployment for a simple application that operates | ||
in a [Deployment][deployments]. The chart automatically configures various | ||
defaults for you like the Kubernetes [Horizontal Pod Autoscaler][hpa]. | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesSection" . }} | ||
|
||
{{ template "helm-docs.versionFooter" . }} |
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
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
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 @@ | ||
{{- if .Values.ingress.enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: {{ include "simple-app.fullname" . }}-ingress-access | ||
labels: | ||
{{- include "simple-app.labels" . | nindent 4 }} | ||
spec: | ||
policyTypes: [Ingress] | ||
podSelector: | ||
matchLabels: | ||
{{- include "simple-app.selectorLabels" . | nindent 6 }} | ||
ingress: | ||
- ports: | ||
{{- range $port := .Values.ports }} | ||
- port: {{ $port.containerPort }} | ||
protocol: {{ $port.protocol }} | ||
{{- 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,24 @@ | ||
{{- if .Values.ingressGateway.enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: {{ include "simple-app.fullname" . }}-ingressgateway-access | ||
labels: | ||
{{- include "simple-app.labels" . | nindent 4 }} | ||
spec: | ||
policyTypes: [Ingress] | ||
podSelector: | ||
matchLabels: | ||
{{- include "simple-app.selectorLabels" . | nindent 6 }} | ||
ingress: | ||
- ports: | ||
{{- range $port := .Values.ports }} | ||
- port: {{ $port.containerPort }} | ||
protocol: {{ $port.protocol }} | ||
{{- end }} | ||
from: | ||
- namespaceSelector: {} | ||
podSelector: | ||
matchLabels: | ||
app: istio-ingressgateway | ||
{{- 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,25 @@ | ||
{{- if .Values.ingressGateway.enabled }} | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: {{ include "simple-app.fullname" . }} | ||
labels: | ||
{{- include "simple-app.labels" . | nindent 4 }} | ||
{{- with .Values.ingressGateway.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
hosts: | ||
{{- tpl .Values.ingressGateway.hosts . | nindent 4 }} | ||
gateways: | ||
- {{ .Values.ingressGateway.namespace }}/{{ .Values.ingressGateway.gateway }} | ||
{{- if .Values.ingressGateway.http }} | ||
http: | ||
{{- tpl .Values.ingressGateway.http . | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.ingressGateway.tls }} | ||
tls: | ||
{{- tpl .Values.ingressGateway.tls . | nindent 4 }} | ||
{{- 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
Oops, something went wrong.