We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privilege-escalation
Terraform v0.11.10
Please list the resources as a list, for example:
resource "kubernetes_deployment" "processor" { metadata { name = "processor-${terraform.workspace}" namespace = "prod" } spec { replicas = 1 selector { match_labels { app = "processor-${terraform.workspace}" environment = "${terraform.workspace}" } } template { metadata { labels { app = "processor-${terraform.workspace}" environment = "${terraform.workspace}" } } spec { security_context { fs_group = 10001 run_as_non_root = true run_as_user = 10001 } container { name = "processor-${terraform.workspace}" security_context { allow_privilege_escalation = false capabilities { drop = ["ALL"] } privileged = false run_as_non_root = true run_as_user = 10001 } volume_mount { mount_path = "/tmp" name = "tmp" } } volume { name = "tmp" empty_dir = {} } } } } }
Error: kubernetes_deployment.processor: spec.0.template.0.spec.0.container.0.security_context.0: invalid or unknown key: allow_privilege_escalation
The resource should have been created
Error
terraform apply
The text was updated successfully, but these errors were encountered:
Need that too, I'm working on a PR right now.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privilege-escalation
Terraform Version
Terraform v0.11.10
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
Error: kubernetes_deployment.processor: spec.0.template.0.spec.0.container.0.security_context.0: invalid or unknown key: allow_privilege_escalation
Expected Behavior
The resource should have been created
Actual Behavior
Error
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: