Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nodes:
- - address: 104.248.231.111
- user: admin
- role:
- - controlplane
- - etcd
- - worker
- hostname_override: sharkbit-instance-1
- #internal_address: 104.248.231.111
- ssh_key_path: etc/ssh/ssh_host_rsa_key
- - address: 104.248.231.68
- user: admin
- role:
- - controlplane
- - etcd
- - worker
- hostname_override: sharkbit-instance-2
- #internal_address: 104.248.231.68
- ssh_key_path: etc/ssh/ssh_host_rsa_key
- - address: 104.248.231.56
- user: admin
- role:
- - controlplane
- - etcd
- - worker
- hostname_override: sharkbit-instance-3
- #internal_address: 104.248.231.56
- ssh_key_path: etc/ssh/ssh_host_rsa_key
- # If set to true, RKE will not fail when unsupported Docker version are found
- ignore_docker_version: false
- # 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.gitlab.com
- user: sharkbit
- password: sharkbit291203021012
- # Set the name of the Kubernetes cluster
- cluster_name: sharkbit
- # The kubernetes version used. For now, this should match the version defined in rancher/types defaults map: https://github.com/rancher/types/blob/master/apis/management.cattle.io/v3/k8s_defaults.go#L14
- # In case the kubernetes_version and kubernetes image in system_images are defined, the system_images configuration will take precedence over kubernetes_version.
- kubernetes_version: v1.11.3-rancher1-1
- # System Image Tags are defaulted to a tag tied with specific kubernetes Versions
- # Default Tags: https://github.com/rancher/types/blob/master/apis/management.cattle.io/v3/k8s_defaults.go)
- system_images:
- kubernetes: rancher/hyperkube:v1.11.3-rancher1
- etcd: quay.io/coreos/etcd:v3.2.18
- alpine: rancher/rke-tools:v0.1.14
- nginx_proxy: rancher/rke-tools:v0.1.14
- cert_downloader: rancher/rke-tools:v0.1.14
- kubernetes_services_sidecar: rancher/rke-tools:v0.1.14
- kubedns: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.10
- dnsmasq: gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.10
- kubedns_sidecar: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.10
- kubedns_autoscaler: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0
- pod_infra_container: gcr.io/google_containers/pause-amd64:3.1
- services:
- etcd:
- # 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-----
- # Note for Rancher 2 users: If you are configuring Cluster Options using a Config File when creating Rancher Launched Kubernetes, the names of services should contain underscores only: `kube_api`. This only applies to Rancher v2.0.5 and v2.0.6.
- kube-api:
- # IP range for any services created on Kubernetes
- # This must match the service_cluster_ip_range in kube-controller
- service_cluster_ip_range: 10.43.0.0/16
- # Expose a different port range for NodePort services
- service_node_port_range: 30000-32767
- pod_security_policy: false
- # Add additional arguments to the kubernetes API server
- # This WILL OVERRIDE any existing defaults
- extra_args:
- # Enable audit log to stdout
- audit-log-path: "-"
- # Increase number of delete workers
- delete-collection-workers: 3
- # Set the level of log output to debug-level
- v: 4
- # Note for Rancher 2 users: If you are configuring Cluster Options using a Config File when creating Rancher Launched Kubernetes, the names of services should contain underscores only: `kube_controller`. This only applies to Rancher v2.0.5 and v2.0.6.
- kube-controller:
- # CIDR pool used to assign IP addresses to pods in the cluster
- cluster_cidr: 10.42.0.0/16
- # IP range for any services created on Kubernetes
- # This must match the service_cluster_ip_range in kube-api
- service_cluster_ip_range: 10.43.0.0/16
- kubelet:
- # Base domain for the cluster
- cluster_domain: cluster.local
- # IP address for the DNS service endpoint
- cluster_dns_server: 10.43.0.10
- # Fail if swap is on
- fail_swap_on: false
- # Optionally define additional volume binds to a service
- extra_binds:
- - "/usr/libexec/kubernetes/kubelet-plugins:/usr/libexec/kubernetes/kubelet-plugins"
- # Kubernetes Authorization mode
- # Use `mode: rbac` to enable RBAC
- # Use `mode: none` to disable authorization
- authorization:
- mode: rbac
- # Add-ons are deployed using kubernetes jobs. RKE will give up on trying to get the job status after this timeout in seconds..
- addon_job_timeout: 30
- # There are several network plug-ins that work, but we default to canal
- network:
- plugin: canal
- # Currently only nginx ingress provider is supported.
- # To disable ingress controller, set `provider: none`
- ingress:
- provider: nginx
- # All add-on 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement