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
79f2dc6a
Commit
79f2dc6a
authored
Aug 21, 2017
by
Zihong Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add kube-proxy daemonset as a cluster addon.
parent
2f00e6d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
0 deletions
+101
-0
kube-proxy-ds.yaml
cluster/addons/kube-proxy/kube-proxy-ds.yaml
+76
-0
kube-proxy-rbac.yaml
cluster/addons/kube-proxy/kube-proxy-rbac.yaml
+22
-0
kube-proxy.manifest
cluster/saltbase/salt/kube-proxy/kube-proxy.manifest
+3
-0
No files found.
cluster/addons/kube-proxy/kube-proxy-ds.yaml
0 → 100644
View file @
79f2dc6a
# Please keep kube-proxy configuration in-sync with:
# cluster/saltbase/salt/kube-proxy/kube-proxy.manifest
apiVersion
:
extensions/v1beta1
kind
:
DaemonSet
metadata
:
labels
:
k8s-app
:
kube-proxy
addonmanager.kubernetes.io/mode
:
Reconcile
name
:
kube-proxy
namespace
:
kube-system
spec
:
selector
:
matchLabels
:
k8s-app
:
kube-proxy
updateStrategy
:
type
:
RollingUpdate
rollingUpdate
:
maxUnavailable
:
10%
template
:
metadata
:
labels
:
k8s-app
:
kube-proxy
annotations
:
scheduler.alpha.kubernetes.io/critical-pod
:
'
'
spec
:
hostNetwork
:
true
nodeSelector
:
beta.kubernetes.io/kube-proxy-ds-ready
:
"
true"
initContainers
:
-
name
:
touch-lock
image
:
busybox
command
:
[
'
/bin/touch'
,
'
/run/xtables.lock'
]
securityContext
:
privileged
:
true
volumeMounts
:
-
mountPath
:
/run
name
:
run
readOnly
:
false
containers
:
-
name
:
kube-proxy
image
:
{{
pillar
[
'
kube_docker_registry'
]}}
/kube-proxy:{{pillar['kube-proxy_docker_tag']}}
resources
:
requests
:
cpu
:
{{
cpurequest
}}
command
:
-
/bin/sh
-
-c
-
echo -998 > /proc/$$$/oom_score_adj && kube-proxy {{kubeconfig}} {{cluster_cidr}} --resource-container="" {{params}} 1>>/var/log/kube-proxy.log 2>&1
{{
container_env
}}
securityContext
:
privileged
:
true
volumeMounts
:
-
mountPath
:
/var/log
name
:
varlog
readOnly
:
false
-
mountPath
:
/var/lib/kube-proxy/kubeconfig
name
:
kubeconfig
readOnly
:
false
-
mountPath
:
/run/xtables.lock
name
:
xtables-lock
readOnly
:
false
volumes
:
-
name
:
varlog
hostPath
:
path
:
/var/log
-
name
:
kubeconfig
hostPath
:
path
:
/var/lib/kube-proxy/kubeconfig
-
name
:
xtables-lock
hostPath
:
path
:
/run/xtables.lock
-
name
:
run
hostPath
:
path
:
/run
serviceAccountName
:
kube-proxy
cluster/addons/kube-proxy/kube-proxy-rbac.yaml
0 → 100644
View file @
79f2dc6a
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
kube-proxy
namespace
:
kube-system
labels
:
addonmanager.kubernetes.io/mode
:
Reconcile
---
kind
:
ClusterRoleBinding
apiVersion
:
rbac.authorization.k8s.io/v1beta1
metadata
:
name
:
system:kube-proxy
labels
:
addonmanager.kubernetes.io/mode
:
Reconcile
subjects
:
-
kind
:
ServiceAccount
name
:
kube-proxy
namespace
:
kube-system
roleRef
:
kind
:
ClusterRole
name
:
system:node-proxier
apiGroup
:
rbac.authorization.k8s.io
cluster/saltbase/salt/kube-proxy/kube-proxy.manifest
View file @
79f2dc6a
# Please keep kube-proxy configuration in-sync with:
# cluster/addons/kube-proxy/kube-proxy-ds.yaml
{% set kubeconfig = "--kubeconfig=/var/lib/kube-proxy/kubeconfig" -%}
{% set kubeconfig = "--kubeconfig=/var/lib/kube-proxy/kubeconfig" -%}
{% if grains.api_servers is defined -%}
{% if grains.api_servers is defined -%}
{% set api_servers = "--master=https://" + grains.api_servers -%}
{% set api_servers = "--master=https://" + grains.api_servers -%}
...
...
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