forked from digma-ai/otel-sample-app-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflaskdb-statefulset.yaml
More file actions
89 lines (87 loc) · 2.26 KB
/
Copy pathflaskdb-statefulset.yaml
File metadata and controls
89 lines (87 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
meta.helm.sh/release-name: petclinic
meta.helm.sh/release-namespace: pet-agentic-dev
creationTimestamp: "2025-08-11T14:43:35Z"
generation: 2
labels:
app.kubernetes.io/component: petclinic-flaskdb
name: petclinic-flaskdb
namespace: pet-agentic-dev
resourceVersion: "168531759"
uid: 9afe42b9-5e54-456f-8d1d-c361cf6facc6
spec:
persistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain
podManagementPolicy: OrderedReady
replicas: 0
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/component: petclinic-flaskdb
serviceName: petclinic-flaskdb
template:
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: petclinic-flaskdb
spec:
containers:
- args:
- |
pip install flask &&
python /app/app.py
command:
- /bin/sh
- -c
env:
- name: DATA_DIR
value: /data/db
image: python:3.11-slim
imagePullPolicy: IfNotPresent
name: flask-container
ports:
- containerPort: 27017
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /app
name: flask-source
- mountPath: /data/db
name: flaskdb-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
name: flask-app-config
name: flask-source
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
name: flaskdb-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
volumeMode: Filesystem