Managing Workloads
The workload is an application running on Kubernetes Engine. You can create a namespace and then add or remove workloads. Workloads are created and managed item by item, such as deployments, pods, stateful sets, daemon sets, jobs, and cron jobs.
Managing Deployment
Deployment is a resource that provides updates for pods and replica sets. You can create a deployment in a workload, check its details, or delete it.
Creating Deployment
To create a deployment, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Deployment under the Workload menu. It moves to the List Deployment page.
- Deployment list page, select the cluster and namespace from the gear button at the top left, then click Create object.
- Object Creation Popup where you enter object information and click the Confirm button.
- The following is an example of a .yaml file showing the required fields and object Spec for deployment creation. (application/deployment.yaml)Color mode
apiVersion: 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. Essential fields and object Spec for deployment creation
- The following is an example of a .yaml file showing the required fields and object Spec for deployment creation. (application/deployment.yaml)
Check Deployment Details
To check the deployment details, follow the next procedure.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Deployment under the Workload menu. It moves to the Deployment List page.
- Deployment list page, select the cluster and namespace from the gear button at the top left, then click OK.
- Deployment List page, select the item you want to check the detailed information. It moves to the Deployment Details page.
- Selecting Show System Objects at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check service information.
| Classification | Detailed Description |
|---|---|
| Deployment Deletion | Delete the deployment |
| Detailed Information | Check detailed information of deployment |
| YAML | You can modify the resource file of the deployment in the YAML editor
|
| Event | Check the event that occurred within the deployment |
| Pod | Check pod information of deployment
|
| Account Information | Account name, location, creation time, etc. Basic information about the Account can be checked |
| Metadata Information | Check the metadata information of the deployment |
| Object Information | Check object information of deployment |
Deleting Deployment
To delete a deployment, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Deployment under the Workload menu. It moves to the Deployment List page.
- Deployment list page, select the cluster and namespace from the gear button at the top left, then click OK.
- Deployment List page, select the item you want to delete. It moves to the Deployment Details page.
- Deployment Details page, click Delete Deployment.
- When the Notification Confirmation Window appears, click the Confirm button.
Managing Pods
A Pod is the smallest computing unit that can be created, managed, and deployed in Kubernetes, referring to a group of one or more containers. You can create pods in workloads and view or delete their details.
Creating a Pod
To create a pod, follow the next procedure.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Pods under the Workload menu. It moves to the Pod List page.
- Pod list page, select the cluster and namespace from the gear button at the top left, then click Create object.
- Object Creation Popup where you enter object information and click the Confirm button.
Check Pod Details
To check the pod details, follow the next procedure.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Pods under the Workload menu. It moves to the Pod List page.
- Pod list page, select the cluster and namespace from the gear button at the top left, then click OK.
- Pod List page, select the item you want to check the detailed information. It moves to the Pod Detail page.
- Selecting Show System Objects at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check the service information.
| Classification | Detailed Description |
|---|---|
| Status Indicator | Indicates the current status of the pod |
| Delete Pod | Delete the pod |
| Detailed Information | You can check the detailed information of the pod |
| YAML | You can modify the pod’s resource file in the YAML editor
|
| Event | Check the event that occurred within the pod |
| Log | If you select a container, you can check the container information that the pod has |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the pod’s metadata information |
| Object Information | Check the object information of the pod |
| Initialization Container Information | Check the initialization container information of the pod |
| Container Information | Check container information of the pod |
Deleting Pods
To delete a pod, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Pods under the Workload menu. It moves to the Pod List page.
- Pod List page, select the cluster and namespace from the gear button at the top left, then click OK.
- Select the item to delete on the Pod List page. It moves to the Pod Detail page.
- Pod Details page, click Delete Pod.
- When the Notification Confirmation Window appears, click the OK button.
Managing StatefulSets
A StatefulSet is a workload API object used to manage stateful applications, you can create, describe, or delete StatefulSet in the workload.
Creating a StatefulSet
To create a stateful set, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click StatefulSet under the Workload menu. It moves to the Statefulset List page.
- StatefulSet list page, select the cluster and namespace from the gear button at the top left, then click Create object.
- Object creation popup where you enter object information and click the OK button.
Checking Detailed Information of StatefulSet
To view detailed information about a StatefulSet, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click StatefulSet under the Workload menu. It moves to the StatefulSet List page.
- StatefulSet list page, select the cluster and namespace from the gear button at the top left, then click OK.
- StatefulSet list page, select the item you want to check the detailed information. It moves to the StatefulSet detail page.
- Selecting Show System Objects at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check service information.
| Classification | Detailed Description |
|---|---|
| StatefulSet deletion | Delete the StatefulSet |
| Detailed Information | Check detailed information of StatefulSet |
| YAML | You can modify the resource file of the StatefulSet in the YAML editor
|
| Event | Check the event that occurred within the stateful set |
| Pod | Check pod information of StatefulSet |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the metadata information of the StatefulSet |
| Object Information | Check object information of the StatefulSet |
Deleting a StatefulSet
To delete a stateful set, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click StatefulSet under the Workload menu. It moves to the StatefulSet List page.
- StatefulSet list page, select the cluster and namespace from the gear button at the top left, then click OK.
- StatefulSet list page, select the item you want to delete. It moves to the StatefulSet details page.
- StatefulSet details page, click Delete StatefulSet.
- When the Notification Confirmation Window appears, click the Confirm button.
Managing DaemonSets
A daemon set is a resource that allows all nodes or some nodes to run a copy of a pod. You can create a daemon set in a workload, check its details, or delete it.
Creating a DaemonSet
To create a daemon set, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click DaemonSet under the Workload menu. It moves to the DaemonSet list page.
- On the DaemonSet list page, select the cluster and namespace from the gear button in the top left, then click Create object.
- Object creation popup where you enter object information and click the OK button.
Checking DaemonSet Details
To check the details of the daemon set, follow the next procedure.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click DaemonSet under the Workload menu. It moves 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 OK.
- Select an item to check the detailed information on the DaemonSet list page. It moves to the DaemonSet details page.
- Selecting Show System Objects at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check service information.
| Classification | Detailed Description |
|---|---|
| Delete DaemonSet | Delete DaemonSet |
| Detailed Information | Check detailed information of daemon set |
| YAML | You can modify the daemon set’s resource file in a YAML editor
|
| Event | Check the event that occurred within the daemon set |
| Pod | Check pod information of daemon set |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the metadata information of the daemon set |
| Object Information | Check the object information of the daemon set |
Deleting DaemonSets
To delete a daemon set, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click DaemonSet under the Workload menu. It moves 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 OK.
- Select the item to delete from the DaemonSet list page. It will move to the DaemonSet details page.
- 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 them until a specified number of pods complete successfully. You can create a job in a workload and view or delete its details.
Creating a Job
To create a job, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Job under the Workload menu. It moves to the Job List page.
- Job list page, select the cluster and namespace from the gear button at the top left, then click Create object.
- Object Creation Popup where you enter object information and click the Confirm button.
Check Job Details
To check the job details, follow the next procedure.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Job under the Workload menu. It moves to the Job List page.
- Job List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Job list page, select the item you want to check the details. It moves to the Job details page.
- Selecting Show System Objects at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check service information.
| Classification | Detailed Description |
|---|---|
| Job Delete | Delete Job |
| Detailed Information | Check detailed information of the book |
| YAML | You can modify the job’s resource file in the YAML editor
|
| Event | Check the event that occurred in the job |
| Pod | Check the pod information of the job |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the metadata information of the book |
| Object Information | Check the object information of the book |
Delete Job
To delete a job, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Job under the Workload menu. It moves to the Job List page.
- Job list page, select the cluster and namespace from the gear button at the top left, then click OK.
- Job List page, select the item you want to delete. It moves to the Job Detail page.
- Click Job Delete on the Job Details page.
- When the Notification Confirmation Window 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 to execute repetitive tasks at a fixed interval, such as backup and report creation. You can create a cron job in the workload and check or delete detailed information.
Creating a Cron Job
To create a cron job, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click CronJob under the Workload menu. It moves to the CronJob List page.
- CronJob list page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Object Creation Popup where you enter object information and click the Confirm button.
Check Cron Job Details
To check the detailed information of the cron job, follow the next procedure.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click CronJob under the Workload menu. It moves to the CronJob List page.
- CronJob list page, select the cluster and namespace from the gear button at the top left, then click OK.
- Cron Job List page, select the item you want to check the detailed information. It moves to the Cron Job Detail page.
- Selecting Show System Objects at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check the service information.
| Classification | Detailed Description |
|---|---|
| Delete Cron Job | Delete a cron job |
| Detailed Information | Possible to check detailed information of cron job |
| YAML | You can modify the resource file of CronJob in YAML editor
|
| Event | Check the event that occurred within the cron job |
| Job | Check the job information of Cron Job. If you select a job item, it moves to the job detail page |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the metadata information of the cron job |
| Object Information | Check the object information of the cron job |
Deleting a Cron Job
To delete a cron job, follow these steps.
- Click on the menu for all services > Container > Kubernetes Engine. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click CronJob under the Workload menu. It moves to the CronJob List page.
- CronJob list page, select the cluster and namespace from the gear button at the top left, then click OK.
- Select the item to be deleted from the Cron Job List page. It will move to the Cron Job Details page.
- Cron Job Details page, click Delete Cron Job.
- When the Notification Confirmation Window appears, click the Confirm button.