Skip to content

Commit

Permalink
Fix compliance issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Aug 8, 2023
1 parent eaa0e15 commit b969951
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ locals {
}

resource "kubernetes_deployment_v1" "this" {

Check failure on line 6 in deployment.tf

View workflow job for this annotation

GitHub Actions / scan

CKV_K8S_37: "Minimise the admission of containers with capabilities assigned"

Check failure on line 6 in deployment.tf

View workflow job for this annotation

GitHub Actions / scan

CKV_K8S_22: "Use read-only filesystem for containers where possible"
#bridgecrew:skip=CKV_K8S_35: "Prefer using secrets as files over secrets as environment variables". Secrets are provided as env vars for easier integration.
#bridgecrew:skip=CKV_K8S_43: "Image should use digest". Image digest is not available yet.
wait_for_rollout = false

metadata {
Expand Down Expand Up @@ -41,12 +43,31 @@ resource "kubernetes_deployment_v1" "this" {
}

resources {
requests = {
cpu = var.cpu
memory = var.memory
}

limits = {
cpu = var.cpu
memory = var.memory
}
}

liveness_probe {
failure_threshold = 3
success_threshold = 1
initial_delay_seconds = 0
period_seconds = 10
timeout_seconds = 1

http_get {
scheme = "HTTP"
path = "/"
port = var.port
}
}

readiness_probe {
failure_threshold = 3
success_threshold = 1
Expand Down

0 comments on commit b969951

Please sign in to comment.