-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump the Kubernetes to v1.10.2 (#27)
- Loading branch information
Kyle Bai
committed
May 14, 2018
1 parent
382a9f9
commit 4e4b87d
Showing
17 changed files
with
89 additions
and
235 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
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
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
[defaults] | ||
inventory = ./inventory | ||
roles_path = ./roles | ||
inventory = ./hosts.ini | ||
|
||
remote_tmp = $HOME/.ansible/tmp | ||
local_tmp = $HOME/.ansible/tmp | ||
pipelining = True | ||
become = True | ||
host_key_checking = False | ||
# callback_whitelist = profile_tasks | ||
deprecation_warnings = False | ||
callback_whitelist = profile_tasks |
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,33 @@ | ||
# Kubernetes | ||
kube_version: v1.10.2 | ||
token: b0f7b8.8d1767876297d85c | ||
|
||
# 1.8.x feature: --feature-gates SelfHosting=true | ||
init_opts: "" | ||
|
||
# Any other additional opts you want to add.. | ||
kubeadm_opts: "" | ||
# For example: | ||
# kubeadm_opts: '--apiserver-cert-extra-sans "k8s.domain.com,kubernetes.domain.com"' | ||
|
||
service_subnet: 10.96.0 | ||
service_cidr: "{{ service_subnet }}.0/12" | ||
dns_name: cluster.local | ||
dns_ip: "{{ service_subnet }}.10" | ||
|
||
# Network implementation('flannel', 'calico') | ||
network: calico | ||
pod_network_cidr: "10.244.0.0/16" | ||
cni_opts: "interface=eth1" # flannel: --iface=eth1, calico: interface=eth1 | ||
|
||
enable_dashboard: yes | ||
|
||
# A list of insecure registrys you might need to define | ||
insecure_registrys: "" | ||
# insecure_registrys: ['gcr.io'] | ||
|
||
systemd_dir: /lib/systemd/system | ||
system_env_dir: /etc/sysconfig | ||
network_dir: /etc/kubernetes/network | ||
kubeadmin_config: /etc/kubernetes/admin.conf | ||
kube_addon_dir: /etc/kubernetes/addon |
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
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,9 @@ | ||
[master] | ||
192.16.35.12 | ||
|
||
[node] | ||
192.16.35.[10:11] | ||
|
||
[kube-cluster:children] | ||
master | ||
node |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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,12 @@ | ||
--- | ||
|
||
- name: Deploy kubernetes dashboard into cluster | ||
when: init_cluster and started_kubelet and enable_dashboard | ||
command: | | ||
kubectl --kubeconfig={{ kubeadmin_config }} \ | ||
apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml | ||
register: create_result | ||
until: create_result.rc == 0 | ||
retries: 5 | ||
delay: 2 | ||
ignore_errors: true |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
dependencies: | ||
- { role: commons/os-checker } | ||
- { role: commons/pre-install, pkgs: [ "kubectl", "kubelet", "kubernetes-cni", "kubeadm" ] } | ||
- { role: commons/pre-install, pkgs: ["kubelet", "kubeadm", "kubectl"] } |
Oops, something went wrong.