usage
Last updated
Last updated
Provide the AWS credentials in following ways:
. You will need to specify AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, AWS_DEFAULT_REGION
.
Familiarity with rke configuration.
Modify values in config.yaml.example
inside rke
key. Supported options as of now:
Example:
After appropriate values are filled, run:
Once the infrastructure and cluster is setup, kubeconfig
file and rancher-cluster.yml
file will be available at:
kubeconfig - inventory/rke-tk8/provisioner/kube_config_cluster.yml
rancher config - inventory/rke-tk8/provisioner/rancher-cluster.yml
Now you can use the same kubeconfig
file to interact with kubernetes with kubectl and use rancher-cluster.yml
to interact with cluster using rke
cli.
Note: Do not
mv
these files from this directory to somewhere else as these are stored in Terraform states. If required, make a copy.
For removing the rke cluster and keep the underlying infrastructure, run:
This is equivalent to rke remove --config rancher-cluster.yml
.
This will destroy the complete infrastructure. Run:
Note This is just a cluster provisioner, it will not install
rancher-2.x
on the cluster by itself. Use
on the cluster.