Skip to content

Instantly share code, notes, and snippets.

@jwillker
Created May 8, 2022 21:29
Show Gist options
  • Select an option

  • Save jwillker/2162d965ed42261d7a34a27bff05b194 to your computer and use it in GitHub Desktop.

Select an option

Save jwillker/2162d965ed42261d7a34a27bff05b194 to your computer and use it in GitHub Desktop.
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