Skip to content

Commit 71db6f6

Browse files
committed
priortiyClass example added
1 parent 00672a7 commit 71db6f6

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: scheduling.k8s.io/v1
2+
kind: PriorityClass
3+
metadata:
4+
name: service-critical
5+
value: 1000000
6+
globalDefault: false
7+
description: "Reserved for critical workloads. Pods with this class may preempt lower-priority pods during resource contention. Pods are Priority 0 by default."
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
apiVersion: rc.app.stacks/v1
2+
kind: RuntimeComponent
3+
metadata:
4+
name: payment-service
5+
spec:
6+
applicationImage: icr.io/appcafe/open-liberty/samples/getting-started@sha256:80a28b6a71ec02369cc13f621e4
7+
manageTLS: true
8+
resources:
9+
limits:
10+
cpu: 500m
11+
memory: 1Gi
12+
requests:
13+
cpu: 200m
14+
memory: 512Mi
15+
replicas: 2
16+
priorityClassName: service-critical
17+
service:
18+
port: 9443
19+
serviceAccount:
20+
mountToken: true
21+
probes:
22+
startup:
23+
failureThreshold: 12
24+
periodSeconds: 5
25+
httpGet:
26+
path: /health/started
27+
port: 9443
28+
readiness:
29+
httpGet:
30+
path: /health/ready
31+
port: 9443
32+
initialDelaySeconds: 1
33+
periodSeconds: 5
34+
failureThreshold: 24
35+
liveness:
36+
httpGet:
37+
path: /health/live
38+
port: 9443
39+
initialDelaySeconds: 8
40+
periodSeconds: 5
41+
42+

0 commit comments

Comments
 (0)