mirror of
https://github.com/rancher/rke.git
synced 2025-07-17 08:51:11 +00:00
Updated cluster.yml with current values and according to rke config
This commit is contained in:
parent
ac1bf844ec
commit
694891e6bf
138
cluster.yml
138
cluster.yml
@ -1,85 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
kubernetes_version: v1.8.7-rancher1-1
|
|
||||||
|
|
||||||
auth:
|
|
||||||
strategy: x509
|
|
||||||
options:
|
|
||||||
foo: bar
|
|
||||||
|
|
||||||
# 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'
|
|
||||||
# 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:
|
|
||||||
|
|
||||||
# Default ingress provider is nginx, To disable ingress, use
|
|
||||||
# provider: none
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
provider: nginx
|
|
||||||
node_selector:
|
|
||||||
app: ingress
|
|
||||||
options:
|
|
||||||
map-hash-bucket-size: "128"
|
|
||||||
ssl-protocols: SSLv2
|
|
||||||
|
|
||||||
ssh_key_path: ~/.ssh/test
|
|
||||||
|
|
||||||
# ignore_docker_version toggle will enforce docker version support.
|
|
||||||
# If ignore is enabled (true), rke will print out a non-fatal warning instead of error
|
|
||||||
ignore_docker_version: false
|
|
||||||
|
|
||||||
# Kubernetes authorization mode; currently only `rbac` is supported and enabled by default.
|
|
||||||
# Use `mode: none` to disable authorization
|
|
||||||
authorization:
|
|
||||||
mode: rbac
|
|
||||||
options:
|
|
||||||
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- address: 1.1.1.1
|
- address: 1.1.1.1
|
||||||
user: ubuntu
|
user: ubuntu
|
||||||
role: [controlplane, etcd]
|
role:
|
||||||
|
- controlplane
|
||||||
|
- etcd
|
||||||
ssh_key_path: /home/user/.ssh/id_rsa
|
ssh_key_path: /home/user/.ssh/id_rsa
|
||||||
- address: 2.2.2.2
|
- address: 2.2.2.2
|
||||||
user: ubuntu
|
user: ubuntu
|
||||||
role: [worker]
|
role:
|
||||||
labels:
|
- worker
|
||||||
app: ingress
|
|
||||||
ssh_key: |-
|
ssh_key: |-
|
||||||
-----BEGIN RSA PRIVATE KEY-----
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
|
||||||
-----END RSA PRIVATE KEY-----
|
-----END RSA PRIVATE KEY-----
|
||||||
- address: example.com
|
- address: example.com
|
||||||
user: ubuntu
|
user: ubuntu
|
||||||
role: [worker]
|
role:
|
||||||
|
- role
|
||||||
hostname_override: node3
|
hostname_override: node3
|
||||||
internal_address: 192.168.1.6
|
internal_address: 192.168.1.6
|
||||||
labels:
|
labels:
|
||||||
@ -103,7 +41,6 @@ services:
|
|||||||
# -----BEGIN PRIVATE KEY-----
|
# -----BEGIN PRIVATE KEY-----
|
||||||
# xxxxxxxxxx
|
# xxxxxxxxxx
|
||||||
# -----END PRIVATE KEY-----
|
# -----END PRIVATE KEY-----
|
||||||
|
|
||||||
kube-api:
|
kube-api:
|
||||||
service_cluster_ip_range: 10.233.0.0/18
|
service_cluster_ip_range: 10.233.0.0/18
|
||||||
pod_security_policy: false
|
pod_security_policy: false
|
||||||
@ -119,19 +56,24 @@ services:
|
|||||||
infra_container_image: gcr.io/google_containers/pause-amd64:3.0
|
infra_container_image: gcr.io/google_containers/pause-amd64:3.0
|
||||||
kubeproxy:
|
kubeproxy:
|
||||||
|
|
||||||
|
# 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'
|
||||||
|
network:
|
||||||
|
plugin: flannel
|
||||||
|
options:
|
||||||
|
flannel_image: quay.io/coreos/flannel:v0.9.1
|
||||||
|
flannel_cni_image: quay.io/coreos/flannel-cni:v0.2.0
|
||||||
|
|
||||||
|
authentication:
|
||||||
system_images:
|
strategy: x509
|
||||||
etcd: rancher/etcd:v3.0.17
|
|
||||||
kubernetes: rancher/k8s:v1.8.7-rancher1-1
|
|
||||||
alpine: alpine:latest
|
|
||||||
nginx_proxy: rancher/rke-nginx-proxy:v0.1.1
|
|
||||||
cert_downloader: rancher/rke-cert-deployer:v0.1.1
|
|
||||||
kubernetes_services_sidecar: rancher/rke-service-sidekick:v0.1.0
|
|
||||||
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
|
|
||||||
|
|
||||||
# all addon manifests MUST specify a namespace
|
# all addon manifests MUST specify a namespace
|
||||||
addons: |-
|
addons: |-
|
||||||
@ -147,3 +89,35 @@ addons: |-
|
|||||||
image: nginx
|
image: nginx
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|
||||||
|
system_images:
|
||||||
|
etcd: rancher/etcd:v3.0.17
|
||||||
|
kubernetes: rancher/k8s:v1.8.7-rancher1-1
|
||||||
|
alpine: alpine:latest
|
||||||
|
nginx_proxy: rancher/rke-nginx-proxy:v0.1.1
|
||||||
|
cert_downloader: rancher/rke-cert-deployer:v0.1.1
|
||||||
|
kubernetes_services_sidecar: rancher/rke-service-sidekick:v0.1.0
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
kubernetes_version: v1.8.7-rancher1-1
|
||||||
|
|
||||||
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user