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_name #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ module "alb_ingress_controller" {

aws_region_name = data.aws_region.current.name
k8s_cluster_name = data.aws_eks_cluster.target.name
priority_class_name = "priority class name"
}
```
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ resource "kubernetes_deployment" "this" {

restart_policy = "Always"

priority_class_name = var.priority_class_name

container {
name = "server"
image = local.aws_alb_ingress_controller_docker_image
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ variable "aws_alb_ingress_controller_version" {
type = string
default = "1.1.7"
}

variable "priority_class_name" {
type = string
default = ""
}