Hello All, anyone know if this possible to create network policy, like that using pulumi?
apiVersion:
networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: disable-link-local-network
namespace: default
spec:
selector: all()
egress:
- action: Deny
protocol: TCP
destination:
nets:
- 169.254.169.254/32
...
and when I try to create itm there is
no Action field for NetworkPolicyEgressRuleArgs
Spec: netv1.NetworkPolicySpecArgs{
Egress: netv1.NetworkPolicyEgressRuleArray{
netv1.NetworkPolicyEgressRuleArgs{
Action: pulumi.String("Deny"),
Protocol: pulumi.String("TCP"),
Destination: pulumi.StringArrayMap{
#CCWP5TJ5U #pulumi #egress