Created
May 8, 2022 21:29
-
-
Save jwillker/2162d965ed42261d7a34a27bff05b194 to your computer and use it in GitHub Desktop.
Example from: https://github.com/gruntwork-io/terratest/blob/master/examples/helm-basic-example/templates/deployment.yaml
This file contains hidden or 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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: {{ include "helm-basic-example.fullname" . }} | |
| namespace: {{ .Release.Namespace }} | |
| labels: | |
| # These labels are required by helm. You can read more about required labels in the chart best pracices guide: | |
| # https://docs.helm.sh/chart_best_practices/#standard-labels | |
| helm.sh/chart: {{ include "helm-basic-example.chart" . }} | |
| app.kubernetes.io/name: {{ include "helm-basic-example.name" . }} | |
| app.kubernetes.io/instance: {{ .Release.Name }} | |
| app.kubernetes.io/managed-by: {{ .Release.Service }} | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app.kubernetes.io/name: {{ include "helm-basic-example.name" . }} | |
| app.kubernetes.io/instance: {{ .Release.Name }} | |
| template: | |
| metadata: | |
| labels: | |
| app.kubernetes.io/name: {{ include "helm-basic-example.name" . }} | |
| app.kubernetes.io/instance: {{ .Release.Name }} | |
| spec: | |
| containers: | |
| - name: app | |
| {{- $repo := required "containerImageRepo is required" .Values.containerImageRepo }} | |
| {{- $tag := required "containerImageTag is required" .Values.containerImageTag }} | |
| image: "{{ $repo }}:{{ $tag }}" | |
| ports: | |
| - containerPort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment