1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-23 08:58:30 +00:00
rke/cluster.yml

185 lines
4.6 KiB
YAML
Raw Normal View History

2017-10-29 09:45:21 +00:00
---
2017-11-28 17:45:24 +00:00
nodes:
- address: 1.1.1.1
2017-10-29 09:45:21 +00:00
user: ubuntu
role:
- controlplane
- etcd
2017-12-02 17:07:47 +00:00
ssh_key_path: /home/user/.ssh/id_rsa
2018-01-19 18:42:42 +00:00
port: 2222
2017-11-28 17:45:24 +00:00
- address: 2.2.2.2
2017-10-29 09:45:21 +00:00
user: ubuntu
role:
- worker
2017-12-02 17:07:47 +00:00
ssh_key: |-
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
2017-11-28 17:45:24 +00:00
- address: example.com
user: ubuntu
role:
- role
2017-11-28 17:45:24 +00:00
hostname_override: node3
internal_address: 192.168.1.6
labels:
app: ingress
2017-10-29 09:45:21 +00:00
services:
etcd:
2018-02-14 20:58:35 +00:00
# if external etcd is used
# path: /etcdcluster
# external_urls:
# - https://etcd-example.com:2379
# ca_cert: |-
# -----BEGIN CERTIFICATE-----
# xxxxxxxxxx
# -----END CERTIFICATE-----
# cert: |-
# -----BEGIN CERTIFICATE-----
# xxxxxxxxxx
# -----END CERTIFICATE-----
# key: |-
# -----BEGIN PRIVATE KEY-----
# xxxxxxxxxx
# -----END PRIVATE KEY-----
2017-10-29 09:45:21 +00:00
kube-api:
2018-03-29 19:51:35 +00:00
service_cluster_ip_range: 10.42.0.0/16
2017-12-20 01:51:07 +00:00
pod_security_policy: false
2018-03-24 00:08:45 +00:00
# add additional arguments to the kubernetes component
# Note that this WILL OVERRIDE existing defaults
2017-11-10 19:53:48 +00:00
extra_args:
2017-11-22 00:58:21 +00:00
v: 4
2017-10-29 09:45:21 +00:00
kube-controller:
2018-03-29 19:51:35 +00:00
cluster_cidr: 10.42.0.0/16
service_cluster_ip_range: 10.43.0.0/16
2017-10-29 09:45:21 +00:00
scheduler:
kubelet:
cluster_domain: cluster.local
2018-03-29 19:51:35 +00:00
cluster_dns_server: 10.43.0.10
infra_container_image: gcr.io/google_containers/pause-amd64:3.0
# Optionally define additional volume binds to a service
extra_binds:
- "/host/dev:/dev"
- "/usr/libexec/kubernetes/kubelet-plugins:/usr/libexec/kubernetes/kubelet-plugins"
2017-10-29 09:45:21 +00:00
kubeproxy:
2018-01-30 23:45:44 +00:00
# supported plugins are:
# flannel
# calico
# canal
# weave
#
# If you are using calico on AWS or GCE, use the network plugin config option:
# 'calico_cloud_provider: aws'
# or
# 'calico_cloud_provider: gce'
2018-02-26 19:48:22 +00:00
# network:
# plugin: calico
# options:
# calico_cloud_provider: aws
#
# To specify flannel interface, you can use the 'flannel_iface' option:
# network:
# plugin: flannel
# options:
# flannel_iface: eth1
network:
plugin: flannel
options:
2018-02-27 23:58:43 +00:00
# At the moment, the only authentication strategy supported is x509.
# You can optionally create additional SANs (hostnames or IPs) to add to
# the API server PKI certificate. This is useful if you want to use a load balancer
# for the control plane servers, for example.
authentication:
strategy: x509
sans:
- "10.18.160.10"
- "my-loadbalancer-1234567890.us-west-2.elb.amazonaws.com"
2017-11-22 00:58:21 +00:00
# all addon manifests MUST specify a namespace
addons: |-
---
apiVersion: v1
kind: Pod
metadata:
name: my-nginx
namespace: default
spec:
containers:
- name: my-nginx
image: nginx
ports:
- containerPort: 80
2018-03-23 21:50:08 +00:00
addons_include:
- https://raw.githubusercontent.com/rook/rook/master/cluster/examples/kubernetes/rook-operator.yaml
- https://raw.githubusercontent.com/rook/rook/master/cluster/examples/kubernetes/rook-cluster.yaml
- /path/to/manifest
system_images:
etcd: rancher/etcd:v3.0.17
2018-03-13 17:57:48 +00:00
kubernetes: rancher/k8s:v1.8.9-rancher1-1
alpine: rancher/rke-tools:v0.1.2
nginx_proxy: rancher/rke-tools:v0.1.2
cert_downloader: rancher/rke-tools:v0.1.2
kubernetes_services_sidecar: rancher/rke-tools:v0.1.2
kubedns: rancher/k8s-dns-kube-dns-amd64:1.14.5
dnsmasq: rancher/k8s-dns-dnsmasq-nanny-amd64:1.14.5
kubedns_sidecar: rancher/k8s-dns-sidecar-amd64:1.14.5
kubedns_autoscaler: rancher/cluster-proportional-autoscaler-amd64:1.0.0
2018-02-26 19:48:22 +00:00
flannel: rancher/coreos-flannel:v0.9.1
flannel_cni: rancher/coreos-flannel-cni:v0.2.0
ssh_key_path: ~/.ssh/test
# Kubernetes authorization mode
# Use `mode: rbac` to enable RBAC
# Use `mode: none` to disable authorization
authorization:
mode: rbac
# If set to true, rke won't fail when unsupported Docker version is found
ignore_docker_version: false
2018-03-13 17:57:48 +00:00
kubernetes_version: v1.8.9-rancher1-1
# If set, this is the cluster name that will be used in the kube config file
# Default value is "local"
cluster_name: mycluster
# List of registry credentials, if you are using a Docker Hub registry,
# you can omit the `url` or set it to `docker.io`
private_registries:
- url: registry.com
user: Username
password: password
2018-02-27 23:58:43 +00:00
# Currently only nginx ingress provider is supported.
# To disable ingress controller, set `provider: none`
# To enable ingress on specific nodes, use the node_selector, eg:
# nodes:
# - address: example.com
# user: ubuntu
# role:
# - role
# hostname_override: node3
# internal_address: 192.168.1.6
# labels:
# app: ingress
#
# ingress:
# provider: nginx
# node_selector:
# app: ingress
# extra_args:
# enable-ssl-passthrough: ""
2018-02-27 23:58:43 +00:00
ingress:
provider: nginx
2018-03-23 18:14:11 +00:00
cloud_provider:
name: aws