Skip to content

Commit

Permalink
Add deployment yaml for example
Browse files Browse the repository at this point in the history
  • Loading branch information
FFFFFaraway committed Aug 14, 2022
1 parent c8ec470 commit f547a05
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config/busybox.yaml → config/pending-example.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: busybox
name: pending-example
namespace: sw
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: busybox
template:
metadata:
labels:
app: busybox
pod-group.scheduling.bdap.com/podgroup-configmap: example-pg
spec:
schedulerName: scheduler-framework-sample
terminationGracePeriodSeconds: 5
containers:
- image: busybox:latest
imagePullPolicy: IfNotPresent
- image: busybox
name: busybox
command: ["sleep", "3600"]
command: ["sleep", "infinity"]
8 changes: 8 additions & 0 deletions config/podgroup-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: example-pg
namespace: sw
data:
minAvailable: "3"
scheduleTimeoutSeconds: "5"
21 changes: 21 additions & 0 deletions config/running-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: running-example
namespace: sw
spec:
replicas: 3
selector:
matchLabels:
app: busybox
template:
metadata:
labels:
app: busybox
pod-group.scheduling.bdap.com/podgroup-configmap: example-pg
spec:
schedulerName: scheduler-framework-sample
containers:
- image: busybox
name: busybox
command: ["sleep", "infinity"]

0 comments on commit f547a05

Please sign in to comment.