Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate Rancher HA installs on k3s clusters. #25495

Closed
sangeethah opened this issue Feb 20, 2020 · 8 comments
Closed

Validate Rancher HA installs on k3s clusters. #25495

sangeethah opened this issue Feb 20, 2020 · 8 comments
Assignees
Labels
kind/task Issues that represent work that needs to be done, but don't involve a code change
Milestone

Comments

@sangeethah
Copy link
Contributor

sangeethah commented Feb 20, 2020

No description provided.

@sangeethah sangeethah added the kind/task Issues that represent work that needs to be done, but don't involve a code change label Feb 20, 2020
@sangeethah sangeethah added this to the v2.4 milestone Feb 20, 2020
@aaronyeeski
Copy link
Contributor

According to our staging documentation, https://staging.rancher.com/docs/rancher/v2.x/en/installation/k8s-install/kubernetes-rke/, we start K3s without deploying traefik. This results in no ingress being deployed and Rancher unaccessible through the UI.
Deploying k3s with traefik by default allows Rancher to be accessed through the UI in an HA install.

curl -sfL https://get.k3s.io | sh -s - server \
--datastore-endpoint="mysql://<username>:<Password>@tcp(<hostname>:3306)/<data-store name>" \

@aaronyeeski
Copy link
Contributor

Verified with Rancher server rancher\rancher:master-head version 1ce03e7
Steps:
Create a mysql datastore in aws.
Install k3s on 2 linux instances:

curl -sfL https://get.k3s.io | sh -s - server \
--datastore-endpoint="mysql://<username>:<Password>@tcp(<hostname>:3306)/<data-store name>" \

Set LB and route 53
Set kubectl
Install Rancher:

helm install rancher rancher-alpha/rancher --namespace cattle-system --set hostname=<hostname> --version 2.4.0-alpha1  --set rancherImageTag=master-head

Existing automation passes on a 3 node custom cluster, all roles.

@aaronyeeski
Copy link
Contributor

aaronyeeski commented Feb 24, 2020

k3s HA install has been validated using mysql and postgresql for AWS datastores.

@aaronyeeski
Copy link
Contributor

HA install validated for k3s version 1.17.2+k3s1
Traefik version: 1.7.19

kubectl and exec shell work in the following browsers:
Chrome version 80.0.3987.122
Firefox version 73.0.1
Safari version 13.0.5 (15608.5.11)

Previous issues prevent Traefik from being the recommended ingress controller over nginx:
#7425 (comment)

@jiaqiluo
Copy link
Member

jiaqiluo commented Feb 28, 2020

run K3s v1.17.3+k3s1 (HA mode)+ external etcd v3.3
install Rancher v2.4.0-rc1 into it

I can exec shell and view logs in both the local cluster and clusters provisioned by Rancher in Rancher UI and using the kubeconfig file from Rancher UI.

@sangeethah
Copy link
Contributor Author

sangeethah commented Mar 2, 2020

Waiting on new K3s release with nginx as default provider for Ingress - k3s-io/k3s#817
Need to re test using this K3s version with Mysql 5.7 and MariaDB.

@aaronyeeski
Copy link
Contributor

aaronyeeski commented Mar 12, 2020

HA install validated for k3s version v1.17.3-alpha1+k3s1
MariaDB version: 10.3.20
Rancher server rancher\rancher:master-2425-head version 881b3e40d

kubectl and exec shell work in the following browsers:
Chrome version 80.0.3987.132
Firefox version 73.0.1
Safari version 13.0.5 (15608.5.11)

We will use Traefik as the default provider for ingress. Testing was done using traefik:1.7.19

@jiaqiluo
Copy link
Member

jiaqiluo commented Mar 13, 2020

Validate running Rancher in k3s HA setup in an air-gapped environment

The setup:

  • k3s version v1.17.3-alpha1+k3s1 (fa85cf78), 2 server, 1 agent
  • external databse: mySQL 8.0.19
  • rancher v2.4.0-rc3

Add a custom cluster into Rancher:

  • k8s version v1.17.3, 3 nodes, all-role

The following checks are done:

  • check running kubectl on both local and custom cluster
  • check exec shell and check logs on both local and custom cluster
  • check cluster and project monitoring on the custom cluster
  • check istio on the custom cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Issues that represent work that needs to be done, but don't involve a code change
Projects
None yet
Development

No branches or pull requests

3 participants