init
This commit is contained in:
25
testapp/templates/deployment.yaml
Normal file
25
testapp/templates/deployment.yaml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user