🚫Release v0.1.20 - Cassini Testnet

Update Deadline:

Please ensure that the update is completed by August 5, 2024, at 12:00 PM UTC (8:00 PM Beijing Time). Failure to do so will result in your node being forcibly taken offline.

Update Details:

Integration of Titan L1 Nodes with Containers: The Titan L1 nodes have been successfully integrated with container functionality, significantly enhancing resource efficiency and system performance.

New Network Ports: Please ensure the following ports are open in your network settings to enable proper node operation and communication:

80 TCP: For HTTP communication. [New]

443 TCP: For HTTPS communication. [New]

• 9000 TCP: For inter-node communication.

• 2345 TCP/UDP: For node broadcasting and data synchronization.

Please confirm that all these ports are open to ensure seamless node operation and connectivity. 🌐

Update Guide

For Upgrading Existing Nodes

Pre-Installation Steps: Install K3s

1. Install K3s:

Run the following command in your terminal to install K3s. This step will automatically download and install K3s while disabling unnecessary components:

curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable=traefik" sh -s -

2.Configure kubeconfig:

Configure access for the kubectl command-line tool:

mkdir ~/.kube
sudo cat /etc/rancher/k3s/k3s.yaml | tee ~/.kube/config >/dev/null

3.Verify K3s Installation:

After installation, use the following command to confirm that K3s is installed and running correctly:

kubectl get nodes

4.Install Helm:

Helm is a tool for managing Kubernetes applications. Install Helm with the following commands:

wget https://get.helm.sh/helm-v3.11.0-linux-amd64.tar.gz
tar -zxvf helm-v3.11.0-linux-amd64.tar.gz
install linux-amd64/helm /usr/local/bin/helm

5.Install Ingress Nginx:

Use Helm to install Ingress Nginx, which adds HTTP routing rules for applications:

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm upgrade --install ingress-nginx ingress-nginx \
  --repo https://kubernetes.github.io/ingress-nginx \
  --namespace ingress-nginx --create-namespace

6.Use Mounted Disk /mnt/storage:

  • Remove the default local-path StorageClass label:

kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
  • Create and set a new storage class as default:

Create a storageclass.yaml file and include the following content:

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: local-storage
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
provisioner: rancher.io/local-path
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete
parameters:
  path: "/mnt/storage"

Apply the StorageClass to the K3s cluster:

kubectl apply -f storageclass.yaml

Update the ConfigMap path to /mnt/storage:

kubectl patch configmap local-path-config -n kube-system --type=json -p='[{"op": "replace", "path": "/data/config.json", "value":"{\n  \"nodePathMap\":[\n  {\n    \"node\":\"DEFAULT_PATH_FOR_NON_LISTED_NODES\",\n    \"paths\":[\"/mnt/storage\"]\n  }\n  ]\n}"}]'

For Upgrading Existing Nodes

1. Remove the old version

Remove the old version before downloading the new version.

rm $(which titan-l1-guardian)

2. Download the latest version

Visit the following url to download the latest version of Titan Guardian software:

https://github.com/Titannet-dao/titan-node/releases/download/v0.1.20/titan-l1-guardian

3. Move to the system directory and update the permissions

Move it to the system directory and ensure it has proper permissions

mv titan-l1-guardian /usr/local/bin/
chmod 0755 /usr/local/bin/titan-l1-guardian

Note: If you have set the proper execute permission, you may skip this step.

4. Start the new version

Start the new software.

Important Notes:

  • Restart the node: The new settings will take effect after updating and restarting the node.

  • New Network Ports:

    • 80 TCP: For HTTP communication.

    • 443 TCP: For HTTPS communication.

Verify the upgrade: Run the following command to confirm the update was successful:

titan-l1-guardian -v

Last updated