Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.67 KB

RancherClusterConfig.md

File metadata and controls

30 lines (24 loc) · 1.67 KB

RancherApi::RancherClusterConfig

Properties

Name Type Description Notes
token String Shared secret used to join a server or agent to a cluster. [optional]
tls_san String This maps to ranchers `tls-san`. Add additional hostname or IP as a Subject Alternative Name in the TLS cert. [optional]
etcd_snapshot_schedule_cron String This maps to ranchers `etcd-snapshot-schedule-cron`. Snapshot interval time in cron spec. eg. every 5 hours ‘0 */5 * * *’. Default: at 12 am/pm [optional][default to '0 0,12 * * *']
etcd_snapshot_retention Integer This maps to ranchers `etcd-snapshot-retention`. Number of snapshots to retain. [optional][default to 5]
node_taint String This maps to ranchers `node-taint`. Registering kubelet with set of taints. By default, server nodes will be schedulable and thus your workloads can get launched on them. If you wish to have a dedicated control plane where no user workloads will run, you can use taints. [optional]
cluster_domain String This maps to ranchers `cluster-domain`. Cluster Domain. [optional]
certificates RancherClusterCertificates [optional]

Example

require 'pnap_rancher_api'

instance = RancherApi::RancherClusterConfig.new(
  token: gS7SnDnY5st0ryJxMXA7,
  tls_san: mydomain.com,
  etcd_snapshot_schedule_cron: 0 0,12 * * *,
  etcd_snapshot_retention: 5,
  node_taint: CriticalAddonsOnly=true:NoExecute,
  cluster_domain: cluster.local,
  certificates: null
)