Updated on 2024-11-21 GMT+08:00

New Pod Check

Check Items

Check whether pods can be created after the cluster is upgraded.

Procedure

Create pods and ensure the new and existing pods provide the same services.

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane on the left, choose Workloads. On the displayed page, click Create Workload or Create from YAML in the upper right corner. For details about how to create a workload, see Creating a Workload.

    Figure 1 Creating a workload

    It is a good practice to use the image for routine tests as the base image. You can deploy minimum pods for an application by referring to the following YAML file.

    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: post-upgrade-check
      namespace: default
    spec:
      selector:
        matchLabels:
          app: post-upgrade-check
          version: v1
      template:
        metadata:
          labels:
            app: post-upgrade-check
            version: v1
        spec:
          containers:
            - name: container-1
              image: nginx:perl
              imagePullPolicy: IfNotPresent
              resources:
                requests:
                  cpu: 10m
                  memory: 10Mi
                limits:
                  cpu: 100m
                  memory: 50Mi

  3. After the workload is created, check whether the pods of the workload are running properly.
  4. After the check is complete, choose Workloads in the navigation pane. On the displayed page, locate the post-upgrade-check workload and choose More > Delete in the Operation column to delete the test workload.

Solution

If pods cannot be created or are abnormal, submit a service ticket.