Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Add pod subnet to non masquerade
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Rabot <[email protected]>
  • Loading branch information
Sylvain Rabot committed Aug 21, 2017
1 parent e79f87f commit 3f20ea2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions parts/kubernetesagentcustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ write_files:
KUBE_CTRL_MGR_NODE_MONITOR_GRACE_PERIOD={{WrapAsVariable "kubernetesCtrlMgrNodeMonitorGracePeriod"}}
KUBE_CTRL_MGR_POD_EVICTION_TIMEOUT={{WrapAsVariable "kubernetesCtrlMgrPodEvictionTimeout"}}
KUBE_CTRL_MGR_ROUTE_RECONCILIATION_PERIOD={{WrapAsVariable "kubernetesCtrlMgrRouteReconciliationPeriod"}}
KUBELET_POD_SUBNET={{WrapAsVariable "kubeClusterCidr"}}
{{if IsKubernetesVersionGe "1.6.0"}}
KUBELET_FEATURE_GATES=--feature-gates=Accelerators=true
{{end}}
Expand Down
1 change: 1 addition & 0 deletions parts/kuberneteskubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ExecStart=/usr/bin/docker run \
--require-kubeconfig \
--pod-infra-container-image="${KUBELET_POD_INFRA_CONTAINER_IMAGE}" \
--address=0.0.0.0 \
--non-masquerade-cidr=${KUBELET_POD_SUBNET} \
--allow-privileged=true \
--enable-server \
--enable-debugging-handlers \
Expand Down
1 change: 1 addition & 0 deletions parts/kubernetesmastercustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ write_files:
KUBE_CTRL_MGR_NODE_MONITOR_GRACE_PERIOD={{WrapAsVariable "kubernetesCtrlMgrNodeMonitorGracePeriod"}}
KUBE_CTRL_MGR_POD_EVICTION_TIMEOUT={{WrapAsVariable "kubernetesCtrlMgrPodEvictionTimeout"}}
KUBE_CTRL_MGR_ROUTE_RECONCILIATION_PERIOD={{WrapAsVariable "kubernetesCtrlMgrRouteReconciliationPeriod"}}
KUBELET_POD_SUBNET={{WrapAsVariable "kubeClusterCidr"}}
{{if IsKubernetesVersionGe "1.6.0"}}
{{if HasLinuxAgents}}
KUBELET_REGISTER_NODE=--register-node=true
Expand Down

0 comments on commit 3f20ea2

Please sign in to comment.