Add base kubernetes support final fix 1
This commit is contained in:
@@ -111,29 +111,43 @@ spec:
|
|||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: bakery-config
|
name: bakery-config
|
||||||
key: GATEWAY_URL
|
key: GATEWAY_URL
|
||||||
|
- name: TRAINING_PERSISTENCE_PATH
|
||||||
|
value: "/app/training_state"
|
||||||
|
volumeMounts:
|
||||||
|
- name: training-state
|
||||||
|
mountPath: /app/training_state
|
||||||
|
- name: tmp-storage
|
||||||
|
mountPath: /tmp
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "100m"
|
|
||||||
limits:
|
|
||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
cpu: "500m"
|
cpu: "200m"
|
||||||
|
limits:
|
||||||
|
memory: "4Gi"
|
||||||
|
cpu: "2000m"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 8000
|
port: 8000
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 60
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 30
|
||||||
failureThreshold: 3
|
failureThreshold: 5
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 8000
|
port: 8000
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 15
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 15
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
volumes:
|
||||||
|
- name: training-state
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: training-state-pvc
|
||||||
|
- name: tmp-storage
|
||||||
|
emptyDir:
|
||||||
|
sizeLimit: 2Gi
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -154,3 +168,20 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: training-service
|
app.kubernetes.io/name: training-service
|
||||||
app.kubernetes.io/component: microservice
|
app.kubernetes.io/component: microservice
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: training-state-pvc
|
||||||
|
namespace: bakery-ia
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: training-service
|
||||||
|
app.kubernetes.io/component: storage
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
|
storageClassName: standard
|
||||||
Reference in New Issue
Block a user