Skip to content

Commit

Permalink
Update network policy setting for Kubernetes 1.8 (#1879)
Browse files Browse the repository at this point in the history
It is now enabled by default in 1.8 with the api changed
to networking.k8s.io/v1 instead of extensions/v1beta1.
  • Loading branch information
mattymo authored Oct 26, 2017
1 parent 7b78e68 commit b0f04d9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ spec:
{% endfor %}
{% endif %}
{% if enable_network_policy %}
{% if kube_version | version_compare('v1.8', '<') %}
- --runtime-config=extensions/v1beta1/networkpolicies=true
{% endif %}
{% endif %}
- --v={{ kube_log_level }}
- --allow-privileged=true
Expand Down

0 comments on commit b0f04d9

Please sign in to comment.