Obtain the image address. The source of the images can be from the image repository integrated by the platform administrator through the toolchain or from third-party platforms' image repositories.
For the former, the Administrator typically assigns the image repository to your project, and you can use the images within it. If the required image repository is not found, please contact the Administrator for allocation.
If it is a third-party platform's image repository, ensure that images can be pulled directly from it in the current cluster.
Container Platform, navigate to Applications > Applications in the left sidebar.
Click Create.
Choose Create from Image as the creation approach.
Select or Input an image, and click Confirm.
Note: When using images from the image repository integrated into web console, you can filter images by Already Integrated. The Integration Project Name, for example, images (docker-registry-projectname), which includes the project name projectname in this web console and the project name containers in the image repository.
In the Workload > Basic Info section, configure declarative parameters for workloads
Parameters | Description |
---|---|
Model | Select a workload as needed:
|
Replicas | Defines the desired number of Pod replicas in the Deployment (default: 1 ). Adjust based on workload requirements. |
More > Update Strategy | Configures the rollingUpdate strategy for zero-downtime deployments: Max surge ( maxSurge ):
maxUnavailable ):
1. Default values: maxSurge=1 , maxUnavailable=1 if not explicitly set. 2. Non-running Pods (e.g., in Pending /CrashLoopBackOff states) are considered unavailable. 3. Simultaneous constraints:
For a Deployment with 10 replicas:
|
Note: In mixed-architecture clusters deploying single-architecture images, ensure proper Node Affinity Rules are configured for Pod scheduling.
Pod section, configure container runtime parameters and lifecycle management:
Parameters | Description |
---|---|
Volumes | Mount persistent volumes to containers. Supported volume types include PVC , ConfigMap , Secret ,emptyDir , hostPath , and so on. For implementation details, see Storage Volume Mounting Instructions. |
Image Credential | Required only when pulling images from third-party registries (via manual image URL input). Note: Images from the platform's integrated registry automatically inherit associated secrets. |
More > Close Grace Period | Duration (default: 30s ) allowed for a Pod to complete graceful shutdown after receiving termination signal. - During this period, the Pod completes inflight requests and releases resources. - Setting 0 forces immediate deletion (SIGKILL), which may cause request interruptions. |
Node Affinity Rules
Parameters | Description |
---|---|
More > Node Selector | Constrain Pods to nodes with specific labels (e.g., kubernetes.io/os: linux ). ![]() |
More > Affinity | Define fine-grained scheduling rules based on existing Pods: Pod Affinity Types:
|
Network Configuration
Parameters | Description |
---|---|
Bandwidth Limits | Enforce QoS for Pod network traffic:
|
Subnet | Assign IPs from a predefined subnet pool. If unspecified, uses the namespace's default subnet. |
Static IP Address | Bind persistent IP addresses to Pods:
|
Parameters | Description |
---|---|
Static IP Address | Assign fixed IPs with strict uniqueness:
|
Container section, refer to the following instructions to configure the relevant information.
Parameters | Description |
---|---|
Resource Requests & Limits |
|
Extended Resources | Configure cluster-available extended resources (e.g., vGPU, pGPU). |
Volume Mount | Persistent storage configuration. See Storage Volume Mounting Instructions. Operations:
|
Port | Expose container ports. Example: Expose TCP port 6379 with name redis .Fields:
|
Startup Commands & Arguments | Override default ENTRYPOINT/CMD: Example 1: Execute top -b - Command: ["top", "-b"] - OR Command: ["top"] , Args: ["-b"] Example 2: Output $MESSAGE :/bin/sh -c "while true; do echo $(MESSAGE); sleep 10; done" See Defining Commands. |
More > Environment Variables |
|
More > Referenced ConfigMap | Inject entire ConfigMap/Secret as env variables. Supported Secret types: Opaque , kubernetes.io/basic-auth . |
More > Health Checks |
|
More > Log File | Configure log paths: - Default: Collect stdout - File patterns: e.g., /var/log/*.log Requirements:
|
More > Exclude Log File | Exclude specific logs from collection (e.g., /var/log/aaa.log ). |
More > Execute before Stopping | Execute commands before container termination. Example: echo "stop" Note: Command execution time must be shorter than pod's terminationGracePeriodSeconds . |
Click Add Container (upper right) OR Add Init Container.
See Init Containers. Init Container:
Click Create.
Parameters | Description |
---|---|
Service | Kubernetes Service, expose an application running in your cluster behind a single outward-facing endpoint, even when the workload is split across multiple backends.. For specific parameter explanations, please refer to Creating Services. Note The default name prefix for the internal routing created under the application is the name of the compute component. If the compute component type (deployment mode) is StatefulSet, it is advisable not to change the default name of the internal routing (the name of the workload); otherwise, it may lead to accessibility issues for the workload. |
Parameters | Description |
---|---|
Ingress | Kubernetes Ingress, make your HTTP (or HTTPS) network service available using a protocol-aware configuration mechanism, that understands web concepts like URIs, hostnames, paths, and more. The Ingress concept lets you map traffic to different backends based on rules you define via the Kubernetes API. For detailed parameter descriptions, please refer to Creating Ingresses. Note: The Service used when creating Ingress under the application must be resources created under the current application. However, ensure that the Service is associated with the workload under the application; otherwise, service discovery and access for workload will fail. |
To modify application configurations, use one of the following methods:
Operation | Description |
---|---|
Update |
|
Delete |
|
Type | Purpose |
---|---|
Persistent Volume Claim | Binds an existing PVC to request persistent storage. Note: Only bound PVCs (with associated PV) are selectable. Unbound PVCs will cause pod creation failures. |
ConfigMap | Mounts full/partial ConfigMap data as files:
|
Secret | Mounts full/partial Secret data as files:
|
Ephemeral Volumes | Cluster-provisioned temporary volume with features:
|
Empty Directory | phemeral storage sharing between containers in same pod: - Created on node when pod starts - Deleted with pod removal Use Case: Inter-container file sharing, temporary data storage. |
Host Path | Mounts host machine directory (must start with / , e.g., /volumepath ). |
Parameters | Description |
---|---|
Initial Delay | Grace period (seconds) before starting probes. Default: 300 . |
Period | Probe interval (1-120s). Default: 60 . |
Timeout | Probe timeout duration (1-300s). Default: 30 . |
Success Threshold | Minimum consecutive successes to mark healthy. Default: 0 . |
Failure Threshold | Maximum consecutive failures to trigger action: - 0 : Disables failure-based actions- Default: 5 failures → container restart. |
Parameter | Applicable Protocols | Description |
---|---|---|
Protocol | HTTP/HTTPS | Health check protocol |
Port | HTTP/HTTPS/TCP | Target container port for probing. |
Path | HTTP/HTTPS | Endpoint path (e.g., /healthz ). |
HTTP Headers | HTTP/HTTPS | Custom headers (Add key-value pairs). |
Command | EXEC | Container-executable check command (e.g., sh -c "curl -I localhost:8080 | grep OK" ).Note: Escape special characters and test command viability. |