mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-02 18:18:17 -03:30
Initial commit
This commit is contained in:
6
environments/dev/group_vars/all.yml
Normal file
6
environments/dev/group_vars/all.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
# Directory where the binaries will be installed
|
||||
bin_dir: /usr/local/bin
|
||||
|
||||
# Where the binaries will be downloaded.
|
||||
# Note: ensure that you've enough disk space (about 1G)
|
||||
local_release_dir: "/tmp/releases"
|
||||
68
environments/dev/group_vars/k8s-cluster.yml
Normal file
68
environments/dev/group_vars/k8s-cluster.yml
Normal file
@@ -0,0 +1,68 @@
|
||||
# Users to create for basic auth in Kubernetes API via HTTP
|
||||
kube_users:
|
||||
kube:
|
||||
pass: changeme
|
||||
role: admin
|
||||
root:
|
||||
pass: changeme
|
||||
role: admin
|
||||
|
||||
# Kubernetes cluster name, also will be used as DNS domain
|
||||
cluster_name: cluster.local
|
||||
#
|
||||
# set this variable to calico if needed. keep it empty if flannel is used
|
||||
overlay_network_plugin: calico
|
||||
|
||||
# Kubernetes internal network for services, unused block of space.
|
||||
kube_service_addresses: 10.233.0.0/18
|
||||
|
||||
# internal network. When used, it will assign IP
|
||||
# addresses from this range to individual pods.
|
||||
# This network must be unused in your network infrastructure!
|
||||
overlay_network_subnet: 10.233.64.0/18
|
||||
|
||||
# internal network total size (optional). This is the prefix of the
|
||||
# entire overlay network. So the entirety of 4.0.0.0/16 must be
|
||||
# unused in your environment.
|
||||
# overlay_network_prefix: 18
|
||||
|
||||
# internal network node size allocation (optional). This is the size allocated
|
||||
# to each node on your network. With these defaults you should have
|
||||
# room for 4096 nodes with 254 pods per node.
|
||||
overlay_network_host_prefix: 24
|
||||
|
||||
# Internal DNS configuration.
|
||||
# Kubernetes can create and mainatain its own DNS server to resolve service names
|
||||
# into appropriate IP addresses. It's highly advisable to run such DNS server,
|
||||
# as it greatly simplifies configuration of your applications - you can use
|
||||
# service names instead of magic environment variables.
|
||||
# You still must manually configure all your containers to use this DNS server,
|
||||
# Kubernetes won't do this for you (yet).
|
||||
|
||||
# Upstream dns servers used by dnsmasq
|
||||
upstream_dns_servers:
|
||||
- 8.8.8.8
|
||||
- 4.4.8.8
|
||||
|
||||
# Turn this varable to 'false' to disable whole DNS configuration.
|
||||
dns_setup: true
|
||||
dns_domain: "{{ cluster_name }}"
|
||||
|
||||
# Ip address of the kubernetes dns service
|
||||
kube_dns_server: 10.233.0.10
|
||||
|
||||
# Number of replicas of DNS instances started on kubernetes
|
||||
dns_replicas: 2
|
||||
|
||||
# Set to 'false' to disable default Kubernetes UI setup
|
||||
enable_ui: true
|
||||
|
||||
# Set to 'false' to disable default Elasticsearch + Kibana logging setup
|
||||
enable_logging: false
|
||||
|
||||
# Set to "false' to disable default Monitoring (cAdvisor + heapster + influxdb + grafana)
|
||||
enable_monitoring: false
|
||||
|
||||
# Set to 'false' to disable the docker garbage collection.
|
||||
# Every hour it removes images that are not used by containers and exited containers.
|
||||
enable_docker_gc: true
|
||||
19
environments/dev/inventory
Normal file
19
environments/dev/inventory
Normal file
@@ -0,0 +1,19 @@
|
||||
[downloader]
|
||||
192.168.0.1
|
||||
|
||||
[kube-master]
|
||||
# NB : the br_addr must be in the {{ calico_pool }} subnet
|
||||
# it will assign a /24 subnet per node
|
||||
192.168.0.1 br_addr=10.233.64.1
|
||||
|
||||
[kube-node]
|
||||
192.168.0.2 br_addr=10.233.65.1
|
||||
192.168.0.3 br_addr=10.233.66.1
|
||||
192.168.0.4 br_addr=10.233.67.1
|
||||
|
||||
[etcd]
|
||||
192.168.0.1
|
||||
|
||||
[k8s-cluster:children]
|
||||
kube-node
|
||||
kube-master
|
||||
6
environments/production/group_vars/all.yml
Normal file
6
environments/production/group_vars/all.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
# Directory where the binaries will be installed
|
||||
# bin_dir: /usr/local/bin
|
||||
|
||||
# Where the binaries will be downloaded.
|
||||
# Note: ensure that you've enough disk space (about 1G)
|
||||
# local_release_dir: "/tmp/releases"
|
||||
68
environments/production/group_vars/k8s-cluster.yml
Normal file
68
environments/production/group_vars/k8s-cluster.yml
Normal file
@@ -0,0 +1,68 @@
|
||||
# Users to create for basic auth in Kubernetes API via HTTP
|
||||
# kube_users:
|
||||
# kube:
|
||||
# pass: changeme
|
||||
# role: admin
|
||||
# root:
|
||||
# pass: changeme
|
||||
# role: admin
|
||||
|
||||
# Kubernetes cluster name, also will be used as DNS domain
|
||||
# cluster_name: cluster.local
|
||||
#
|
||||
# set this variable to calico if needed. keep it empty if flannel is used
|
||||
# overlay_network_plugin: calico
|
||||
|
||||
# Kubernetes internal network for services, unused block of space.
|
||||
# kube_service_addresses: 10.233.0.0/18
|
||||
|
||||
# internal network. When used, it will assign IP
|
||||
# addresses from this range to individual pods.
|
||||
# This network must be unused in your network infrastructure!
|
||||
# overlay_network_subnet: 10.233.64.0/18
|
||||
|
||||
# internal network total size (optional). This is the prefix of the
|
||||
# entire overlay network. So the entirety of 4.0.0.0/16 must be
|
||||
# unused in your environment.
|
||||
# overlay_network_prefix: 18
|
||||
|
||||
# internal network node size allocation (optional). This is the size allocated
|
||||
# to each node on your network. With these defaults you should have
|
||||
# room for 4096 nodes with 254 pods per node.
|
||||
# overlay_network_host_prefix: 24
|
||||
|
||||
# Internal DNS configuration.
|
||||
# Kubernetes can create and mainatain its own DNS server to resolve service names
|
||||
# into appropriate IP addresses. It's highly advisable to run such DNS server,
|
||||
# as it greatly simplifies configuration of your applications - you can use
|
||||
# service names instead of magic environment variables.
|
||||
# You still must manually configure all your containers to use this DNS server,
|
||||
# Kubernetes won't do this for you (yet).
|
||||
|
||||
# Upstream dns servers used by dnsmasq
|
||||
# upstream_dns_servers:
|
||||
# - 8.8.8.8
|
||||
# - 4.4.8.8
|
||||
|
||||
# Turn this varable to 'false' to disable whole DNS configuration.
|
||||
# dns_setup: true
|
||||
# dns_domain: "{{ cluster_name }}"
|
||||
|
||||
# Ip address of the kubernetes dns service
|
||||
# kube_dns_server: 10.233.0.10
|
||||
|
||||
# Number of replicas of DNS instances started on kubernetes
|
||||
# dns_replicas: 2
|
||||
|
||||
# Set to 'false' to disable default Kubernetes UI setup
|
||||
# enable_ui: true
|
||||
|
||||
# Set to 'false' to disable default Elasticsearch + Kibana logging setup
|
||||
# enable_logging: false
|
||||
|
||||
# Set to "false' to disable default Monitoring (cAdvisor + heapster + influxdb + grafana)
|
||||
# enable_monitoring: false
|
||||
|
||||
# Set to 'false' to disable the docker garbage collection.
|
||||
# Every hour it removes images that are not used by containers and exited containers.
|
||||
# enable_docker_gc: true
|
||||
Reference in New Issue
Block a user