Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
96ae3468
Commit
96ae3468
authored
May 18, 2017
by
Daniel Nardo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ip-masq-agent addon to the addons folder. This also
ensures that under gce we add this daemonset if the non-masq-cidr is set to 0/0.
parent
97889d4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
ip-masq-agent.yaml
cluster/addons/ip-masq-agent/ip-masq-agent.yaml
+38
-0
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+3
-0
No files found.
cluster/addons/ip-masq-agent/ip-masq-agent.yaml
0 → 100644
View file @
96ae3468
# https://github.com/kubernetes-incubator/ip-masq-agent/blob/v2.0.0/README.md
apiVersion
:
extensions/v1beta1
kind
:
DaemonSet
metadata
:
name
:
ip-masq-agent
namespace
:
kube-system
labels
:
addonmanager.kubernetes.io/mode
:
Reconcile
spec
:
template
:
metadata
:
labels
:
k8s-app
:
ip-masq-agent
annotations
:
scheduler.alpha.kubernetes.io/critical-pod
:
'
'
scheduler.alpha.kubernetes.io/tolerations
:
|
[{"key": "dedicated", "value": "master", "effect": "NoSchedule" },
{"key":"CriticalAddonsOnly", "operator":"Exists"}]
spec
:
hostNetwork
:
true
containers
:
-
name
:
ip-masq-agent
image
:
gcr.io/google-containers/ip-masq-agent-amd64:v2.0.0
securityContext
:
privileged
:
true
volumeMounts
:
-
name
:
config
mountPath
:
/etc/config
volumes
:
-
name
:
config
configMap
:
# Note this ConfigMap must be created in the same namespace as the daemon pods - this spec uses kube-system
name
:
ip-masq-agent
optional
:
true
items
:
# The daemon looks for its config in a YAML file at /etc/config/ip-masq-agent
-
key
:
config
path
:
ip-masq-agent
cluster/gce/gci/configure-helper.sh
View file @
96ae3468
...
...
@@ -1423,6 +1423,9 @@ function start-kube-addons {
if
[[
"
${
ENABLE_DEFAULT_STORAGE_CLASS
:-}
"
==
"true"
]]
;
then
setup-addon-manifests
"addons"
"storage-class/gce"
fi
if
[[
"
${
NON_MASQUERADE_CIDR
:-}
"
==
"0.0.0.0/0"
]]
;
then
setup-addon-manifests
"addons"
"ip-masq-agent"
fi
# Place addon manager pod manifest.
cp
"
${
src_dir
}
/kube-addon-manager.yaml"
/etc/kubernetes/manifests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment