High-Risk Operations and Solutions

During service deployment or running, you may trigger high-risk operations at different levels, causing service faults or interruption. To help you better estimate and avoid operation risks, this section introduces the consequences and solutions of high-risk operations from multiple dimensions, such as clusters, nodes, networking, load balancing, logs, and EVS disks.

Clusters and Nodes

Table 1 High-risk operations and solutions

Category

Operation

Impact

Solution

Master node

Modifying the security group of a node in a cluster

Note

Naming rule of a security group: Cluster name-cce-control-Random digits

The master node may be unavailable.

Restore the security group by referring to "Creating a Cluster" and allow traffic from the security group to pass through.

Letting the node expire or destroying the node

The master node will be unavailable.

This operation cannot be undone.

Reinstalling the OS

Components on the master node will be deleted.

This operation cannot be undone.

Upgrading components on the master or etcd node

The cluster may be unavailable.

Roll back to the original version.

Deleting or formatting core directory data such as /etc/kubernetes on the node

The master node will be unavailable.

This operation cannot be undone.

Changing the node IP address

The master node will be unavailable.

Change the IP address back to the original one.

Modifying parameters of core components (such as etcd, kube-apiserver, and docker)

The master node may be unavailable.

Restore the parameter settings to the recommended values. For details, see Cluster Configuration Management.

Replacing the master or etcd certificate

The cluster may be unavailable.

This operation cannot be undone.

Worker node

Modifying the security group of a node in a cluster

Note

Naming rule of a security group: Cluster name-cce-node-Random digits

The node may be unavailable.

Restore the security group and allow traffic from the security group to pass through.

Deleting the node

The node will become unavailable.

This operation cannot be undone.

Reinstalling the OS

Node components are deleted, and the node becomes unavailable.

Reset the node. For details, see Resetting a Node.

Upgrading the kernel or components on which the container platform depends (such as Open vSwitch, IPvlan, Docker, and containerd)

The node may be unavailable or the network may be abnormal.

Note

Node running depends on the system kernel version. Do not use the yum update command to update or reinstall the operating system kernel of a node unless necessary. (Reinstalling the operating system kernel using the original image or other images is a risky operation.)

For details, see Resetting a Node.

Changing the node IP address

The node will become unavailable.

Change the IP address back to the original one.

Modifying parameters of core components (such as kubelet and kube-proxy)

The node may become unavailable, and components may be insecure if security-related configurations are modified.

Restore the parameter settings to the recommended values. For details, see Configuring a Node Pool.

Modifying OS configuration

The node may be unavailable.

Restore the configuration items or reset the node. For details, see Resetting a Node.

Deleting or modifying the /opt/cloud/cce and /var/paas directories, and deleting the data disk

The node will become unready.

Reset the node. For details, see Resetting a Node.

Modifying the node directory permission and the container directory permission

The permissions will be abnormal.

You are not advised to modify the permissions. Restore the permissions if they are modified.

Formatting or partitioning system disks, Docker disks, and kubelet disks on nodes.

The node may be unavailable.

Reset the node. For details, see Resetting a Node.

Installing other software on nodes

This may cause exceptions on Kubernetes components installed on the node, and make the node unavailable.

Uninstall the software that has been installed and restore or reset the node. For details, see Resetting a Node.

Modifying NetworkManager configurations

The node will become unavailable.

Reset the node. For details, see Resetting a Node.

Delete system images such as cce-pause from the node.

Containers cannot be created and system images cannot be pulled.

Copy the image from another normal node for restoration.

Network

Table 2 Network

Operation

Impact

How to Avoid/Fix

Changing the value of the kernel parameter net.ipv4.ip_forward to 0

The network becomes inaccessible.

Change the value to 1.

Changing the value of the kernel parameter net.ipv4.tcp_tw_recycle to 1

The NAT service becomes abnormal.

Change the value to 0.

Changing the value of the kernel parameter net.ipv4.tcp_tw_reuse to 1

The network becomes abnormal.

Change the value to 0.

Not configuring the node security group to allow UDP packets to pass through port 53 of the container CIDR block

The DNS in the cluster cannot work properly.

Restore the security group by referring to Creating a CCE Cluster and allow traffic from the security group to pass through.

Deleting CRD resources of network-attachment-definitions of default-network

The container network is disconnected, or the cluster fails to be deleted.

If the resources are deleted by mistake, use the correct configurations to create the default-network resources.

Enabling the iptables firewall

By default, iptables firewall is disabled on CCE. Enabling the firewall can leave the network inaccessible.

Note

Do not enable iptables firewall. If iptables firewall must be enabled, check whether the rules configured in /etc/sysconfig/iptables and /etc/sysconfig/ip6tables will affect the network in the test environment.

Disable the iptables firewall and check the rules configured in /etc/sysconfig/iptables and /etc/sysconfig/ip6tables.

Load Balancing

Table 3 Service ELB

Operation

Impact

Solution

Deleting a load balancer that has been bound to a CCE cluster on the ELB console

Accessing the target Service or ingress will fail.

Do not delete such a load balancer.

Disabling a load balancer that has been bound to a CCE cluster on the ELB console

Accessing the target Service or ingress will fail.

Do not disable such a load balancer. If a load balancer has been disabled, enable it.

Changing the private IPv4 address of a load balancer on the ELB console

  • The network traffic forwarded using the private IPv4 addresses will be interrupted.

  • The IP addresses in the status field of Service or ingress YAML files will be changed.

Do not change private IPv4 addresses of load balancers. Change them back if they have been changed.

Unbinding the IPv4 EIP from a load balancer on the ELB console

After the EIP is unbound from the load balancer, the load balancer will not be able to forward Internet traffic.

Restore the EIP binding.

Creating a custom listener on the ELB console for the load balancer managed by CCE

If a load balancer is automatically created when a Service or an ingress is created, the custom listener of the load balancer cannot be deleted when the Service or ingress is deleted. In this case, the load balancer cannot be automatically deleted.

Use the listener automatically created when a Service or an ingress is created. If a custom listener is used, manually delete the target load balancer.

Deleting a listener automatically created by CCE on the ELB console

  • Accessing the target Service or ingress will fail.

  • After master nodes are restarted, for example, due to a cluster upgrade, all your modifications will be reset by CCE.

Re-create or update the Service or ingress.

Modifying the basic configurations such as the name, access control, timeout, or description of a listener created by CCE on the ELB console

After master nodes are restarted, for example, due to a cluster upgrade, all your modifications will be reset by CCE if the listener is deleted.

Do not modify the basic configurations of the listener created by CCE. Restore the configurations if they have been modified.

Modifying the backend server group of a listener created by CCE on the ELB console, including adding or deleting backend servers to or from the server group

  • Accessing the target Service or ingress will fail.

  • After master nodes are restarted, for example, due to a cluster upgrade, all your modifications will be reset by CCE.

    • Deleted backend servers will be restored.

    • Added backend servers will be removed.

Re-create or update the Service or ingress.

Replacing the backend server group of a listener created by CCE on the ELB console

  • Accessing the target Service or ingress will fail.

  • After master nodes are restarted, for example, due to a cluster upgrade, all servers in the backend server group will be reset by CCE.

Re-create or update the Service or ingress.

Modifying the forwarding policy of a listener created by CCE on the ELB console, including adding or deleting forwarding rules

  • Accessing the target Service or ingress will fail.

  • After master nodes are restarted, for example, due to a cluster upgrade, all your modifications will be reset by CCE if the forwarding rules are added using an ingress.

Do not modify the forwarding policy of such a listener. Restore the configurations if they have been modified.

Changing the ELB certificate on the ELB console for a load balancer managed by CCE

After master nodes are restarted, for example, due to a cluster upgrade, all servers in the backend server group will be reset by CCE.

Use the YAML file of the ingress to automatically manage certificates.

Logs

Table 4 High-risk operations and solutions

Operation

Impact

Solution

Deleting the /tmp/ccs-log-collector/pos directory on the host machine

Logs are collected repeatedly.

None

Deleting the /tmp/ccs-log-collector/buffer directory on the host machine

Logs are lost.

None

EVS Disks

Table 5 High-risk operations and solutions

Operation

Impact

Solution

Remarks

Manually unmounting an EVS disk on the console

An I/O error occurs when data is written into a pod.

Delete the mount path from the node and schedule the pod again.

The file in the pod records the location where files are to be collected.

Unmounting the disk mount path on the node

Pod data is written into a local disk.

Remount the corresponding path to the pod.

The buffer contains log cache files to be consumed.

Operating EVS disks on the node

Pod data is written into a local disk.

None

None

Add-ons

Table 6 Add-ons

Operation

Impact

Solution

Modifying add-on resources on the backend

The add-on becomes malfunctional or other unexpected issues occur.

Perform operations on the add-on configuration page or using open add-on management APIs.