Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
A
Ansible Role Kubernetes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Ansible Role Kubernetes
Commits
15614221
Commit
15614221
authored
Jun 04, 2018
by
Jeff Geerling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #5: Add more configuration ability to default Flannel network manifests.
parent
958650b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
README.md
README.md
+5
-0
defaults/main.yml
defaults/main.yml
+4
-0
tasks/master-setup.yml
tasks/master-setup.yml
+2
-2
No files found.
README.md
View file @
15614221
...
@@ -59,6 +59,11 @@ Apt repository options for Kubernetes installation.
...
@@ -59,6 +59,11 @@ Apt repository options for Kubernetes installation.
Yum repository options for Kubernetes installation.
Yum repository options for Kubernetes installation.
kubernetes_flannel_manifest_file_rbac: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
kubernetes_flannel_manifest_file: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
Flannel manifest files to apply to the Kubernetes cluster to enable networking. You can copy your own files to your server and apply them instead, if you need to customize the Flannel networking configuration.
## Dependencies
## Dependencies
None.
None.
...
...
defaults/main.yml
View file @
15614221
...
@@ -28,3 +28,7 @@ kubernetes_apt_repository: "deb http://apt.kubernetes.io/ kubernetes-xenial {{ k
...
@@ -28,3 +28,7 @@ kubernetes_apt_repository: "deb http://apt.kubernetes.io/ kubernetes-xenial {{ k
kubernetes_apt_ignore_key_error
:
False
kubernetes_apt_ignore_key_error
:
False
kubernetes_yum_arch
:
x86_64
kubernetes_yum_arch
:
x86_64
# Flannel config files.
kubernetes_flannel_manifest_file_rbac
:
https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
kubernetes_flannel_manifest_file
:
https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
tasks/master-setup.yml
View file @
15614221
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
-
name
:
Configure Flannel networking.
-
name
:
Configure Flannel networking.
command
:
"
{{
item
}}"
command
:
"
{{
item
}}"
with_items
:
with_items
:
-
kubectl apply -f
https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml
-
kubectl apply -f
{{ kubernetes_flannel_manifest_file_rbac }}
-
kubectl apply -f
https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
-
kubectl apply -f
{{ kubernetes_flannel_manifest_file }}
register
:
flannel_result
register
:
flannel_result
changed_when
:
"
'created'
in
flannel_result.stdout"
changed_when
:
"
'created'
in
flannel_result.stdout"
...
...
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