Files
truenas-test-app/testapp/templates/deployment.yaml
ducoterra cc24361355 init
2021-08-28 11:21:53 -04:00

26 lines
772 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata: {{ $fullname := printf "%s-%s" .Release.Name .Chart.Name | trunc 63 | trimSuffix "-" }}
name: {{ $fullname }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
spec:
selector:
matchLabels:
app: {{ $fullname }}
replicas: {{ default 1 .Values.replicaCount | int }}
template:
metadata:
labels:
app: {{ $fullname }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: {{ .Values.service.internalPort | int }}
env:
- name: APPNAME
value: "{{ .Values.APPNAME }}"