-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9560b0
commit 75ec1fc
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Create the clusterrole: | ||
# $ kubectl create -f kube-flannel-rbac.yml | ||
# Bind the flannel serviceaccount to the flannel clusterrole: | ||
# $ kubectl create clusterrolebinding flannel --clusterrole=flannel --serviceaccount=kube-system:flannel | ||
# Create the pod using the same namespace used by the flannel serviceaccount: | ||
# $ kubectl create --namespace kube-system -f kube-flannel.yml | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: flannel | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- nodes | ||
verbs: | ||
- list | ||
- update | ||
- watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75ec1fc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewrynhard can I ask you why setting
namespace: kube-system
was moved to command line argument--namespace kube-system
?I was using
kube-flannel.yml
in my sandbox environment provisioned according kubeadm guide and in some of my provision scripts I had this:And today I've noticed that
kube-flannel
was launched indefault
namespace.