This commit is contained in:
ducoterra
2021-08-28 11:03:32 -04:00
commit cc24361355
7 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
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 }}"