-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(helm): add priority class name for pod (#2183)
add priorityClassname to pod definition
- Loading branch information
Showing
4 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
contrib/charts/dragonfly/ci/priorityclassname-values.golden.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
--- | ||
# Source: dragonfly/templates/serviceaccount.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: test-dragonfly | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.12.1" | ||
app.kubernetes.io/managed-by: Helm | ||
--- | ||
# Source: dragonfly/templates/service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: test-dragonfly | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.12.1" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 6379 | ||
targetPort: dragonfly | ||
protocol: TCP | ||
name: dragonfly | ||
selector: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
--- | ||
# Source: dragonfly/templates/deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: test-dragonfly | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
app.kubernetes.io/version: "v1.12.1" | ||
app.kubernetes.io/managed-by: Helm | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
template: | ||
metadata: | ||
annotations: | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: test | ||
spec: | ||
priorityClassName: high-priority | ||
serviceAccountName: test-dragonfly | ||
containers: | ||
- name: dragonfly | ||
image: "docker.dragonflydb.io/dragonflydb/dragonfly:v1.12.1" | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- name: dragonfly | ||
containerPort: 6379 | ||
protocol: TCP | ||
livenessProbe: | ||
exec: | ||
command: | ||
- /bin/sh | ||
- /usr/local/bin/healthcheck.sh | ||
failureThreshold: 3 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
readinessProbe: | ||
exec: | ||
command: | ||
- /bin/sh | ||
- /usr/local/bin/healthcheck.sh | ||
failureThreshold: 3 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
args: | ||
- "--alsologtostderr" | ||
resources: | ||
limits: {} | ||
requests: {} | ||
--- | ||
# Source: dragonfly/templates/extra-manifests.yaml | ||
apiVersion: scheduling.k8s.io/v1 | ||
description: This priority class should be used only for tests. | ||
globalDefault: false | ||
kind: PriorityClass | ||
metadata: | ||
name: high-priority | ||
value: 1000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
priorityClassName: "high-priority" | ||
|
||
extraObjects: | ||
- apiVersion: scheduling.k8s.io/v1 | ||
kind: PriorityClass | ||
metadata: | ||
name: high-priority | ||
value: 1000000 | ||
globalDefault: false | ||
description: "This priority class should be used only for tests." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters