chore: update deployment template for production
This commit is contained in:
46
templates/deployment.yaml
Normal file
46
templates/deployment.yaml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}
|
||||||
|
labels:
|
||||||
|
app: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.replicas }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ .Release.Name }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}
|
||||||
|
labels:
|
||||||
|
app: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: {{ .Values.container.registryUri }}/lionsdev/{{ .Release.Name }}:{{ .Values.container.tag }}
|
||||||
|
name: {{ .Release.Name }}
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: {{ .Release.Name }}
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: {{ .Values.container.memory }}
|
||||||
|
cpu: {{ .Values.container.cpu }}
|
||||||
|
requests:
|
||||||
|
memory: {{ .Values.container.memoryRequest }}
|
||||||
|
cpu: {{ .Values.container.cpuRequest }}
|
||||||
|
ports:
|
||||||
|
- containerPort: {{ .Values.service.targetPort }}
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: {{ .Values.service.targetPort }}
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
readinessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: {{ .Values.service.targetPort }}
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 5
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: lionsregistry-secret
|
||||||
Reference in New Issue
Block a user