Update my-recipes front image svc
This commit is contained in:
parent
d6ca703370
commit
2f8dc75aa8
@ -26,16 +26,28 @@ spec:
|
|||||||
name: http
|
name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
env:
|
env:
|
||||||
- name: PYTHONUNBUFFERED
|
{{- if .Values.backend.env }}
|
||||||
value: "1"
|
{{- range $key, $value := .Values.backend.env }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Release.Name }}-db-credentials
|
name: {{ .Release.Name }}-db-credentials
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /docs
|
||||||
|
port: http
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 5
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 30
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /docs
|
path: /docs
|
||||||
port: http
|
port: http
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
@ -43,7 +55,7 @@ spec:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /docs
|
path: /docs
|
||||||
port: http
|
port: http
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
failureThreshold: 2
|
failureThreshold: 2
|
||||||
|
|||||||
@ -25,6 +25,13 @@ spec:
|
|||||||
- containerPort: {{ .Values.frontend.service.targetPort }}
|
- containerPort: {{ .Values.frontend.service.targetPort }}
|
||||||
name: http
|
name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- with .Values.frontend.env }}
|
||||||
|
env:
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
|
|||||||
@ -41,6 +41,10 @@ frontend:
|
|||||||
port: 3000
|
port: 3000
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
|
|
||||||
|
env: {}
|
||||||
|
# Uncomment and set API_BASE if needed:
|
||||||
|
# API_BASE: "http://localhost:8000/api"
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
|
|||||||
@ -36,6 +36,8 @@ frontend:
|
|||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 3000
|
port: 3000
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
|
env:
|
||||||
|
API_BASE: "https://my-recipes.dvirlabs.com/api"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user