Please add support for Kubernetes NetworkPolicy resource.
resource "kubernetes_namespace" "example" {
metadata {
name = "terraform-example-namespace"
}
}
# NOT IMPLEMENTED YET
resource "kubernetes_network_policy" "allow_all" {
metadata {
name = "allow-all"
namespace = "${kubernetes_namespace.example.metadata.0.name}"
}
spec {
pod_selector = {}
ingress = [{}]
egress = [{}]
}
}
Started work on this.
Note: supporting egress and policyTypes would require updating kubernetes/client-go and kubernetes/api dependencies to 1.8+ compatible versions.
Hi @pdecat,
Any news on this? We really wish to use it!
Thanks!
Sincerely,
lainra
https://github.com/terraform-providers/terraform-provider-kubernetes/pull/118
Looks like this introduces the new network policy resources and was merged today.
Indeed!
Most helpful comment
Hi @pdecat,
Any news on this? We really wish to use it!
Thanks!
Sincerely,
lainra