init
This commit is contained in:
commit
f8b377c347
10 changed files with 1147 additions and 0 deletions
32
helm-chart/templates/deployment.yaml
Normal file
32
helm-chart/templates/deployment.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
service: {{ .Values.name }}
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace | default .Values.name }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
service: {{ .Values.name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
service: {{ .Values.name }}
|
||||
spec:
|
||||
containers:
|
||||
- image: {{ .Values.image.repository }}/{{ .Values.name }}:{{ .Values.image.tag }}
|
||||
name: {{ .Values.name }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.port }}
|
||||
protocol: TCP
|
||||
resources:
|
||||
requests:
|
||||
cpu: {{ .Values.cpuRequest }}
|
||||
memory: {{ .Values.memoryRequest }}
|
||||
limits:
|
||||
cpu: {{ .Values.cpuLimit }}
|
||||
memory: {{ .Values.memoryLimit }}
|
||||
imagePullSecrets:
|
||||
- name: {{ .Values.imagePullSecret }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue