-
Notifications
You must be signed in to change notification settings - Fork 11
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 terraform module #1049
add terraform module #1049
Conversation
source = "git:https://github.com/pomerium/ingress-controller//terraform?ref=v0.28.0" | ||
} | ||
|
||
resource "kubernetes_manifest" "pomerium_config" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the installation and configuration need be split into separate steps, due to hashicorp/terraform-provider-kubernetes#1367
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also use kubectl_manifest
instead of kubernetes_manifest
, which doesn't have this issue.
resource "kubectl_manifest" "pomerium_config" {
yaml_body = <<YAML
apiVersion: ingress.pomerium.io/v1
kind: Pomerium
metadata:
name: global
spec:
secrets: pomerium-ingress-controller/bootstrap
YAML
}
run_as_non_root = true | ||
} | ||
|
||
node_selector = merge(local.default_node_selector, var.node_selector) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: It's sometimes nicer to do a merge in the local variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean :
node_selector = local.node_selector
and then have
locals {
default_node_selector = {...}
node_selector = merge(local.default_node_selector, var.node_selector)
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Or local.computed_node_selector
to denote it's not a single-sourced value.
…roxy_node_port_https option for NodePort service type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Related issues
https://github.com/pomerium/internal/issues/1970
Checklist
improvement
/bug
/ etc)