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
911a082d
Commit
911a082d
authored
Feb 15, 2018
by
Nick Sardo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cloud-provider policies to be applied via addon mgr
parent
15ad2176
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
5 deletions
+73
-5
cloud-provider-binding.yaml
cluster/gce/addons/loadbalancing/cloud-provider-binding.yaml
+30
-0
cloud-provider-role.yaml
cluster/gce/addons/loadbalancing/cloud-provider-role.yaml
+35
-0
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+8
-5
No files found.
cluster/gce/addons/loadbalancing/cloud-provider-binding.yaml
0 → 100644
View file @
911a082d
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
metadata
:
labels
:
addonmanager.kubernetes.io/mode
:
Reconcile
name
:
cloud-provider
namespace
:
kube-system
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
Role
name
:
cloud-provider
subjects
:
-
kind
:
ServiceAccount
name
:
cloud-provider
namespace
:
kube-system
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
labels
:
addonmanager.kubernetes.io/mode
:
Reconcile
name
:
cloud-provider
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
cloud-provider
subjects
:
-
kind
:
ServiceAccount
name
:
cloud-provider
namespace
:
kube-system
cluster/gce/addons/loadbalancing/cloud-provider-role.yaml
0 → 100644
View file @
911a082d
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
metadata
:
labels
:
addonmanager.kubernetes.io/mode
:
Reconcile
name
:
cloud-provider
namespace
:
kube-system
rules
:
-
apiGroups
:
-
"
"
resources
:
-
configmaps
verbs
:
-
create
-
get
-
patch
-
update
-
list
-
watch
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
labels
:
addonmanager.kubernetes.io/mode
:
Reconcile
name
:
cloud-provider
rules
:
-
apiGroups
:
-
"
"
resources
:
-
events
verbs
:
-
create
-
patch
-
update
cluster/gce/gci/configure-helper.sh
View file @
911a082d
...
...
@@ -120,7 +120,7 @@ function get-local-disk-num() {
function
safe-block-symlink
(){
local
device
=
"
${
1
}
"
local
symdir
=
"
${
2
}
"
mkdir
-p
"
${
symdir
}
"
get-or-generate-uuid
"
${
device
}
"
...
...
@@ -194,11 +194,11 @@ function unique-uuid-bind-mount(){
# Trigger udev refresh so that newly formatted devices are propagated in by-uuid
udevadm control
--reload-rules
udevadm trigger
udevadm settle
udevadm settle
# grep the exact match of actual device, prevents substring matching
local
myuuid
=
$(
ls
-l
/dev/disk/by-uuid/ |
grep
"/
${
actual_device
}
$"
|
tr
-s
' '
|
cut
-d
' '
-f
9
)
# myuuid should be the uuid of the device as found in /dev/disk/by-uuid/
# myuuid should be the uuid of the device as found in /dev/disk/by-uuid/
if
[[
-z
"
${
myuuid
}
"
]]
;
then
echo
"Failed to get a uuid for device
${
actual_device
}
when mounting."
>
&2
exit
2
...
...
@@ -230,7 +230,7 @@ function mount-ext(){
local
devicenum
=
"
${
2
}
"
local
interface
=
"
${
3
}
"
local
format
=
"
${
4
}
"
if
[[
-z
"
${
devicenum
}
"
]]
;
then
echo
"Failed to get the local disk number for device
${
ssd
}
"
>
&2
...
...
@@ -2230,8 +2230,11 @@ function start-image-puller {
/etc/kubernetes/manifests/
}
# S
tarts a l7 loadbalancing controller for ingress
.
# S
etups manifests for ingress controller and gce-specific policies for service controller
.
function
start-lb-controller
{
setup-addon-manifests
"addons"
"loadbalancing"
# Starts a l7 loadbalancing controller for ingress.
if
[[
"
${
ENABLE_L7_LOADBALANCING
:-}
"
==
"glbc"
]]
;
then
echo
"Start GCE L7 pod"
prepare-log-file /var/log/glbc.log
...
...
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