2019-11-07 09:24:27 +00:00
|
|
|
apiVersion: apps/v1
|
2019-07-22 13:22:10 +00:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: {{ include "passbook.fullname" . }}-static
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: {{ include "passbook.name" . }}
|
|
|
|
helm.sh/chart: {{ include "passbook.chart" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
2020-08-25 15:45:03 +00:00
|
|
|
k8s.passbook.beryju.org/component: static
|
2019-07-22 13:22:10 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: {{ include "passbook.name" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
2020-08-25 15:45:03 +00:00
|
|
|
k8s.passbook.beryju.org/component: static
|
2019-07-22 13:22:10 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: {{ include "passbook.name" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
2020-08-25 15:45:03 +00:00
|
|
|
k8s.passbook.beryju.org/component: static
|
2019-07-22 13:22:10 +00:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: {{ .Chart.Name }}-static
|
2020-08-25 16:02:51 +00:00
|
|
|
image: "{{ .Values.image.name_static }}:{{ .Values.image.tag }}"
|
2019-07-22 13:22:10 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
ports:
|
|
|
|
- name: http
|
2020-02-21 20:50:16 +00:00
|
|
|
containerPort: 80
|
2019-07-22 13:22:10 +00:00
|
|
|
protocol: TCP
|
|
|
|
livenessProbe:
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
timeoutSeconds: 5
|
|
|
|
httpGet:
|
2020-02-21 20:50:16 +00:00
|
|
|
path: /
|
2019-07-22 13:22:10 +00:00
|
|
|
port: http
|
|
|
|
readinessProbe:
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
timeoutSeconds: 5
|
|
|
|
httpGet:
|
2020-02-21 20:50:16 +00:00
|
|
|
path: /
|
2019-07-22 13:22:10 +00:00
|
|
|
port: http
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 10M
|
|
|
|
limits:
|
|
|
|
cpu: 20m
|
|
|
|
memory: 20M
|