Manage Workloads
The workload is an application running on Kubernetes Engine. You can create a namespace and then add or delete workloads. Workloads are created and then managed for each item: Deployment, Pod, StatefulSet, DaemonSet, Job, and CronJob.
Deployments, Pods, StatefulSets, DaemonSets, Jobs, and CronJobs are defaulted to the cluster (namespace) selected when creating the service. Even if you select a different item in the list, the default cluster (namespace) setting is retained.
- To select a different cluster (namespace), click the gear button on the right side of the list. * Cluster/Namespace Settings In the popup window, select the cluster and namespace to change, and click the Confirm button. * You can view the services created in the selected cluster/namespace.
Managing Deployments
A Deployment refers to a resource that provides updates for Pods and ReplicaSets (ReplicaSet). You can create a deployment in the workload, view its details, or delete it.
Create Deployment
To create a deployment, follow the steps below.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Deployment under the Workload menu. 2. Go to the Deployment List page.
- On the Deployment List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Enter the object information in the Object Creation Popup and click the Confirm button.
- The following is an example
.yamlfile that shows the required fields and object spec for creating a Deployment. * (application/deployment.yaml)Color modeapiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 # tells deployment to run 2 pods matching the template template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 # tells deployment to run 2 pods matching the template template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80Code block. Required fields and object Spec for deployment creation.
- The following is an example
View deployment details
To view deployment details, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Deployment under the Workload menu. 2. Go to the Deployment List page.
- On the Deployment List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the item you want to view detailed information for on the Deployment List page. 4. Deployment Details page will be opened.
- If you select Show system objects at the top of the list, all items except the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed descriptionDelete Deployment Delete the deployment Detailed Information Detailed deployment information can be viewed YAML The deployment’s resource file can be edited in the YAML editor - Edit button, click and modify the resource, then click the Done button to apply the changes
- When editing content, click the Diff button to view the changes
event Check events that occurred within the deployment Pod Check the pod information of the deployment - A Pod (pod) is the smallest compute unit that can be created, managed, and deployed in Kubernetes Engine
Account information Check basic information about the Account, such as the Account name, location, and creation time. Metadata Information Check the deployment’s metadata information Object Information Check the deployment’s object information Table. Deployment detailed information items
Delete Deployment
To delete the deployment, follow the steps below.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Deployment under the Workload menu. 2. Navigate to the Deployment List page.
- On the Deployment list page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the item you want to delete on the Deployment List page. 4. Navigate to the Deployment Details page.
- On the Deployment Details page, click Delete Deployment.
- When the notification confirmation window appears, click the Confirm button.
Managing Pods
A pod (Pod) is the smallest compute unit in Kubernetes that can be created, managed, and deployed, representing a group of one or more containers. You can create pods in the workload, view their details, or delete them.
Create Pod
To create a pod, follow the steps below.
- All Services > Container > Kubernetes Engine Click the menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Pod under the Workload menu. 2. Navigate to the Pod List page.
- On the Pod List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Enter the object information in the Object Creation Popup and click the Confirm button.
Check pod detailed information
To view detailed pod information, follow these steps.
- All Services > Container > Kubernetes Engine menu, click it. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Pod under the Workload menu. 2. Navigate to the Pod List page.
- On the Pod List page, select the cluster and namespace using the gear button at the top left, then click Confirm.
- Select the item you want to view detailed information for on the Pod List page. 4. Navigate to the Pod Details page.
- If you select Show system objects at the top of the list, all items except the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed descriptionStatus indicator Display the current status of the pod Delete pod Delete the pod Detailed Information Can view detailed pod information YAML The pod’s resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, you can click the Diff button to view the changes
event Check events that occurred within the pod log Select a container to view the pod’s container information. Account Information Check basic information about the Account, such as name, location, and creation timestamp. Metadata Information Check the pod’s metadata information Object Information Check the pod’s object information Initialization Container Information Check the pod’s init container information Container Information Check the pod’s container information Table. Pod detailed information items
Delete Pod
To delete a pod, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Pod under the Workload menu. 2. Go to the Pod List page.
- On the Pod List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the items you want to delete on the Pod List page. 4. Navigate to the Pod Details page.
- On the Pod Details page, click Delete Pod.
- When the notification dialog appears, click the Confirm button.
Managing StatefulSets
A StatefulSet is a workload API object used to manage an application’s stateful components. You can create a StatefulSet in the workload, view its details, or delete it.
Creating a StatefulSet
To create a StatefulSet, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click StatefulSet under the Workload menu. 2. StatefulSet list page is opened.
- On the StatefulSet list page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Enter the object information in the Object Creation Popup and click the Confirm button.
Check detailed information of StatefulSet
To view detailed information about a StatefulSet, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click StatefulSet under the Workload menu. 2. StatefulSet list page is opened.
- On the StatefulSet List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the item whose detailed information you want to view on the StatefulSet List page. 4. Navigate to the StatefulSet Details page.
- If you select Show system objects at the top of the list, all items except the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed descriptionDelete StatefulSet Delete the StatefulSet Detailed Information Can view detailed information of a StatefulSet YAML The resource file of a StatefulSet can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, click the Diff button to view the changes
event Check events that occurred within the StatefulSet Pod Check the pod information of the StatefulSet Account Information Check basic information about the Account, such as name, location, creation time, etc. Metadata Information Check the metadata information of the StatefulSet Object Information Check the object information of the StatefulSet Table. StatefulSet detailed information items
Delete StatefulSet
To delete a StatefulSet, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click StatefulSet under the Workload menu. 2. Navigate to the StatefulSet list page.
- On the StatefulSet List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- StatefulSet list page, select the items you want to delete. 4. Navigate to the StatefulSet Details page.
- On the StatefulSet Details page, click Delete StatefulSet.
- When the notification confirmation window appears, click the Confirm button.
Managing DaemonSets
A DaemonSet is a resource that ensures a copy of a pod runs on every node or on a subset of nodes. You can create a DaemonSet in the workload, view its details, or delete it.
Creating a DaemonSet
To create a DaemonSet, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click DaemonSet under the Workload menu. 2. Go to the DaemonSet list page.
- On the DaemonSet list page, select the cluster and namespace from the gear button at the top left, then click Create object.
- Enter the object information in the Object Creation Popup and click the Confirm button.
Check DaemonSet detailed information
To view detailed information about a DaemonSet, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click DaemonSet under the Workload menu. 2. Go to the DaemonSet List page.
- On the DaemonSet list page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the item you want to view details for on the DaemonSet List page. 4. Navigate to the DaemonSet Details page.
- If you select Show system objects at the top of the list, all items except the Kubernetes object entries are displayed.
- Click each tab to view the service information.
Category Detailed descriptionDelete DaemonSet Delete the DaemonSet Detailed Information Can view detailed DaemonSet information YAML The DaemonSet’s resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, you can click the Diff button to view the changed content
event Check events that occurred within the DaemonSet Pod Check DaemonSet pod information Account Information Check basic information about the Account, such as name, location, creation time, etc. Metadata Information Check the DaemonSet’s metadata information Object Information Check the DaemonSet object information Table. DaemonSet detailed information items
Delete DaemonSet
To delete a DaemonSet, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click DaemonSet under the Workload menu. 2. Navigate to the DaemonSet list page.
- On the DaemonSet list page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the items you want to delete on the DaemonSet List page. 4. DaemonSet Details Navigate to the page.
- On the DaemonSet Details page, click Delete DaemonSet.
- When the notification confirmation window appears, click the Confirm button.
Job Management
A Job is a resource that creates one or more Pods and continues to run Pods until the specified number of Pods have completed successfully. You can create a job in the workload, view its details, or delete it.
Create Job
To create a job, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Job under the Workload menu. 2. Go to the Job List page.
- On the Job List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Enter the object information in the Object Creation Popup and click the Confirm button.
Check job details
To view the job details, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Job under the Workload menu. 2. Navigate to the Job List page.
- On the Job List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the item you want to view detailed information for on the Job List page. 4. Go to the Job Details page.
- If you select Show system objects at the top of the list, all items except the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed descriptionDelete Job Delete the job Detailed Information Detailed job information can be viewed YAML You can edit the job’s resource file in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, click the Diff button to view the changes
event Check events that occurred within the job Pod Check the pod information of the job Account Information Check basic information about the Account, such as name, location, creation time, etc. Metadata Information Check the job’s metadata information Object Information Check job object information Table. Job detail information items
Delete job
To delete a job, follow the steps below.
- Click the All Services > Container > Kubernetes Engine menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Job under the Workload menu. 2. Go to the Job List page.
- Job List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the items you want to delete on the Job List page. 4. Navigate to the Job Details page.
- On the Job Details page, click Delete Job.
- When the notification dialog appears, click the Confirm button.
Managing Cron Jobs
A cron job is a resource that runs a job periodically according to a schedule written in cron format. It can be used when executing repetitive tasks at regular intervals, such as backups and report generation. In the workload, you can create a cron job and view or delete its details.
Create a cron job
To create a cron job, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click CronJob under the Workload menu. 2. Navigate to the Cron Job List page.
- On the CronJob List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Enter the object information in the Object Creation Popup and click the Confirm button.
Check detailed cron job information
To view detailed information about the cron job, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click CronJob under the Workload menu. 2. Navigate to the Cron Job List page.
- On the CronJob List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the item you want to view detailed information for on the Cron Job List page. 4. Navigate to the Cron Job Details page.
- If you select Show system objects at the top of the list, all items except the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed descriptionDelete cron job Delete the cron job Detailed Information View detailed information of cron jobs YAML The resource file of the cron job can be edited in the YAML editor - Edit button, click and modify the resource, then click the Done button to apply the changes
- When editing content, you can click the Diff button to view the changed content
event Check events that occurred within the cron job job View the cron job’s information. Selecting a job item navigates to the job detail page. Account Information Check basic information about the Account, such as name, location, creation time, etc. Metadata Information Check the metadata information of the cron job Object Information Check the object information of the cron job Table. Cron job detailed information items
Delete cron job
To delete a cron job, follow these steps.
- All Services > Container > Kubernetes Engine Click the menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click CronJob under the Workload menu. 2. Go to the Cron Job List page.
- On the CronJob List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Select the items you want to delete on the Cron Job List page. 4. Go to the Cron Job Details page.
- On the Cron Job Details page, click Delete Cron Job.
- When the notification confirmation window appears, click the Confirm button.