2017-10-29 09:45:21 +00:00
|
|
|
---
|
2017-11-14 18:11:21 +00:00
|
|
|
|
|
|
|
auth:
|
|
|
|
strategy: x509
|
|
|
|
options:
|
|
|
|
foo: bar
|
|
|
|
|
2017-11-22 00:58:21 +00:00
|
|
|
# supported plugins are:
|
|
|
|
# flannel
|
|
|
|
# calico
|
|
|
|
# canal
|
2017-11-30 11:35:31 +00:00
|
|
|
# weave
|
2017-12-07 18:07:23 +00:00
|
|
|
#
|
|
|
|
# If you are using calico on AWS, use the network plugin config option:
|
2017-12-14 21:56:19 +00:00
|
|
|
# 'calico_cloud_provider: aws'
|
2017-11-14 18:11:21 +00:00
|
|
|
network:
|
2017-11-22 00:58:21 +00:00
|
|
|
plugin: flannel
|
2017-11-14 18:11:21 +00:00
|
|
|
options:
|
2017-12-05 01:29:29 +00:00
|
|
|
flannel_image: quay.io/coreos/flannel:v0.9.1
|
|
|
|
flannel_cni_image: quay.io/coreos/flannel-cni:v0.2.0
|
2017-11-14 18:11:21 +00:00
|
|
|
|
2017-12-02 17:07:47 +00:00
|
|
|
ssh_key_path: ~/.ssh/test
|
2017-12-15 03:02:44 +00:00
|
|
|
ignore_docker_version: false
|
2017-12-02 17:07:47 +00:00
|
|
|
|
2017-12-14 21:56:19 +00:00
|
|
|
# Kubernetes authorization mode; currently only `rbac` is supported and enabled by default.
|
|
|
|
# Use `mode: none` to disable authorization
|
|
|
|
|
2017-12-14 21:56:19 +00:00
|
|
|
authorization:
|
|
|
|
mode: rbac
|
|
|
|
options:
|
|
|
|
|
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
|
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: [worker]
|
|
|
|
hostname_override: node3
|
|
|
|
internal_address: 192.168.1.6
|
2017-10-29 09:45:21 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
etcd:
|
2017-11-02 10:07:10 +00:00
|
|
|
image: quay.io/coreos/etcd:latest
|
2017-10-29 09:45:21 +00:00
|
|
|
kube-api:
|
2017-11-22 20:46:01 +00:00
|
|
|
image: rancher/k8s:v1.8.3-rancher2
|
2017-10-30 06:31:06 +00:00
|
|
|
service_cluster_ip_range: 10.233.0.0/18
|
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:
|
2017-11-22 20:46:01 +00:00
|
|
|
image: rancher/k8s:v1.8.3-rancher2
|
2017-11-01 18:50:00 +00:00
|
|
|
cluster_cidr: 10.233.64.0/18
|
2017-10-30 06:31:06 +00:00
|
|
|
service_cluster_ip_range: 10.233.0.0/18
|
2017-10-29 09:45:21 +00:00
|
|
|
scheduler:
|
2017-11-22 20:46:01 +00:00
|
|
|
image: rancher/k8s:v1.8.3-rancher2
|
2017-10-29 09:45:21 +00:00
|
|
|
kubelet:
|
2017-11-22 20:46:01 +00:00
|
|
|
image: rancher/k8s:v1.8.3-rancher2
|
2017-10-30 06:31:06 +00:00
|
|
|
cluster_domain: cluster.local
|
2017-11-06 20:50:41 +00:00
|
|
|
cluster_dns_server: 10.233.0.3
|
2017-10-30 06:31:06 +00:00
|
|
|
infra_container_image: gcr.io/google_containers/pause-amd64:3.0
|
2017-10-29 09:45:21 +00:00
|
|
|
kubeproxy:
|
2017-11-22 20:46:01 +00:00
|
|
|
image: rancher/k8s:v1.8.3-rancher2
|
2017-11-18 12:51:28 +00:00
|
|
|
|
2017-12-05 01:29:29 +00:00
|
|
|
|
|
|
|
system_images:
|
|
|
|
alpine: alpine:latest
|
|
|
|
nginx_proxy: rancher/rke-nginx-proxy:0.1.0
|
|
|
|
cert_downloader: rancher/rke-cert-deployer:0.1.0
|
|
|
|
kubedns_image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5
|
|
|
|
dnsmasq_image: gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5
|
|
|
|
kubedns_sidecar_image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.5
|
|
|
|
kubedns_autoscaler_image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0
|
|
|
|
|
2017-11-22 00:58:21 +00:00
|
|
|
# all addon manifests MUST specify a namespace
|
2017-11-18 12:51:28 +00:00
|
|
|
addons: |-
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: my-nginx
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: my-nginx
|
|
|
|
image: nginx
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|