Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contents

Table of Contents

...

Prepared By

...

Reviewed By

...

Date

...

Document Version

...

Fernando Cisneros

...

Artem Kalaitan

...

21-June-2022

...

V 1

...

Fernando Cisneros

...

Artem Kalaitan

...

14-July-2022

...

V 2

...

Fernando Cisneros

...

Artem Kalaitan

...

27-July-2022

...

Anchor
_heading=h.30j0zll
_heading=h.30j0zll
Introduction

This document outlines the steps to install and update K3s servers and how to deploy and backup Synergy services.

Anchor

...

Log in to your Rancher cluster and click on Import Existing and choose Generic:

...

...

Copy the registration command

...

...

In case you use licensing portal to get a license for your customer, or you have an integration with your organisations Order Processing system (i.e. Salesforce or Bitrix) then you must skip this step!

https://

...

getvisibility

...

.

...

Anchor
https://getvisibility.atlassian.net/wiki/spaces/KBTES/pages/101318924/Installation+-Upgrade+K3s#Install-Server---Client
https://getvisibility.atlassian.net/wiki/spaces/KBTES/pages/101318924/Installation+-Upgrade+K3s#Install-Server---Client
K3s Installation - Client

Refer to the following page for the installation details: K3s Installation

Anchor
_heading=h.1t3h5sf
_heading=h.1t3h5sf
Deploy Synergy – Reseller

...

Stop the old k3s binary (e.g. systemctl stop k3s) and start it again (e.g. systemctl start k3s). For more details please refer to the official documentation.

Certificates

By default, certificates in K3s expire in 12 months. If the certificates are expired or have fewer than 90 days remaining before they expire, the certificates are rotated when K3s is restarted.

...

kubectl get pod/gv-essentials-consul-server-0 -o jsonpath='{.spec.nodeName}'

Log into the server using SSH and execute the following command to take a snapshot of Consul:

kubectl exec -it gv-essentials-consul-server-0 -- consul snapshot save /consul/data/backup.snap

...

kubectl get pvc/data-default-gv-essentials-consul-server-0 -o jsonpath='{.spec.volumeName}' | xargs -I{} kubectl get pv/{} -o jsonpath='{.spec.hostPath.path}'

Copy the snapshot file to a safe place.

...

kubectl get pod/gv-postgresql-0 -o jsonpath='{.spec.nodeName}'

Log into the server using SSH and execute the following command to backup all databases:

kubectl exec -it gv-postgresql-0 -- bash -c "pg_dumpall -U gv | gzip > /home/postgres/pgdata/backup.sql.gz"

Find the path where the backup has been save to:

kubectl get pvc/pgdata-gv-postgresql-0 -o jsonpath='{.spec.volumeName}' | xargs -I{} kubectl get pv/{} -o jsonpath='{.spec.hostPath.path}'

Copy the backup file to a safe place.

End of Document

1 The registration process will be automated through the Customer Management API