Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add priority class #44

Merged
merged 3 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add priority class
  • Loading branch information
KongZ committed May 10, 2023
commit 0c0c7d59be8b4bec9baf0578327cc6bfa242821a
2 changes: 1 addition & 1 deletion charts/piggy-webhooks/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: piggy-webhooks
description: Deploys a piggy-webhooks that inject enviroment variaiables from AWS Secret Manager
type: application
version: 0.5.0
version: 0.5.1
appVersion: "0.5.0"
home: https://piggysec.com
icon: https://raw.githubusercontent.com/KongZ/piggy/main/docs/images/piggy.png
Expand Down
3 changes: 3 additions & 0 deletions charts/piggy-webhooks/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ spec:
{{ toYaml .Values.volumeMounts | nindent 12 }}
{{- end }}
{{- with .Values.nodeSelector }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
27 changes: 16 additions & 11 deletions charts/piggy-webhooks/values.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# Default values for piggy-webhooks.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
## Default values for piggy-webhooks.
## This is a YAML-formatted file.
## Declare variables to be passed into your templates.

replicaCount: 1

image:
repository: ghcr.io/kongz/piggy-webhooks
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
## Overrides the image tag whose default is the chart appVersion.
tag: "0.5.0"

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# Pod port
## Pod port
port: 8443

serviceAccount:
# Specifies whether a service account should be created
## Specifies whether a service account should be created
create: true
# Annotations to add to the service account
## Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
## The name of the service account to use.
## If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations: {}
Expand Down Expand Up @@ -73,10 +73,15 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

# Set number of pods from that can be unavailable after the eviction.
# It can be either an absolute number or a percentage.
## Set number of pods from that can be unavailable after the eviction.
## It can be either an absolute number or a percentage.
maxUnavailable: 1

## Specify the PriorityClass name for piggy.
## Default value is set to system-cluster-critical to ensure that piggy is always schedule first.
##
priorityClassName: system-cluster-critical

nodeSelector: {}

tolerations: []
Expand Down