Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
add configurable IPVS proxy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlawr committed Dec 7, 2018
1 parent 801d93d commit 2ff4602
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions infra-templates/k8s/55/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Warning: If you are using the `aws` cloud provider, tagging your cluster resourc
### Changelog for Kubernetes v1.11.5

* Added v1.11.5 to address Kubernetes CVE-2018-1002105
* Added ability to use ipvs mode for kube-proxy

### Required Open Ports on hosts

Expand Down
7 changes: 7 additions & 0 deletions infra-templates/k8s/55/docker-compose.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ proxy:
- --kubeconfig=/etc/kubernetes/ssl/kubeconfig
- --v=2
- --healthz-bind-address=0.0.0.0
{{- if eq .Values.ENABLE_IPVS_PROXY_MODE "true" }}
- --proxy-mode=ipvs
{{- end }}
{{- range $i, $elem := splitPreserveQuotes .Values.ADDITIONAL_KUBEPROXY_FLAGS }}
- {{ $elem }}
{{- end }}
Expand All @@ -168,6 +171,10 @@ proxy:
net: host
links:
- kubernetes
{{- if eq .Values.ENABLE_IPVS_PROXY_MODE "true" }}
volumes:
- /lib/modules:/lib/modules:ro
{{- end }}

etcd:
image: {{$etcdImage}}
Expand Down
7 changes: 6 additions & 1 deletion infra-templates/k8s/55/rancher-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.catalog:
name: Kubernetes
version: v1.11.5-rancher1-1
version: v1.11.5-rancher1-2
description: Rancher Kubernetes service
minimum_rancher_version: v1.6.19
questions:
Expand Down Expand Up @@ -117,6 +117,11 @@
required: false
default: 1
type: int
- variable: ENABLE_IPVS_PROXY_MODE
label: Enable IPVS Proxy Mode for Kubernetes Proxy
required: false
default: false
type: boolean
- variable: ADDITIONAL_KUBELET_FLAGS
label: Additional Kubelet Flags
required: false
Expand Down

0 comments on commit 2ff4602

Please sign in to comment.