|
1 | 1 | apiVersion: apps/v1 |
2 | 2 | kind: Deployment |
3 | 3 | metadata: |
4 | | - name: kserve-models-web-app |
| 4 | + name: kserve-models-web-application |
5 | 5 | namespace: kserve |
6 | 6 | spec: |
7 | 7 | replicas: 1 |
8 | 8 | selector: |
9 | 9 | matchLabels: |
10 | | - app.kubernetes.io/component: kserve-models-web-app |
| 10 | + app.kubernetes.io/component: kserve-models-web-application |
11 | 11 | template: |
12 | 12 | metadata: |
13 | 13 | labels: |
14 | | - app.kubernetes.io/component: kserve-models-web-app |
| 14 | + app.kubernetes.io/component: kserve-models-web-application |
15 | 15 | spec: |
16 | 16 | securityContext: |
17 | 17 | runAsNonRoot: true |
18 | 18 | seccompProfile: |
19 | 19 | type: RuntimeDefault |
20 | 20 | containers: |
21 | | - - image: kserve/models-web-app:latest |
22 | | - imagePullPolicy: Always |
23 | | - name: kserve-models-web-app |
24 | | - env: |
25 | | - - name: GUNICORN_CMD_ARGS |
26 | | - value: --limit-request-field_size 32000 |
27 | | - envFrom: |
28 | | - - configMapRef: |
29 | | - name: kserve-models-web-app-config |
30 | | - ports: |
31 | | - - containerPort: 5000 |
32 | | - name: http |
33 | | - livenessProbe: |
34 | | - httpGet: |
35 | | - path: /healthz/liveness |
36 | | - port: http |
37 | | - initialDelaySeconds: 0 |
38 | | - periodSeconds: 10 |
39 | | - timeoutSeconds: 1 |
40 | | - failureThreshold: 3 |
41 | | - successThreshold: 1 |
42 | | - readinessProbe: |
43 | | - httpGet: |
44 | | - path: /healthz/readiness |
45 | | - port: http |
46 | | - initialDelaySeconds: 0 |
47 | | - periodSeconds: 10 |
48 | | - timeoutSeconds: 1 |
49 | | - failureThreshold: 3 |
50 | | - successThreshold: 1 |
51 | | - securityContext: |
52 | | - allowPrivilegeEscalation: false |
53 | | - capabilities: |
54 | | - drop: |
55 | | - - ALL |
56 | | - runAsUser: 1000 |
57 | | - serviceAccountName: kserve-models-web-app |
| 21 | + - image: kserve/models-web-app:latest |
| 22 | + imagePullPolicy: Always |
| 23 | + name: kserve-models-web-application |
| 24 | + env: |
| 25 | + - name: GUNICORN_CMD_ARGS |
| 26 | + value: --limit-request-field_size 32000 |
| 27 | + envFrom: |
| 28 | + - configMapRef: |
| 29 | + name: kserve-models-web-application-config |
| 30 | + ports: |
| 31 | + - containerPort: 5000 |
| 32 | + name: http |
| 33 | + livenessProbe: |
| 34 | + httpGet: |
| 35 | + path: /healthz/liveness |
| 36 | + port: http |
| 37 | + initialDelaySeconds: 0 |
| 38 | + periodSeconds: 10 |
| 39 | + timeoutSeconds: 1 |
| 40 | + failureThreshold: 3 |
| 41 | + successThreshold: 1 |
| 42 | + readinessProbe: |
| 43 | + httpGet: |
| 44 | + path: /healthz/readiness |
| 45 | + port: http |
| 46 | + initialDelaySeconds: 0 |
| 47 | + periodSeconds: 10 |
| 48 | + timeoutSeconds: 1 |
| 49 | + failureThreshold: 3 |
| 50 | + successThreshold: 1 |
| 51 | + securityContext: |
| 52 | + allowPrivilegeEscalation: false |
| 53 | + capabilities: |
| 54 | + drop: |
| 55 | + - ALL |
| 56 | + runAsUser: 1000 |
| 57 | + serviceAccountName: kserve-models-web-application |
0 commit comments