Browse Source

Update network policy setting for Kubernetes 1.8 (#1879)

It is now enabled by default in 1.8 with the api changed
to networking.k8s.io/v1 instead of extensions/v1beta1.
pull/1883/head
Matthew Mosesohn 7 years ago
committed by GitHub
parent
commit
b0f04d925a
1 changed files with 2 additions and 0 deletions
  1. 2
      roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2

2
roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2

@ -78,7 +78,9 @@ spec:
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if enable_network_policy %} {% if enable_network_policy %}
{% if kube_version | version_compare('v1.8', '<') %}
- --runtime-config=extensions/v1beta1/networkpolicies=true - --runtime-config=extensions/v1beta1/networkpolicies=true
{% endif %}
{% endif %} {% endif %}
- --v={{ kube_log_level }} - --v={{ kube_log_level }}
- --allow-privileged=true - --allow-privileged=true

Loading…
Cancel
Save