mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 01:39:02 +00:00
Rename minion->node
This commit is contained in:
@@ -8,7 +8,7 @@ can be real hardware, VMs, things in a public cloud, etc.
|
|||||||
|
|
||||||
* Record the IP address of which machine you want to be your master
|
* Record the IP address of which machine you want to be your master
|
||||||
* Record the IP address of the machine you want to be your etcd server (often same as master)
|
* Record the IP address of the machine you want to be your etcd server (often same as master)
|
||||||
* Record the IP addresses of the machines you want to be your minions. (master can be a minion)
|
* Record the IP addresses of the machines you want to be your nodes. (master can be a node)
|
||||||
|
|
||||||
Stick the system information into the 'inventory' file.
|
Stick the system information into the 'inventory' file.
|
||||||
|
|
||||||
|
@@ -19,11 +19,11 @@
|
|||||||
- masters
|
- masters
|
||||||
|
|
||||||
# install kubernetes on the nodes
|
# install kubernetes on the nodes
|
||||||
- hosts: minions
|
- hosts: nodes
|
||||||
sudo: yes
|
sudo: yes
|
||||||
roles:
|
roles:
|
||||||
- common
|
- common
|
||||||
- kubernetes
|
- kubernetes
|
||||||
- minion
|
- node
|
||||||
tags:
|
tags:
|
||||||
- minions
|
- nodes
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
[masters]
|
|
||||||
10.0.0.1
|
|
||||||
|
|
||||||
[etcd]
|
[etcd]
|
||||||
10.0.0.2
|
10.0.0.2
|
||||||
|
|
||||||
[minions]
|
[masters]
|
||||||
|
10.0.0.1
|
||||||
|
|
||||||
|
[nodes]
|
||||||
10.0.0.3
|
10.0.0.3
|
||||||
10.0.0.4
|
10.0.0.4
|
||||||
10.0.0.5
|
10.0.0.5
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Open firewalld port for etcd
|
- name: Open firewalld port for etcd
|
||||||
firewalld: port={{ item }}/tcp permanent=false state=enabled
|
firewalld: port={{ item }}/tcp permanent=false state=enabled
|
||||||
# in case this is also a minion where firewalld turned off
|
# in case this is also a node where firewalld turned off
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
with_items:
|
with_items:
|
||||||
- 2379
|
- 2379
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
- name: Save firewalld port for etcd
|
- name: Save firewalld port for etcd
|
||||||
firewalld: port={{ item }}/tcp permanent=true state=enabled
|
firewalld: port={{ item }}/tcp permanent=true state=enabled
|
||||||
# in case this is also a minion where firewalld turned off
|
# in case this is also a node where firewalld turned off
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
with_items:
|
with_items:
|
||||||
- 2379
|
- 2379
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: Open firewalld port for apiserver
|
- name: Open firewalld port for apiserver
|
||||||
firewalld: port=8080/tcp permanent=false state=enabled
|
firewalld: port=8080/tcp permanent=false state=enabled
|
||||||
# in case this is also a minion with firewalld turned off
|
# in case this is also a node with firewalld turned off
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Save firewalld port for apiserver
|
- name: Save firewalld port for apiserver
|
||||||
firewalld: port=8080/tcp permanent=true state=enabled
|
firewalld: port=8080/tcp permanent=true state=enabled
|
||||||
# in case this is also a minion with firewalld turned off
|
# in case this is also a node with firewalld turned off
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
@@ -10,7 +10,7 @@ KUBE_API_ADDRESS="--address=0.0.0.0"
|
|||||||
# The port on the local server to listen on.
|
# The port on the local server to listen on.
|
||||||
# KUBE_API_PORT="--port=8080"
|
# KUBE_API_PORT="--port=8080"
|
||||||
|
|
||||||
# Port minions listen on
|
# Port nodes listen on
|
||||||
# KUBELET_PORT="--kubelet_port=10250"
|
# KUBELET_PORT="--kubelet_port=10250"
|
||||||
|
|
||||||
# Address range to use for services
|
# Address range to use for services
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
###
|
###
|
||||||
# kubernetes kubelet (minion) config
|
# kubernetes kubelet (node) config
|
||||||
|
|
||||||
# The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces)
|
# The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces)
|
||||||
KUBELET_ADDRESS="--address=0.0.0.0"
|
KUBELET_ADDRESS="--address=0.0.0.0"
|
Reference in New Issue
Block a user