Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.58 KB | None | 0 0
  1. nodes:
  2.     - address: 104.248.231.111
  3.       user: admin  
  4.       role:
  5.        - controlplane
  6.         - etcd
  7.         - worker
  8.       hostname_override: sharkbit-instance-1
  9.       #internal_address: 104.248.231.111
  10.       ssh_key_path: etc/ssh/ssh_host_rsa_key
  11.      
  12.     - address: 104.248.231.68
  13.       user: admin
  14.       role:
  15.        - controlplane
  16.         - etcd
  17.         - worker
  18.       hostname_override: sharkbit-instance-2
  19.       #internal_address: 104.248.231.68
  20.       ssh_key_path: etc/ssh/ssh_host_rsa_key
  21.  
  22.     - address: 104.248.231.56
  23.       user: admin
  24.       role:
  25.        - controlplane
  26.         - etcd
  27.         - worker
  28.       hostname_override: sharkbit-instance-3
  29.       #internal_address: 104.248.231.56
  30.       ssh_key_path: etc/ssh/ssh_host_rsa_key
  31.  
  32. # If set to true, RKE will not fail when unsupported Docker version are found
  33. ignore_docker_version: false
  34.  
  35. # List of registry credentials
  36. # If you are using a Docker Hub registry, you can omit the `url` or set it to `docker.io`
  37. private_registries:
  38.     - url: registry.gitlab.com
  39.       user: sharkbit
  40.       password: sharkbit291203021012
  41.  
  42. # Set the name of the Kubernetes cluster  
  43. cluster_name: sharkbit
  44.  
  45. # 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
  46. # In case the kubernetes_version and kubernetes image in system_images are defined, the system_images configuration will take precedence over kubernetes_version.
  47. kubernetes_version: v1.11.3-rancher1-1
  48.  
  49. # System Image Tags are defaulted to a tag tied with specific kubernetes Versions
  50. # Default Tags: https://github.com/rancher/types/blob/master/apis/management.cattle.io/v3/k8s_defaults.go)
  51. system_images:
  52.     kubernetes: rancher/hyperkube:v1.11.3-rancher1
  53.     etcd: quay.io/coreos/etcd:v3.2.18
  54.     alpine: rancher/rke-tools:v0.1.14
  55.     nginx_proxy: rancher/rke-tools:v0.1.14
  56.     cert_downloader: rancher/rke-tools:v0.1.14
  57.     kubernetes_services_sidecar: rancher/rke-tools:v0.1.14
  58.     kubedns: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.10
  59.     dnsmasq: gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.10
  60.     kubedns_sidecar: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.10
  61.     kubedns_autoscaler: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0
  62.     pod_infra_container: gcr.io/google_containers/pause-amd64:3.1
  63.  
  64. services:
  65.     etcd:
  66.      # if external etcd is used
  67.       # path: /etcdcluster
  68.       # external_urls:
  69.       #   - https://etcd-example.com:2379/
  70.       # ca_cert: |-
  71.       #   -----BEGIN CERTIFICATE-----
  72.       #   xxxxxxxxxx
  73.       #   -----END CERTIFICATE-----
  74.       # cert: |-
  75.       #   -----BEGIN CERTIFICATE-----
  76.       #   xxxxxxxxxx
  77.       #   -----END CERTIFICATE-----
  78.       # key: |-
  79.       #   -----BEGIN PRIVATE KEY-----
  80.       #   xxxxxxxxxx
  81.       #   -----END PRIVATE KEY-----
  82. #     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.
  83.  
  84.     kube-api:
  85.      # IP range for any services created on Kubernetes
  86.       # This must match the service_cluster_ip_range in kube-controller
  87.       service_cluster_ip_range: 10.43.0.0/16
  88.       # Expose a different port range for NodePort services
  89.       service_node_port_range: 30000-32767
  90.       pod_security_policy: false
  91.       # Add additional arguments to the kubernetes API server
  92.       # This WILL OVERRIDE any existing defaults
  93.       extra_args:
  94.        # Enable audit log to stdout
  95.         audit-log-path: "-"
  96.         # Increase number of delete workers
  97.         delete-collection-workers: 3
  98.         # Set the level of log output to debug-level
  99.         v: 4
  100. # 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.
  101.     kube-controller:
  102.      # CIDR pool used to assign IP addresses to pods in the cluster
  103.       cluster_cidr: 10.42.0.0/16
  104.       # IP range for any services created on Kubernetes
  105.       # This must match the service_cluster_ip_range in kube-api
  106.       service_cluster_ip_range: 10.43.0.0/16
  107.     kubelet:
  108.      # Base domain for the cluster
  109.       cluster_domain: cluster.local
  110.       # IP address for the DNS service endpoint
  111.       cluster_dns_server: 10.43.0.10
  112.       # Fail if swap is on
  113.       fail_swap_on: false
  114.       # Optionally define additional volume binds to a service
  115.       extra_binds:
  116.        - "/usr/libexec/kubernetes/kubelet-plugins:/usr/libexec/kubernetes/kubelet-plugins"
  117.  
  118. # Kubernetes Authorization mode
  119. # Use `mode: rbac` to enable RBAC
  120. # Use `mode: none` to disable authorization
  121. authorization:
  122.     mode: rbac
  123.  
  124. # Add-ons are deployed using kubernetes jobs. RKE will give up on trying to get the job status after this timeout in seconds..
  125. addon_job_timeout: 30
  126.  
  127. # There are several network plug-ins that work, but we default to canal
  128. network:
  129.     plugin: canal
  130.  
  131. # Currently only nginx ingress provider is supported.
  132. # To disable ingress controller, set `provider: none`
  133. ingress:
  134.     provider: nginx
  135.  
  136. # All add-on manifests MUST specify a namespace
  137. addons: |-
  138.     ---
  139.     apiVersion: v1
  140.     kind: Pod
  141.     metadata:
  142.       name: my-nginx
  143.       namespace: default
  144.     spec:
  145.       containers:
  146.       - name: my-nginx
  147.         image: nginx
  148.         ports:
  149.         - containerPort: 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement