Skip to content

Commit

Permalink
add: priorityclass info
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Sep 16, 2023
1 parent 402432b commit 2927643
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .wordlist-md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Bitnami
CICD
CRD
CRDs
CSS
CheCluster
ClusterRoleBindings
ClusterTask
Expand Down Expand Up @@ -54,6 +55,7 @@ OpenShift
OperatorGroup
PV
PolicyReport
PriorityClasses
Prometheus
RBAC
README
Expand Down Expand Up @@ -200,6 +202,7 @@ popd
postgres
pre
prem
priorityclass
prometheus
pushd
pvc
Expand Down
16 changes: 16 additions & 0 deletions docs/PRIORITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Pod Priority

Before you set up PriorityClasses, there are a few things to consider.

- The pods without a `priorityClassName` will be treated as priority `0`.
- Use a consistent naming convention for all PriorityClasses.
- Make sure that the pods for your workloads are running with the right `PriorityClass`.

```
oc get priorityclass
oc describe priorityclass
```

## Links

- https://kubernetes.io/blog/2023/01/12/protect-mission-critical-pods-priorityclass
5 changes: 5 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@ check_venv(){
[ -e requirements.txt ] && pip install -q -r requirements.txt
}

check_bins(){
which python || exit 0
}

# activate python venv
check_venv

# chcek scripts
which shellcheck && shellcheck scripts/*.sh

# check spelling
which aspell && \
pyspelling -c .pyspelling.yml

# check yaml
Expand Down

0 comments on commit 2927643

Please sign in to comment.